I installed Cordova plugin:
cordova-plugin-crosswalk-webview
Everything works fine with this plugin, but then I installed
cordova plugin add cordova-plugin-splashscreen
for creating splashscreen. In file config.xml in widget section I put this code:
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="5000" />
<preference name="AutoHideSplashScreen" value="true" />
<preference name="ShowSplashScreenSpinner" value="false" />
Build was successful. After start application it shows splashscreen (for 5 second), but when splashscreen is disappear, it shows just white page instead my app. After I remove webview plugin - everyting works fine. How can I fix that problem?
Related
Well...
Once i've set the android-minSdkLevel on my ionic project and this worked, but now this isn't working...
I've set
<preference name="android-minSdkVersion" value="14" />
<preference name="android-targetSdkVersion" value="19" />
And when I run ionic platform add android it is always adding android#5.2.2 instead of android#4.4.2(api level 19)...
I've found this at the end of my config.xml <engine name="android" spec="~5.2.2" /> and tried to use spec="~4.4.2" but this didn't work too... Cordova returns me that 4.4.2 is not an available version.
I activated the splashscreen plugin, created 9patch files and inserted them into the assets. What is more, I added this..
<preference name="SplashScreenDelay" value="10000" />
<preference name="SplashMaintainAspectRatio" value="true" />
to my intelxdk.config.additions.xml file and use
navigator.splashscreen.hide();
in my onDeviceReady event.
The splashscreen does not show anyway, when I build the app with Crosswalk.
What am I doing wrong? It would be nice, if you could help me with that.
Thx in advance.
i have really searched about the problem but didn't find the correct solution that's why again here..
i have a Ionic+ Cordova project i want to show Splash Screen on android. project include a
res folder and inside that a drawable folder where i have placed my screen.png which i want to show.
but the problem is the file is not showing .
what is the problem how to show
i have include below line of code in config.xml which is inside of root folder
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="20000" />
<preference name="auto-hide-splash-screen" value="false" />
and my splash screen is here
platforms/android/res/drawable/screen.png
before app load a black than white backgound shows..
You need to install the splashscreen plugin in order to use it.
You can write the preferences in the config.xml, but I would recommand to do use the platform tag. Also make sure that you provide a splashscreen for each resolution in the drawables folder
<platform name="android">
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="1500" />
</platform>
Did you add the SplashScreen to AndroidManifest.xml ?
I'm wanting to limit the android users (on google play store, etc.) to android 4.x & up.
I'm using the Intel XDK environment to develop an android app. It's being built with the cordova 3.x build process (in XDK) and I've setup the intelxdk.config.xml file as follows below.
The min sdk version is:
<preference name="android-minSdkVersion" value="14" />
However when I set it up in the Google Play Store it says that it will be compatible with android 1.6 & up?
I'm wondering if I'm missing something?
Any advice would be appreciated.
Thanks. The full android config is below:
<!-- Android specific configuration -->
<preference name="DisallowOverscroll" value="false"/>
<preference name="BackgroundColor" value="0xffffffff"/>
<preference name="SplashScreen" value="splash" />
<preference name="SplashScreenDelay" value="5000" />
<preference name="android-minSdkVersion" value="14" />
<preference name="android-targetSdkVersion" value="19" />
<preference name="android-permission" value="GET_TASKS" />
<preference name="android-permission" value="VIBRATE" />
<preference name="android-signed" value="true" />
<!--
<preference name="android-installLocation" value="<LOCATION>" />
<preference name="android-windowSoftInputMode" value="<INPUTMODE>" />
-->
I just got a message from the Intel XDK group -- they suggest upgrading to the latest (build 1199) version of XDK where the build doesn't require manually creating the intelxdk.config.xml file. I don't understand exactly what that fixed, but it resolved it ;)
I put this code in a cordova (3.4.0) app:
<preference name="exit-on-suspend" value="true" />
<preference name="keepRunning" value="false" />
but when I push my home button for quit, and push it again, I can see the app keep running in the list ! so, what is the good param?