ios - Which method will be triggered when the notification received on iPhone(not after the notification is tapped and opened)? -
i’m using didreceiveremotenotification
payload of notification pushed parse, however, triggered when notification tapped , opened.
what i’m trying start alarm remind user notification has arrived, guess didreceiveremotenotification
not i’m looking for. method should purpose?
thank you!
words the wwdc 2014 whats new in ios notifications
local , push notifications let background or inactive apps notify users event of interest has occurred, or app has new information them.
the wwdc 2013 whats new multitasking tells how work.
• add uibackgroundmodes : remote-notification
in info.plist
• add `content-available: 1 in payload while sending server
• lets ios handle open app background mode
thats all.... !!!
now can set alarm want. may set scheduled local notification until user interact app
Comments
Post a Comment