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 ++++ Juick/Supporting Files/Juick-Info.plist | 2 +- Juick/ViewControllers/DiscoverViewController.m | 7 ------- 3 files changed, 5 insertions(+), 8 deletions(-) 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(); } diff --git a/Juick/Supporting Files/Juick-Info.plist b/Juick/Supporting Files/Juick-Info.plist index 1a40853..6c2cf43 100644 --- a/Juick/Supporting Files/Juick-Info.plist +++ b/Juick/Supporting Files/Juick-Info.plist @@ -21,7 +21,7 @@ CFBundleSignature ???? CFBundleVersion - 54 + 55 ITSAppUsesNonExemptEncryption LSApplicationCategoryType diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m index e94d673..483c5e2 100644 --- a/Juick/ViewControllers/DiscoverViewController.m +++ b/Juick/ViewControllers/DiscoverViewController.m @@ -47,13 +47,6 @@ AppDelegate *appDelegate; } appDelegate = (AppDelegate *) [UIApplication sharedApplication].delegate; } --(void) viewDidAppear:(BOOL)animated { - [super viewDidAppear:animated]; - - if (appDelegate.pushedThread != nil) { - [self performSegueWithIdentifier:@"threadViewSegue" sender:self]; - } -} -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSString * cellIdentifier = @"messageCell"; -- cgit v1.2.3