You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/11/25 14:36:31 UTC

[GitHub] [cordova-ios] florian-diatelic commented on issue #706: Angular Cordova app stucks at splash screen on iOS 13+

florian-diatelic commented on issue #706: Angular Cordova app stucks at splash screen on iOS 13+
URL: https://github.com/apache/cordova-ios/issues/706#issuecomment-558183360
 
 
   Hi,
   Is it your application that is hiding splash screen ?
   I have resolved this with this workaround : 
   ```
   // If we are in a cordova environment, Angular App have to hide splashscreen.
   			const hideSplashScreen = () => {
   // A timeout is set to give more time for component loading
   				setTimeout(() => {
   							if (navigator["splashscreen"]) {
   								navigator["splashscreen"].hide();
   							}
   						}
   						, 300);
   			};
   			// If device is not ready, we add event to hide when ready
   			document.addEventListener("deviceready", hideSplashScreen, false);
   			hideSplashScreen();
   ```
   I think that on iOS, JS app was loaded before device is ready but not on android. With my code, splashscreen will be hidden when device is ready and js loaded

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


With regards,
Apache Git Services

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