diff --git a/BranchMonsterFactory/AppDelegate.m b/BranchMonsterFactory/AppDelegate.m index 30e12ee..2ce40a3 100644 --- a/BranchMonsterFactory/AppDelegate.m +++ b/BranchMonsterFactory/AppDelegate.m @@ -39,6 +39,16 @@ - (BOOL)application:(UIApplication *)application [branch initSessionWithLaunchOptions:launchOptions andRegisterDeepLinkHandlerUsingBranchUniversalObject: ^ (BranchUniversalObject *BUO, BranchLinkProperties *linkProperties, NSError *error) { + NSDictionary *params = [[Branch getInstance] getLatestReferringParams]; + if (params[@"+non_branch_link"] && params[@"+from_email_ctd"]) { + NSURL *url = [NSURL URLWithString:params[@"+non_branch_link"]]; + if (url) { + [application openURL:url]; + // check to make sure your existing deep linking logic, if any, is not executed + return; + } + } + if (BUO && [BUO.metadata objectForKey:@"monster"]) { self.initialMonster = BUO; [[NSNotificationCenter defaultCenter] postNotificationName:@"pushEditAndViewerViews" object:nil];