Skip to content

Commit 7f6af6d

Browse files
fixed missing referring params/dropped callback
1 parent 54664e1 commit 7f6af6d

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "branch-cordova-sdk",
33
"description": "Branch Metrics Cordova SDK",
44
"main": "src/index.js",
5-
"version": "4.1.2",
5+
"version": "4.1.3",
66
"homepage": "https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking",
77
"repository": {
88
"type": "git",

src/android/io/branch/BranchSDK.java

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static class BranchLinkProperties extends io.branch.referral.util.LinkProperties
4545
// Standard Debugging Variables
4646
private static final String LCAT = "CordovaBranchSDK";
4747
// todo pick up plugin version dynamically
48-
private static final String BRANCH_PLUGIN_VERSION = "4.1.2";
48+
private static final String BRANCH_PLUGIN_VERSION = "4.1.3";
4949

5050
// Private Method Properties
5151
private ArrayList<BranchUniversalObjectWrapper> branchObjectWrappers;
@@ -87,8 +87,6 @@ protected void pluginInitialize() {
8787
public void onNewIntent(Intent intent) {
8888
intent.putExtra("branch_force_new_session", true);
8989
this.activity.setIntent(intent);
90-
91-
this.reInitSession();
9290
}
9391

9492
/**
@@ -298,17 +296,7 @@ private void initSession(CallbackContext callbackContext) {
298296
this.deepLinkUrl = data.toString();
299297
}
300298

301-
this.sessionListener = new SessionListener(callbackContext);
302-
this.instance.initSession(this.sessionListener, data, activity);
303-
}
304-
305-
private void reInitSession() {
306-
if (this.sessionListener == null) {
307-
return;
308-
}
309-
310-
this.activity = this.cordova.getActivity();
311-
this.instance.reInitSession(this.activity, this.sessionListener);
299+
this.instance.initSession(new SessionListener(callbackContext), data, activity);
312300
}
313301

314302
/**

src/ios/BranchSDK.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#import "BranchSDK.h"
22

3-
NSString * const pluginVersion = @"4.1.2";
3+
NSString * const pluginVersion = @"4.1.3";
44

55
@interface BranchSDK()
66

0 commit comments

Comments
 (0)