android-branch-deep-linking-attribution: Bug in update 2.4.7 - initSession() method isn't called
Hi,
I have ‘branch’ integrated into the application I’m working on, for a long time now.
In my build gradle(Module:app) I use compile 'io.branch.sdk.android:library:2.+'
to determine the library (I believe this means the latest version is always the one used?!).
Since the latest update to version 2.4.7, my app doesn’t upload it’s launch screen and is stuck on the splash screen (with the upload indicator running non-stop).
It seems the initSession() method is never called- I confirmed that using the Logs placed in the code attached at the end.
When declaring an earlier version - 2.4.4 in the build gradle, the matter is solved.
I would like to know what is your suggestion in this matter, taking into consideration your process of correcting the bug.
Thank you, Tamir
p.s. I’m new to the world of programming, so sorry for any misuse of terminology or lack thereof.
` public static void initBranchIO(Activity activity, final BranchInitListener listener) {
Log.e("METHOD-initBranchIO","METHOD INITIATED");
Branch branch = Branch.getInstance();
Log.e("METHOD-initBranchIO","GET INSTANCE FINISHED");
branch.initSession(new Branch.BranchReferralInitListener() {
@Override
public void onInitFinished(JSONObject referringParams, BranchError error) {
Log.e("METHOD-onInitFinished","METHOD INITIATED");
if (error == null) {
String promoCode = getString(referringParams, PROMO_CODE_BRANCH_PARAM);
PromoUtil.storePromoCode(promoCode);
}
Log.e("METHOD-onInitFinished","ERROR NOT NULL");
listener.branchInitialized();
}
}, activity.getIntent().getData(), activity);
}
`
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (11 by maintainers)
Hey Stas, for the above partner they were calling getAutoInstance in their activity class instead of their application class. If you have someone with init issues have them write in so I can debug!
@anishkapepo Sorry for this issue. We are working on it. Could you please help us with the following things
Thanks