Skip to content

Commit 94fdca9

Browse files
author
Adrian Marquez
committed
Add a wrapper function for the iOS session restart function
1 parent 888fafe commit 94fdca9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/ios/BranchSDK.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ - (id)handleDeepLink:(CDVInvokedUrlCommand*)command
5858
return [NSNumber numberWithBool:[[Branch getInstance] handleDeepLink:url]];
5959
}
6060

61+
- (id)handleDeepLinkWithNewSession:(CDVInvokedUrlCommand*)command
62+
{
63+
NSString *arg = [command.arguments objectAtIndex:0];
64+
NSURL *url = [NSURL URLWithString:arg];
65+
self.deepLinkUrl = [url absoluteString];
66+
67+
return [NSNumber numberWithBool:[[Branch getInstance] handleDeepLinkWithNewSession:url]];
68+
}
69+
6170
- (void)continueUserActivity:(CDVInvokedUrlCommand*)command
6271
{
6372

0 commit comments

Comments
 (0)