Let’s review the possible scenarios when the operating delivers a local notification or a remote notification for an application.
The notification is delivered when the application isn’t running in the foreground. In this case, the system presents the notification, displaying an alert, badging an icon, perhaps playing a sound.
As a result of the presented notification, the user taps the action button of the alert or taps (or clicks) the application icon. If the action button is tapped (on a device running iOS), the system launches the application and the application calls its delegate’s application:didFinishLaunchingWithOptions: method (if implemented); it passes in the notification payload (for remote notifications) or the local-notification object (for local notifications).
If the application icon is tapped on a device running iOS, the application calls the same method, but furnishes no information about the notification.
关于·FAQ·API·我们的愿景·广告投放·感谢·实用小工具· 980 人在线最高记录 5168· Select Language
World is powered by solitude
VERSION: 126.96.36.199 · 11ms · UTC 20:33 · PVG 04:33 · LAX 12:33 · JFK 15:33 ♥ Do have faith in what you're doing.