android - Branch init between slash and main activity -
my app launches splashactivity
followed mainactivity
. run branch.initsession
in splashactivity
it's taking 1.5 seconds return listener delays launch of mainactivity
. reduce time.
my ideas are:
- run
branch.initsession
inmainactivity
instead. - run
branch.initsession
insplashactivity
, launchmainactivity
, pass branchmainactivity
using eventbus processing.
does have recommendations on how solve issue?
cheers, duane.
amruta branch here.
by default, branch delay install call 1.5 seconds. delay install call in order capture install referrer string passed through google play, increases attribution , deferred deep linking accuracy. not delay other call, , install call occurs first time user opens app.
if receive referrer string before 1.5 seconds, fire call, meaning delay 1.5 seconds, not guaranteed take long.
if you’d optimize first install call, paste following code in application class, , not delay first install call.
public final class customapplicationclass { @override public void oncreate() { super.oncreate(); // initialize branch object branch.setplaystorereferrerchecktimeout(0); branch.getautoinstance(this); } }
Comments
Post a Comment