You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/06/26 08:10:13 UTC

[GitHub] [cordova-ios] zmalter99 commented on issue #918: Calling `navigator.splashscreen.hide()` does not hide the splashscreen

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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org