Which method will be triggered when the notification received on iPhone(not after the notification is tapped and opened)?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I’m now using didReceiveRemoteNotification to get the payload of the notification pushed from Parse, however, it is only triggered when the notification is tapped and opened. What I’m trying to do is start an alarm to remind the user that a notification has arrived, so I guess didReceiveRemoteNotification is not what I’m looking for. Which method should I look into for this purpose? Thank you! 回答1: Words from The WWDC 2014 Whats New in iOS Notifications Local and push notifications let background or inactive apps notify users that an event