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.