Is there any delegate which gets called when we tap on the "View" button of Push Notification alert. This is when App is inactive.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- Plugin with id 'com.google.gms.google-services
- How can I implement password recovery in an iPhone
相关文章
- 现在使用swift开发ios应用好还是swift?
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
- How do you detect key up / key down events from a
There is no way to get notification payload when app is in background, because when icon is tapped applicationDidEnterForeground is called and in this method we cannot access launchOptions OR userInfo dictionary.
Yes there is. It is
application:didFinishLaunchingWithOptions:
. From the Apple docs:Here is the reference: Local and Push Notification Programming Guide Look at the Handling Local and Remote Notifications section.
From a glance at the Push Notification docs, it looks like you get the notification in
application:DidFinishLaunchingWithOptions:
and can retrieve the notification info from the options dictionary usingUIApplicationLaunchOptionsRemoteNotificationKey
.