Open app at specified page with Push Notification

2019-01-24 18:40发布

问题:

I am looking for a way to open an app on the page a pushnotification is pointing to. Is there a way to see if I have received any push notification when starting my app?

Thanks in advance

回答1:

Check for the launch option keys UIApplicationLaunchOptionsRemoteNotificationKey and UIApplicationLaunchOptionsLocalNotificationKey in the launchOptions-Dictionary given in application:didFinishLaunchingWithOptions:.