Open
Description
Ti.App.iOS.addEventListener('usernotificationsettings', function eventUserNotificationSettings() {
// Remove the event again to prevent duplicate calls through the Firebase API
Ti.App.iOS.removeEventListener('usernotificationsettings', eventUserNotificationSettings);
// Register for push notifications
Ti.Network.registerForPushNotifications({
success: function(e) {
Ti.API.info("*************************************************");
console.log("----SUCCESS IOS ----" + JSON.stringify(e));
Ti.API.info("*************************************************");
},
error: function() {
Ti.API.info("*************************************************");
console.log("----ERROR IOS ----");
Ti.API.info("*************************************************");
},
callback: function(e) {
Ti.API.info("*************************************************");
console.log("----CALLBACK IOS ----" + e.data["gcm.notification.message"]);
Ti.API.info("*************************************************");
}
});
});
When the app is killed in IOS the call back is not called. The lastdata is only for android? what is the equivalent in IOS?
Metadata
Metadata
Assignees
Labels
No labels