在AppDelegate中引入NGPushRouteHelper 在收到消息推送的代理中获取userInfo NSDictionary * userInfo = response.notification.request.content.userInfo; 假设userinfo = @{@"url":@"{"router":"app","action":"LGLiveVC","param":{"store_name":"测试","store_Id":"1234"}}"}; [NGPushRouteHelper handleUserInfo:userinfo];
app为内部跳转
web为外部跳转
action为如果为APP内部跳转的时候需要跳转到的页面控制器name
param为控制器的变量集合
运行时直接赋值