objective c - How to catch all iOS Push Notifications with different user actions including tap on app icon -
as per apple guide:
"as result of presented notification, user taps action button of alert or taps (or clicks) application icon. if action button tapped (on device running ios), system launches application , application calls delegate’s application:didfinishlaunchingwithoptions: method (if implemented); passes in notification payload (for remote notifications) or local-notification object (for local notifications).
if application icon tapped on device running ios, application calls same method, furnishes no information notification . if application icon clicked on computer running mac os x, application calls delegate’s applicationdidfinishlaunching: method in delegate can obtain remote-notification payload."
my question suppose user got 3-4 push notifications provider , stored in apple's notification center. if user tapped on notification alert, he/she can notification data in app. if user tapped app icon on iphone, how data related of previous notifications.
thanks in advance!
you can't, receive information notification used open app.
so if user opens app, , app has notifications, not able retrieve them in app.
a work around keep track of notification on server , handle in app. server keeps track on notification has been read. how facebook it.
Comments
Post a Comment