I am trying to set up some push notifications for my app. I have iOS working, but Android is not receiving any notifications.
This is the code I'm using to subscribe to ACS.
var CloudPush = require('ti.cloudpush'); Cloud.Users.login({ login: 'push', password: 'push' }, function (e) { if (e.success) { //alert("login success"); CloudPush.retrieveDeviceToken({ success: function(e) { //alert('Device Token: ' + e.deviceToken); Cloud.PushNotifications.subscribe({ channel: 'updates', device_token: e.deviceToken, type: 'gcm' }, function (e) { if (e.success) { alert('Subscribed for Push Notification!'); } else { //alert('Subscribe Error:' + ((e.error && e.message) || JSON.stringify(e))); } }); }, error: function(e) { //alert('Failed to register for push! ' + e.error); } }); } else { //alert("Login Error :"+e.message); } });It is all working correctly and comes up with the 'Subscribed for Push Notification!' alert when I start up the app.
It says '1 Android client subscribed to push notifications' in the ACS Push Notifications panel, and when I send a notification it say the notification has 'Sending Status' of 'Success'.
The app is not receiving any push notifications though.
Have I missed some steps to getting it working? I have set up the Android Push Configuration in Settings for the app. It should be working I think.