I'm using a Nexus 5 with Android M Preview.
My problem that I'm trying to solve is:
Network access is disabled, unless your app receives a high priority Google Cloud Messaging tickle.
What I'm doing is:
I put the phone into Doze mode and then I send a push notification with the priority with value 10 and I'm expecting to have internet access for a brief moments, but this is not working.
Should I use other type of notifications? There are any documentation already available?
Thanks.
Android M changes: https://developer.android.com/preview/behavior-changes.html
What I found about GCM priority messages: https://developers.google.com/cloud-messaging/server-ref
Setting priority to 10 is the correct thing to do, but it does not work with the version of Android M released at I/O. It has been fixed, and priority 10 messages will work as expected with the public release.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With