onInitFinished
方法未调用。我发现了同样的问题
here
但是一个术语
postBranchInitSession(null);
在我不知道的解决方案中使用,我试图找到,但没有得到任何结果。在它的官方文件中有很多令人困惑的文件,从这些文件中我没有得到什么东西
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) {
}