Home  >  Q&A  >  body text

远程推送 - ios推送问题

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

PHP中文网PHP中文网2741 days ago294

reply all(3)I'll reply

  • 高洛峰

    高洛峰2017-04-17 17:48:17

    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.

    reply
    0
  • 迷茫

    迷茫2017-04-17 17:48:17

    Does anyone know?

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 17:48:17

    - (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

    reply
    0
  • Cancelreply