Skip to content

Commit

Permalink
fix: updated openURL to latest syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanneff committed May 23, 2017
1 parent 7b54a9d commit bc7c25d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions plugin.template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ SOFTWARE.
<config-file target="config.xml" parent="/*">
<feature name="BranchSDK">
<param name="ios-package" value="BranchSDK" />
<param name="onload" value="true" />
</feature>
</config-file>

Expand Down
1 change: 1 addition & 0 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ SOFTWARE.
<config-file target="config.xml" parent="/*">
<feature name="BranchSDK">
<param name="ios-package" value="BranchSDK" />
<param name="onload" value="true" />
</feature>
</config-file>

Expand Down
6 changes: 3 additions & 3 deletions src/ios/AppDelegate+BranchSdk.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#import "BranchNPM.h"

#ifdef BRANCH_NPM
#import "Branch.h"
#import "Branch.h"
#else
#import <Branch/Branch.h>
#endif
Expand All @@ -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<UIApplicationOpenURLOptionsKey,id> *)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
Expand Down

0 comments on commit bc7c25d

Please sign in to comment.