diff --git a/plugin.template.xml b/plugin.template.xml index 27576042..d95ecf6b 100644 --- a/plugin.template.xml +++ b/plugin.template.xml @@ -69,6 +69,7 @@ SOFTWARE. + diff --git a/plugin.xml b/plugin.xml index 5df0c1a5..74a14be7 100644 --- a/plugin.xml +++ b/plugin.xml @@ -69,6 +69,7 @@ SOFTWARE. + diff --git a/src/ios/AppDelegate+BranchSdk.m b/src/ios/AppDelegate+BranchSdk.m index 7e66c75a..64e19e39 100644 --- a/src/ios/AppDelegate+BranchSdk.m +++ b/src/ios/AppDelegate+BranchSdk.m @@ -11,7 +11,7 @@ #import "BranchNPM.h" #ifdef BRANCH_NPM - #import "Branch.h" + #import "Branch.h" #else #import #endif @@ -25,9 +25,9 @@ - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserAct @implementation AppDelegate (BranchSdk) // Respond to URI scheme links -- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { +- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { // pass the url to the handle deep link call - if (![[Branch getInstance] handleDeepLink:url]) { + if (![[Branch getInstance] application:app openURL:url options:options]) { // do other deep link routing for the Facebook SDK, Pinterest SDK, etc [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]]; // send unhandled URL to notification