Skip to content

IOS callback when the app is killed #98

Open
@Ayyagaries

Description

@Ayyagaries
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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions