I am new in branch.io and i am following their official documentation. when i run my application onInitFinished
method is not called. i had found the same question here but a term postBranchInitSession(null);
used in the solution which is unknown to me and i tried to find out but did not get anything. on its official documentation there is very confusing documentation, from that documentation i am not getting something
here is my code:
try {
branch = Branch.getInstance();
branch.initSession(new Branch.BranchReferralInitListener() {
@Override
public void onInitFinished(JSONObject referringParams, BranchError error) {
if (error == null) {
Log.d("Splash onStart", referringParams.toString());
} else {
Log.i("MyApp", error.getMessage());
}
}
}, this.getIntent().getData(), this);
} catch (Exception ex) {
}
Please help me!