Google Cloud Messaging, Service Not Available
i'm creating an application and i'm using GCM to receive notifications, the problem is that when i call the function ' gcm.register(SENDER_ID);' i'm getting 'service not available'
Solution 1:
The documentation says that:
When the application receives a com.google.android.c2dm.intent.REGISTRATION intent with the error extra set as SERVICE_NOT_AVAILABLE, it should retry the failed operation (register or unregister).
with other words, the registration failed on GCM servers and you should retry the operation again.
Make sure that you have Google Play Services installed on the device, and that you are on a stable internet connection.
Post a Comment for "Google Cloud Messaging, Service Not Available"