react-native-branch-deep-linking-attribution
react-native-branch-deep-linking-attribution copied to clipboard
Session initialization already happened.
I had this issue in my project.
Session initialization already happened. To force a new session, se intent extra, 'branch_force_new_session', to true.
I am using branch to retrieve some params and openURL while opening a notification outside an app. It works fine when I already killed the app. The branch able to open URL. However, it showed error(error message above) and branch.openURL not working when I didnt kill the app.
Below is my MainActivity.java.
Thank you.
any updates?
Please add below method in MainActivity.java class
@Override
protected void onRestart() {
super.onRestart();
Intent intent = getIntent();
setIntent(intent);
intent.putExtras(this.getIntent());
intent.putExtra("branch_force_new_session", true);
}
Also seeing this one occasionally in our app. Not sure exactly when or why it's happening either. With the random "trouble reaching branch servers" and "session initialization already happened" Branch seems really unreliable. This SDK seems to fail more often than it works on Android.