When Android is upgraded, Google offers no guarantee the GCM token will keep working, and we saw some cases where GCM would stop working after an upgrade to Android 5.1.
EasyGCM should probably listen to system boot and renew the GCM token if needed:
<uses-permission
android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
...
<receiver android:name=".BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
Waiting a few seconds for the network to be available, or even better, some exponential backoff, could be a good idea.
When Android is upgraded, Google offers no guarantee the GCM token will keep working, and we saw some cases where GCM would stop working after an upgrade to Android 5.1.
EasyGCM should probably listen to system boot and renew the GCM token if needed:
Waiting a few seconds for the network to be available, or even better, some exponential backoff, could be a good idea.