How can I create an application, add a splashscreen plugin, the splash screen should disappear when the device is ready, and WHITE FLICKER does not appear? This happens in Adobe build, as well as on cli build on the Android platform.
These are simple steps that I have used again and again throughout the week to figure this out:
- I created an application: phonegap create app
- I added a plugin: local phonegap plugin add org.apache.cordova.splashscreen
- I added this to the config.xml file from the www folder:
<feature name="SplashScreen"> <param name="android-package" value="org.apache.cordova.splashscreen" /> </feature>
Now the plugin is installed. To make sure the splash screen disappears after the separator has been pressed, I added:
navigator.splashscreen.hide();
in index.js under the onDeviceReady function
With these steps, it works fine. A popup window displays normally, it disappears normally, but a white flash appears. Why is this happening? Does the screen saver hide before everything boots up or why? I noticed that when I set the screen saver to a value of, for example, 3 seconds, the white flash disappears, but I want it to disappear as quickly as the device was ready, because I have another effect that starts with the finished device, and if I enter the second time in the application it loads faster, and the splash screen just remains unchanged, and the effect occurs under the spray screen.
So, how to finally solve this problem?
I also tried
<preference name="AutoHideSplashScreen" value="false" />
I tried setting the body background to black because the effect I was talking about was a black div that disappears at the beginning of the application.
And I also tried making webview black
<preference name="backgroundColor" value="0x000000" />
All without luck.
How can i solve this? I think the easiest way out is to install a black screen, but my preference command does not work.