Sometimes it can happens that a double splashscreen is launched during the sending of a rich push parametters with an URL Scheme as a deeplink.

Please find here the technical solution to solve this point : 

  • The URL Schemes (intent-filter) are manage by your SplahScreen
  • The SplashScreen integrate the SDK
  • Lock only the in-apps display on your SplashScreen (in the method onCreate) : getA4S().setInAppDisplayLocked(true);
  • Your SplashScreen needs to detect that he is launched by a push Accengage and in this case : DO NOT effectuate action (even close it)

In the method onResume(), you can use this code for instance :
Bundle bundle = getIntent().getExtras();
//

  • We recover the Payload in case if you would treat custom params at this level.

Bundle payload = bundle.getBundle(Constants.EXTRA_GCM_PAYLOAD);
if(payload == null) {
}
getA4S().startActivity(this);

 

  • Your SplashScreen has to be in lauchMode singleTask or singleTop to do not launch it again during the launching of the URL Scheme by the SDK.
  • Unlock in-apps messages on the destination activity.

 

If this answer do not solve your problematic, do not hesitate to contact us via our form.