A JBoss Project
Red Hat

Aerogear Guides Tutorials to help get you off and running.

Android Troubleshooting

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.

Android

Issue: Registration fails with the error "SERVICE_NOT_AVAILABLE"

Problem description

Your error callback is called with the message "SERVICE_NOT_AVAILABLE".

Answer

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.

  1. 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.

  2. Make sure your device’s clock is set correctly. Some people on Stack Overflow have reported this issue.

Issue: Registration fails with INVALID_SENDER

Problem description

Your error callback is called with the exception message "INVALID_SENDER".

Answer

Make sure the SenderID matches the project number from the Google API Console. This will be an all numeric string.

iOS

Issue: APNs error

Problem description

Your error callback is called with the message: "no valid 'aps-environment' entitlement string found for application"

Answer

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.

I have another Issue

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.

redhatlogo-wite