Reputation: 1522
Is there a way to track user response (the choice between the 'View' and 'Close') when the message has been push into the user device?
Thank you.
Upvotes: 1
Views: 529
Reputation: 10273
Your app is not notified if the user clicks "Close"; but if the user clicks "View", your app is launched, and you can detect that it was launched from a notification -- the notification's payload is passed to application:didFinishLaunchingWithOptions:.
Also, don't forget about the case where your app might already be running when the notification comes in. In that case, your application:didReceiveRemoteNotification: function will be called.
Full details are here.
Upvotes: 1
Reputation: 6448
My strategy would be:
Upvotes: 0