Skip to content

Commit e54a004

Browse files
Merge pull request #626 from BranchMetrics/SDK-869/resume-state-not-working
Sdk 869/resume state not working
2 parents 80d8339 + 00a1a72 commit e54a004

File tree

3 files changed

+4
-18
lines changed

3 files changed

+4
-18
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 & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,14 @@ 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;
5252
private Activity activity;
5353
private Branch instance;
5454
private String deepLinkUrl;
5555

56-
private SessionListener sessionListener;
57-
5856
/**
5957
* Class Constructor
6058
*/
@@ -87,8 +85,6 @@ protected void pluginInitialize() {
8785
public void onNewIntent(Intent intent) {
8886
intent.putExtra("branch_force_new_session", true);
8987
this.activity.setIntent(intent);
90-
91-
this.reInitSession();
9288
}
9389

9490
/**
@@ -298,17 +294,7 @@ private void initSession(CallbackContext callbackContext) {
298294
this.deepLinkUrl = data.toString();
299295
}
300296

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);
297+
this.instance.initSession(new SessionListener(callbackContext), data, activity);
312298
}
313299

314300
/**

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)