Skip to content

Commit 6dfa497

Browse files
fix reInitSession, still need to fix coming back from recent apps
1 parent 49406ca commit 6dfa497

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/android/io/branch/BranchSDK.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ protected void pluginInitialize() {
7171
PrefHelper.Debug("pluginInitialize");
7272

7373
this.activity = this.cordova.getActivity();
74-
Branch.enableLogging();
74+
// Branch.enableLogging();
7575
Branch.disableInstantDeepLinking(true);
7676
BranchUtil.setPluginType(BranchUtil.PluginType.CordovaIonic);
7777
if (this.instance == null) {
@@ -83,7 +83,7 @@ protected void pluginInitialize() {
8383
* Called when the activity receives a new intent.
8484
*/
8585
public void onNewIntent(Intent intent) {
86-
86+
intent.putExtra("branch_force_new_session", true);
8787
this.activity.setIntent(intent);
8888

8989
this.reInitSession();

0 commit comments

Comments
 (0)