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:

  1. run branch.initsession in mainactivity instead.
  2. run branch.initsession in splashactivity, launch mainactivity, pass branch mainactivity 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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -