gcm_on_rails
gcm_on_rails copied to clipboard
fix bug with invalid json being generated
This fixes a bug where the JSON being sent to Google was missing 2 attributes. Google would return a status code of 400, indicating there was a problem with the JSON. Note: I haven't tested the case where Notification.data is nil.
@dondeng Can you merge this pull request? I tried his branch and the 400
error did go away.