在与推送通知指定页面打开的应用程序 [英] Open app at specified page with Push Notification
本文介绍了在与推送通知指定页面打开的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要寻找一种方式来打开pushnotification所指向的网页上的应用程序。
有没有办法启动我的应用程序的时候,看看我收到的推送通知?
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?
在此先感谢
推荐答案
检查的启动选项键 UIApplicationLaunchOptionsRemoteNotificationKey
和 UIApplicationLaunchOptionsLocalNotificationKey
在应用中:didFinishLaunchingWithOptions:
Check for the launch option keys UIApplicationLaunchOptionsRemoteNotificationKey
and UIApplicationLaunchOptionsLocalNotificationKey
in the launchOptions-Dictionary given in application:didFinishLaunchingWithOptions:
.
这篇关于在与推送通知指定页面打开的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文