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