zmalter99 commented on issue #918:
URL: https://github.com/apache/cordova-ios/issues/918#issuecomment-650046102


   According to cordova-plugin-splashscreen 
[documentation](https://github.com/apache/cordova-plugin-splashscreen), you can 
use the following code within the deviceready event handler:
   ```
   document.addEventListener("deviceready", function () {
       setTimeout(function () {
           navigator.splashscreen.hide();
       }, 2000);
   });
   ```
   A few things to note, the AutoHideSplashScreen preference in your config.xml 
must be set to false (which you already did) and of course you must link the 
cordova.js file to your HTML document: `<script src="cordova.js"></script>`
   I've forgotten to do that before. Would you mind sharing your code if the 
above doesn't work?


----------------------------------------------------------------
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