Skip to content

Commit

Permalink
Update MainActivity.java
Browse files Browse the repository at this point in the history
  • Loading branch information
gdeluna-branch committed Oct 16, 2023
1 parent c88903b commit 2224709
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -699,25 +699,7 @@ public void onInitFinished(BranchUniversalObject branchUniversalObject, LinkProp
public void onNewIntent(Intent intent) {
super.onNewIntent(intent);
Log.d("BranchSDK_Tester", "initSession onNewIntent " + intent);

if(intent != null && intent.getData() != null) {
intent.putExtra(Defines.IntentKeys.ForceNewBranchSession.getKey(), true);
}
this.setIntent(intent);

//what if you don't need a reinit call
Branch.sessionBuilder(this).withCallback(new BranchReferralInitListener() {
@Override
public void onInitFinished(JSONObject referringParams, BranchError error) {
if (error != null) {
Log.e("BranchSDK_Tester_OnNI", error.getMessage());
} else if (referringParams != null) {
Log.d("BranchSDK_Tester_OnNI", referringParams.toString());
}
}
}).reInit();


}

@Override
Expand Down

0 comments on commit 2224709

Please sign in to comment.