Splash screen hides too quickly in Tesflight


#1

Hello,

I am running into an issue where when I open my app in Testflight, the splash screen hides and then there is just a white screen before the app loads.

I have this in my app.js:

.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {
    setTimeout(function() {
        navigator.splashscreen.hide();
    }, 3000);
 });
})

And this in config file:

<preference name="SplashScreen" value="splash"/>
  <preference name="AutoHideSplashScreen" value="true"/>
  <preference name="SplashScreenDelay" value="4000"/>
  <preference name="FadeSplashScreen" value="true"/>
  <preference name="FadeSplashScreenDuration" value="1"/>

The splash screen hides normally when I run my app through the emulator, its just when I run it in Testflight that it breaks. Neither the config nor app.js seem to have any effect on how long the splash screen shows on Testflight.

If anyone has any advice I’d really appreciate it, thanks!


#2

Set Autohide to false. You currently have it as true so it hides in 4 seconds.
<preference name="AutoHideSplashScreen" value="false"/>


#3

Well when I set AutoHideSplashScreen to false then the splash screen doesn’t hide at all. I removed the hide function from my app.js file because it appeared that that had no effect on hiding the splash screen in Testflight.