我已在我的应用程序中成功实现了push notification part
。但我正在handling the push notification flow
中面对这些问题。
我的要求是:点击推送通知后,我想导航到我的标签栏远离根视图的标签栏。请看下面的流程。对不起我没有足够的声誉来发布我的故事板图像。
root view controller | ---> controller 4 --> TABBAR CONTROLLER
---> login view controller | ---> controller 2
---> *side menu view controller | ---> controller 1
*(like Facebook side menu)
| ---> controller 3
答案 0 :(得分:0)
用于识别和推送到ViewController(Look at my another Anser Here)
在 AppDelegate
实施此方法- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
UITabBarController *obj=[storyboard instantiateViewControllerWithIdentifier:@"tab"];
self.navigationController.navigationBarHidden=YES;
[self.navigationController pushViewController:obj animated:YES];
}