远程推送 - ios推送问题
PHP中文网
PHP中文网 2017-04-17 17:46:17
0
3
290

我有一个疑问手机收到一条推送消息点开后打开app如何跳转到相应的画面,比如网易推送一条新闻点开后打开app,并且跳转到相应的画面。如何实现,还是根本不用自己实现已经集成好了?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(3)
小葫芦

You need to handle the jump yourself based on the information in the Notification when you enter the App. Here is a simple idea: after you click on the notification to enter the App, the Notification you get tells you to jump to a Detail page and brings you the corresponding data interface. Then you present a Detail page from the current page and pass Notification can load data into your data interface.

迷茫

Does anyone know?

伊谢尔伦

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification

It can be done in AppDelegate
You can check the relevant tutorials

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!