javascript - White page showing after splash screen before app load (cordova-Android) -


i'm developing cordova android application load website using inappbrowser , don't know why have white page after splash screen , want rid , here index.html code :

<!doctype html>    <html>      <head>          <meta name="format-detection" >          <meta name="msapplication-tap-highlight" content="no">          <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">          <title>inapp browser</title>               </head>      <body>        		  		          <script type="text/javascript" src="js/jquery.js"></script>	  		<script type="text/javascript" src="cordova.js"></script>  		<script type="text/javascript" src="js/app.js"></script>      </body>  </html>

and here config.xml :

<?xml version='1.0' encoding='utf-8'?>  <widget id="tn.example.inapptest" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">      <name>inapptest</name>      <description>          sample apache cordova application responds deviceready event.      </description>      <author email="dev@cordova.apache.org" href="http://cordova.io">          apache cordova team      </author>      <content src="index.html" />      <plugin name="cordova-plugin-whitelist" spec="1" />      <access origin="*" />      <allow-intent href="http://*/*" />      <allow-intent href="https://*/*" />      <allow-intent href="tel:*" />      <allow-intent href="sms:*" />      <allow-intent href="mailto:*" />      <allow-intent href="geo:*" />      <platform name="android">          <allow-intent href="market:*" />      <splash src="res/screen/android/splash-port-hdpi.png" density="port-hdpi"/>      <splash src="res/screen/android/splash-port-ldpi.png" density="port-ldpi"/>      <splash src="res/screen/android/splash-port-mdpi.png" density="port-mdpi"/>      <splash src="res/screen/android/splash-port-xhdpi.png" density="port-xhdpi"/>      <icon src="res/screen/android/ldpi.png" density="ldpi" />      <icon src="res/screen/android/mdpi.png" density="mdpi" />      <icon src="res/screen/android/hdpi.png" density="hdpi" />      <icon src="res/screen/android/xhdpi.png" density="xhdpi" />      </platform>      <platform name="ios">          <allow-intent href="itms:*" />          <allow-intent href="itms-apps:*" />      </platform>      <preference name="splashscreendelay" value="50000" />       <preference name="fadesplashscreen" value="false"/>       <preference name="splashscreenbackgroundcolor" value="0xffffffff"/>      <plugin name="cordova-plugin-inappbrowser" spec="~1.4.0" />      <plugin name="cordova-plugin-dialogs" spec="~1.2.1" />  </widget>

white page showing due theme selection of app or may landing page doing many works , working in main thread.so, happened.

most theme selection depends upon issue.

android:theme="@android:style/theme.translucent.notitlebar" 

one time have same problem , have set theme in manifest file.so, have handled problem.

thanks, hope :)


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -