Okay, so I followed all the push notification guidelines. I have my iOS dev and prod certificates uploaded to the ACS Manager. I can also see the app on my iOS device is registered to receive push notifications. I used the following code on my main app.js page. I don't receive any errors but I can't receive any messages. Am I missing any code to make this work?
Ti.Network.registerForPushNotifications({ // Specifies which notifications to receive types: [ Ti.Network.NOTIFICATION_TYPE_BADGE, Ti.Network.NOTIFICATION_TYPE_ALERT, Ti.Network.NOTIFICATION_TYPE_SOUND ], success: deviceTokenSuccess, error: deviceTokenError, callback: receivePush }); // Process incoming push notifications function receivePush(e) { alert('Received push: ' + JSON.stringify(e)); } // Save the device token for subsequent API calls function deviceTokenSuccess(e) { deviceToken = e.deviceToken; } function deviceTokenError(e) { alert('Failed to register for push notifications! ' + e.error); }