From ed209b42205a9722be6b52fae2765ae02f244dde Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 8 Apr 2018 11:25:34 +0300 Subject: another attempt to fix push --- Juick/AppDelegate.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Juick/AppDelegate.m') diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m index cb3b19e..b376052 100644 --- a/Juick/AppDelegate.m +++ b/Juick/AppDelegate.m @@ -85,6 +85,10 @@ NSDictionary *userInfo = response.notification.request.content.userInfo; NSLog(@"User Info : %@", userInfo); [self parseNotificationPayload:userInfo]; + UITabBarController *main = (UITabBarController *)self.window.rootViewController; + [main setSelectedIndex:0]; + UINavigationController *discover = (UINavigationController *)[main.viewControllers objectAtIndex:0]; + [discover performSegueWithIdentifier:@"threadViewSegue" sender:discover]; completionHandler(); } -- cgit v1.2.3