You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/07/16 13:06:02 UTC
[jira] [Commented] (CB-8396) Add AutoHideSplashScreen logic to
Android's Splashscreen
[ https://issues.apache.org/jira/browse/CB-8396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16088923#comment-16088923 ]
ASF GitHub Bot commented on CB-8396:
------------------------------------
Github user alanhg commented on the issue:
https://github.com/apache/cordova-plugin-splashscreen/pull/74
@daserge
I copy your commited file into plugin .
```
<preference name="AutoHideSplashScreen" value="false" />
<preference name="ShowSplashScreenSpinner" value="false" />
<preference name="SplashScreenDelay" value="3000" />
<preference name="FadeSplashScreen" value="false" />
<preference name="FadeSplashScreenDuration" value="0" />
```
in index.js
```
inAppBrowserRef = cordova.InAppBrowser.open(url, target, options);
inAppBrowserRef.addEventListener('loadstop', loadStopCallBack);
function loadStopCallBack() {
if (navigator.splashscreen) {
// clearInterval(intervalID);
// // We're done initializing, remove the splash screen
navigator.splashscreen.hide();
console.warn('Hiding splash screen');
}
}
```
when i run app,is not good.
why?
> Add AutoHideSplashScreen logic to Android's Splashscreen
> --------------------------------------------------------
>
> Key: CB-8396
> URL: https://issues.apache.org/jira/browse/CB-8396
> Project: Apache Cordova
> Issue Type: Improvement
> Components: cordova-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.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org