Anders Borg created CB-8638:
-------------------------------
Summary: Issue with org.apache.cordova.splashscreen on Android 4.1
Key: CB-8638
URL: https://issues.apache.org/jira/browse/CB-8638
Project: Apache Cordova
Issue Type: Bug
Components: Android, Plugin SplashScreen
Environment: PhoneGap 3.7.0 via PhoneGap Build and locally
Reporter: Anders Borg
When using the SplashScreen plugin on an Android 4.1 device I get an
"undefined" error on this line of code. I suspect splashscreen not being set.
navigator.splashscreen.hide();
This is the related settings in config.xml:
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="2000"/>
<preference name="AutoHideSplashScreen" value="false"/>
<gap:plugin name="org.apache.cordova.splashscreen" />
No problem on iOS8 nor Android 4.4 (with the exact same APK). Those are the
versions I had handy.
What follows is the complete config.xml.
Regards,
Anders Borg
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
xmlns:gap="http://phonegap.com/ns/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.instadv.beconfidentacne"
version="1.10"
android-versionCode="110"
>
<name>Acne</name>
<description>Your mobile companion to achieve the best result when using
beconfiDent's Active Acne products.</description>
<author email="[email protected]" href="http://abiro.com">Abiro</author>
<access origin="*" />
<content src="index.html" />
<preference name="permissions" value="none" />
<preference name="phonegap-version" value="3.7.0" />
<preference name="orientation" value="portrait" />
<preference name="fullscreen" value="false" />
<preference name="target-device" value="universal" />
<preference name="prerendered-icon" value="false" />
<preference name="detect-data-types" value="true" />
<preference name="exit-on-suspend" value="false" />
<preference name="deployment-target" value="6.0" />
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="android-minSdkVersion" value="11"/>
<preference name="android-maxSdkVersion" value="21"/>
<preference name="android-targetSdkVersion" value="21"/>
<preference name="android-windowSoftInputMode"
value="stateHidden|adjustResize" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="2000"/>
<preference name="AutoHideSplashScreen" value="false"/>
<preference name="EnableViewportScale" value="false"/>
<preference name="android-installLocation" value="auto"/>
<feature name="SplashScreen">
<param name="android-package"
value="org.apache.cordova.splashscreen.SplashScreen" />
</feature>
<gap:platform name="ios" />
<gap:platform name="android" />
<icon src="icon.png" />
<gap:splash src="splash.png" />
<icon gap:platform="ios" src="res/icon/ios/icon-small.png" width="29"
height="29" />
<icon gap:platform="ios" src="res/icon/ios/icon-small_2x.png" width="58"
height="58" />
<icon gap:platform="ios" src="res/icon/ios/icon-40.png" width="40"
height="40" />
<icon gap:platform="ios" src="res/icon/ios/icon-40_2x.png" width="80"
height="80" />
<icon gap:platform="ios" src="res/icon/ios/icon-50.png" width="50"
height="50" />
<icon gap:platform="ios" src="res/icon/ios/icon-50_2x.png" width="100"
height="100" />
<icon gap:platform="ios" src="res/icon/ios/icon.png" width="57" height="57"
/>
<icon gap:platform="ios" hsrc="res/icon/ios/icon_2x.png" width="114"
eight="114" />
<icon gap:platform="ios" src="res/icon/ios/icon-60.png" width="60"
height="60" />
<icon gap:platform="ios" src="res/icon/ios/icon-60_2x.png" width="120"
height="120" />
<icon gap:platform="ios" src="res/icon/ios/icon-60_3x.png" width="180"
height="180" />
<icon gap:platform="ios" src="res/icon/ios/icon-72.png" width="72"
height="72" />
<icon gap:platform="ios" src="res/icon/ios/icon-72_2x.png" width="144"
height="144" />
<icon gap:platform="ios" src="res/icon/ios/icon-76.png" width="76"
height="76" />
<icon gap:platform="ios" src="res/icon/ios/icon-76_2x.png" width="152"
height="152" />
<gap:splash gap:platform="ios" src="res/screen/ios/Default.png" width="320"
height="480" />
<gap:splash gap:platform="ios" src="res/screen/ios/Default_2x.png"
width="640" height="960" />
<gap:splash gap:platform="ios" src="res/screen/ios/Default-568h_2x.png"
width="640" height="1136" />
<gap:splash gap:platform="ios" src="res/screen/ios/Default-667h_2x.png"
width="750" height="1334" />
<gap:splash gap:platform="ios"
src="res/screen/ios/Default-Portrait-736h_3x.png" width="1242" height="2208" />
<gap:splash gap:platform="ios" src="res/screen/ios/Default-Portrait.png"
width="768" height="1024" />
<gap:splash gap:platform="ios" src="res/screen/ios/Default-Portrait_2x.png"
width="1536" height="2048" />
<icon gap:platform="android" gap:qualifier="ldpi"
src="res/icon/android/ldpi.png"/>
<icon gap:platform="android" gap:qualifier="mdpi"
src="res/icon/android/mdpi.png"/>
<icon gap:platform="android" gap:qualifier="hdpi"
src="res/icon/android/hdpi.png"/>
<icon gap:platform="android" gap:qualifier="xhdpi"
src="res/icon/android/xhdpi.png"/>
<icon gap:platform="android" gap:qualifier="xxhdpi"
src="res/icon/android/xxhdpi.png"/>
<icon gap:platform="android" gap:qualifier="xxxhdpi"
src="res/icon/android/xxxhdpi.png"/>
<gap:splash gap:platform="android" gap:qualifier="ldpi"
src="res/screen/android/ldpi-portrait.png" />
<gap:splash gap:platform="android" gap:qualifier="mdpi"
src="res/screen/android/mdpi-portrait.png" />
<gap:splash gap:platform="android" gap:qualifier="hdpi"
src="res/screen/android/hdpi-portrait.png" />
<gap:splash gap:platform="android" gap:qualifier="xhdpi"
src="res/screen/android/xhdpi-portrait.png" />
<gap:splash gap:platform="android" gap:qualifier="xxhdpi"
src="res/screen/android/xxhdpi-portrait.png" />
<gap:splash gap:platform="android" gap:qualifier="xxxhdpi"
src="res/screen/android/xxxhdpi-portrait.png" />
<gap:plugin name="com.phonegap.plugin.statusbar" />
<gap:plugin name="net.bgta.phonegap.plugin.appversion" />
<gap:plugin name="nl.x-services.plugins.toast" />
<gap:plugin name="org.apache.cordova.camera" />
<gap:plugin name="org.apache.cordova.console" />
<gap:plugin name="org.apache.cordova.device" />
<gap:plugin name="org.apache.cordova.file" />
<gap:plugin name="org.apache.cordova.globalization" />
<gap:plugin name="org.apache.cordova.inappbrowser"
source="plugins.cordova.io" version="0.5.4" />
<gap:plugin name="org.apache.cordova.network-information" />
<gap:plugin name="org.apache.cordova.splashscreen" />
<gap:plugin name="it.mobimentum.phonegapspinnerplugin" />
</widget>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]