This troubleshooting guide takes as a pre-requesite that you have carefully followed the instructions in the Getting Started.
We’ve documented some of the common configuration failures in this guide. If you are having issues which we don’t cover or otherwise need help, feel free to post to our user list.
Your error callback is called with the message "SERVICE_NOT_AVAILABLE".
There are several causes for this issue. The easiest solution is that the GCM registration service had an error and you should retry at a later date. However, there are also several code/environment issues to check.
You do not have Google Play Services installed on your device.
If you are running an emulator, make sure you are using a Google APIs Target higher than Android 4.2. If you are using a device, make sure you are using a Google experience device and not an Amazon Fire or AOSP device.
Make sure your device’s clock is set correctly. Some people on Stack Overflow have reported this issue.
Your error callback is called with the exception message "INVALID_SENDER".
Make sure the SenderID matches the project number from the Google API Console. This will be an all numeric string.
Your error callback is called with the message: "no valid 'aps-environment' entitlement string found for application"
Your Bundle ID name should match with the Bundle ID as created on Apple’s developer portal. Please refer to Apple App ID and SSL certificate for APNs documentation for more details on configuration.
If you are having issues which we don’t cover or otherwise need help, feel free to post to our mailing list. Also, messages in logcat / xcode console may give useful results from Google or StackOverflow.