You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Daniel Trebbien (JIRA)" <ji...@apache.org> on 2014/05/28 18:43:02 UTC
[jira] [Resolved] (CB-6774) SplashScreen not shown on Android
[ https://issues.apache.org/jira/browse/CB-6774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Trebbien resolved CB-6774.
---------------------------------
Resolution: Invalid
I got the SplashScreen to work on Android by copying the default splash PNGs into the {{platforms/android/res/drawable*/}} folders and adding to {{www/config.xml}}:
{code:xml}
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="10000" />
{code}
> SplashScreen not shown on Android
> ---------------------------------
>
> Key: CB-6774
> URL: https://issues.apache.org/jira/browse/CB-6774
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, Plugin SplashScreen
> Affects Versions: 3.4.0
> Environment: * Nexus 7 (2013) tablet running Android 4.4.2
> * Mac OS 10.9.3 with iOS Simulator version 7.1
> * PhoneGap 3.4.0-0.19.21
> Reporter: Daniel Trebbien
> Priority: Critical
>
> The splash screen is not working on Android, although it works fine on iOS.
> Steps to reproduce:
> {code}
> $ phonegap create phonegap-helloworld
> $ cd phonegap-helloworld/
> $ phonegap run ios
> $ phonegap run android --device=0a...
> {code}
> The default splash screen appears when the HelloWorld app is run in iOS Simulator, but when run on a Nexus 7 (2013) tablet running Android 4.4.2, no splash screen is displayed.
> I then ran:
> {code}
> $ phonegap plugin add org.apache.cordova.splashscreen
> $ phonegap run android --device=0a...
> {code}
> Then, remote inspecting the {{WebView}} that is running the app, I tried running on the console:
> {code:javascript}
> navigator.splashscreen.show()
> {code}
> .. but the splash screen was not shown.
--
This message was sent by Atlassian JIRA
(v6.2#6252)