KhAliMoh commented on issue #1463:
URL: 
https://github.com/apache/cordova-android/issues/1463#issuecomment-1568228156

   I had the same problem while working with Polymer 2 and Cordova. At first, I 
made it work by adding the code `navigator.splashscreen.hide()` in the index 
file. But then, I needed to call it from my custom element called `<main-app>` 
after something loaded. When I tried adding the same code inside `<main-app>`, 
it didn't work. So, I tried using a setTimeout function with a 0-second delay, 
and it worked perfectly. I hope this information can help anyone who faces a 
similar problem.
   
   `
   setTimeout(()=> {
       navigator.splashscreen.hide()
   }, 0)  
   `


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

To unsubscribe, e-mail: [email protected]

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