[
https://issues.apache.org/jira/browse/CB-8396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14304592#comment-14304592
]
Andrew Grieve commented on CB-8396:
-----------------------------------
iOS hides the splash screen at a sensible time during load (based on the
onload event IIRC). Android just has a dumb timeout, so there isn't really and
"auto-hide" logic in it to start with atm.
I think the Android Splash Screen could use some love in terms of more
intelligent default auto-hide logic, and then maybe this pref would make sense
to add.
For now though, would it work for you to just set "SplashScreenDelay" to some
large value? and then call .hide() in code when you're ready?
> AutoHideSplashScreen not working on Android
> -------------------------------------------
>
> Key: CB-8396
> URL: https://issues.apache.org/jira/browse/CB-8396
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, Plugin SplashScreen
> Affects Versions: Master
> Environment: Android 5.0.1 emulator.
> Reporter: Tom A
> Labels: android
>
> In config.xml I've set:
> {code:title=config.xml|borderStyle=solid}
> <preference name="AutoHideSplashScreen" value="false" />`
> {code}
> This has no effect on the Android platform. Splash screen autohides after 3
> seconds (the default SplashScreenDelay).
> Tested on Android 5.0.1.
> If I look at the code here
> [https://github.com/apache/cordova-plugin-splashscreen/blob/master/src/android/SplashScreen.java]
> I'd expect to see something like this somewhere:
> {code:title=SplashScreen.java|borderStyle=solid}
> preferences.getBoolean("AutoHideSplashScreen", false);
> {code}
> Maybe this has something to do with it?
> If you need any more info, please let me know.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]