GCM - message not enough and no error

Asked

Viewed 78 times

0

https://github.com/analistacarlosh/google_cloud_messaging

When I send on the server returns me successfully sending, according to the following message:

"{\"multicast_id\":5369005122387463058,\"success\":1,\"failure\":0,\"canonical_ids\":0,\"results\":[{\"message_id\":\"0:1430508659293017%2eb511def9fd7ecd\"}]}"

But on mobile running the App nothing happens, no error. Connected in debug mode with the application running in Android Studio also nothing happens.

The impression I have is that by the return of the server part, the message is being sent but is not finding the cell phone, so the does not arrive the notification.

Could someone give me suggestions of possible problems?

  • Did you check if all this OK con google Developers console? The serial number of the phone is the same where the push on the server is done?

  • Your machine and server keys have been generated?

  • Solved, it was ok yes these issues what happened that in Androidmanifest.xml I did not put the receiver inside the application tag, here’s how it looked: https://github.com/analystcarlosh/google_cloud_messaging/blob/master/gcm/app/src/mainAndroidManifest.xml

  • It was a matter of registering the services on Androidmanigest.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.