Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message never makes it do device #65

Open
TWRaz opened this issue Apr 5, 2015 · 0 comments
Open

Message never makes it do device #65

TWRaz opened this issue Apr 5, 2015 · 0 comments

Comments

@TWRaz
Copy link

TWRaz commented Apr 5, 2015

I'm attempting to send a message to an Android device. This is the relevant content from the method I am calling

    GCM.key = "<my Google API key for server applications>"
    @project_number = "<the google project number for my app>"
    @reg_id = "<the registration Id for the android device>"

    def notify message
        options = {:collapse_key => "key2", :time_to_live => 3600, :delay_while_idle => true}
        data = { :key => @project_number, :key2 => ["Message Title", message ] }
        resp = GCM.send_notification([@reg_id], data, options)

The response I get from GCM.send_notification returns with a 200 status code and { success: 1 } in the body. But the message never makes it to the device. I'm clearly missing some piece. Can anybody shed some light?

edit: I have been monitoring the API logs on the Google Developer Dashboard, and see no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant