友盟-推送-IOS-IOS如何跳转到指定页面?

2025-05-12 06:36:53
推荐回答(1个)
回答1:

这个需要用户直接在 didFinishLaunchingWithOptions 和 didReceiveRemoteNotification 这两个方法里面捕获payload内容 自己去实现
——————————————————————————————————————————————————————
给payload添加自定义参数。
app在前台或者后台的时候用didReceiveRemoteNotification:

app未运行状态的时候didFinishLaunchingWithOptions:
NSDictionary* userInfo = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];