breautek commented on issue #946:
URL: https://github.com/apache/cordova-ios/issues/946#issuecomment-659449172


   I'm not sure if this changed in cordova-ios@6 but this is what I do in my 
apps:
   
   config.xml:
   ```xml
   <preference name="AutoHideSplashScreen" value="false" />
   ```
   
   This will make it so the splashscreen never disappears until you explicitly 
tell it to, which you can via javascript:
   
   ```js
   navigator.splashscreen.hide();
   ```
   
   This allows you to control when to hide the splash screen. For example in my 
app, before I show my own UI I first check if the user has stored credentials, 
and if so load the main screen first. Otherwise load the login screen. Only 
then I hide the splashscreen.
   
   > There should be a loading animation on the initial screen.
   
   I think android supports this, but not sure about iOS. Do note that splash 
screens are images that gets displayed, so there will be a brief period where 
there is going to be a still image. This is the time between app launch and 
native code actually executing.
   
   While the splashscreen code has been migrated away from the plugin, I 
believe the 
[documentation](https://github.com/apache/cordova-plugin-splashscreen#preferences)
 still applies


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to