Skip to content

Commit

Permalink
Should clear deep link even if Branch
Browse files Browse the repository at this point in the history
  • Loading branch information
aaustin committed Aug 7, 2016
1 parent 56d9e9c commit 2cac2b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/android/io/branch/BranchSDK.java
Original file line number Diff line number Diff line change
Expand Up @@ -693,11 +693,11 @@ public void onInitFinished(JSONObject referringParams, BranchError error) {

message.put("error", "Not a Branch link!");
message.put("url", deepLinkUrl);
deepLinkUrl = null;

out = String.format("NonBranchLinkHandler(%s)", message.toString());
webView.sendJavascript(out);
}
deepLinkUrl = null;
} catch (JSONException e) {
e.printStackTrace();
}
Expand Down
4 changes: 2 additions & 2 deletions src/ios/BranchSDK.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ - (void)initSession:(CDVInvokedUrlCommand*)command
}
else if (self.deepLinkUrl) {
[[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:@"BSDKPostUnhandledURL" object:self.deepLinkUrl]];
self.deepLinkUrl = nil;
}

self.deepLinkUrl = nil;

if (command != nil) {
[self.commandDelegate sendPluginResult: pluginResult callbackId: command.callbackId];
}
Expand Down

0 comments on commit 2cac2b7

Please sign in to comment.