I know that this has been asked (and answered) several times ( Phone screen showing a white screen after the screen saver - IOS , Phonegap 2.0 - when the application starts, the white screen blinks before loading my application , how to kill the white flickering screen saver at the beginning of the application for a mobile phone iOS? ), but none of these solutions seem to work for me. Maybe because I use Phonegap version 3?
I download only Phonegap and jQuery 2.0.0 (other solutions relate to jQuery-mobile, which I do not use), and I focus only on iOS for deployment. I have downloaded a pop-up image, then the application displays a white screen (the duration varies - I assume it loads the application, maybe?), Then my index.html loads my first screen. Here is my current chapter:
<head> <meta charset="utf-8" /> <meta name="format-detection" content="telephone=no" /> <meta name="viewport" content="user-scalable=no, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" /> <link type="text/css" rel="stylesheet" href="css/main.css" /> <title>My App</title> <script type="text/javascript" src="phonegap.js"></script> <script src="js/lib/jquery-2.0.0.min.js"></script> <script src="js/main.js"></script> </head>
I tried adding this to my config.xml file (at the same folder level as index.html):
<preference name="backgroundColor" value="0x000000" />
but I still get a white flash. I also tried manually hiding / showing the splash with:
function onDeviceReady() { navigator.splashscreen.show(); }
but this did not seem to have any effect. Anyone have any suggestions?
ios cordova
Brian flanagan
source share