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

enter image description here

• add `content-available: 1 in payload while sending server

enter image description here

• lets ios handle open app background mode

enter image description here

thats all.... !!!

now can set alarm want. may set scheduled local notification until user interact app


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -