Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Invalid token request on Android

$
0
0

I am trying to implement push notifications in an Android app we are developing. However I am not able to get a device token on Android. My code for requesting a device token looks like this:

CloudPush.retrieveDeviceToken(
        {
            success: function deviceTokenSuccess(e) {
                Alloy.Globals.Push.deviceToken = e.deviceToken;
                success();
            },
            error: function deviceTokenError(e) {
                failure('Error retrieving device token: ' + e.error);
            }
        }
    );
The error I receive is: "com.appcelerator.cloud.push. PushServiceException: Invalid token request" I am using the 3.0.2GA SDK and am testing on an Android 2.3 device.

I found this topic which seems to relate to my error. But I cannot find where I must set my app package. When I go to the ACS and go to settings I cannot enter my app package anywhere.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>