brassier commented on issue #946:
URL: https://github.com/apache/cordova-ios/issues/946#issuecomment-733234105
In case anyone else is like us, desiring both the ability to call `.hide()`
and have a backup plan (`SplashScreenDelay` / `AutoHideSplashScreen`), the good
news is there doesn't seem to be a negative impact of calling `.hide()` twice.
That allows you to make a poor-man's `AutoHideSplashScreen` in your app. Just
do something like below:
1. In Config.xml, remove `SplashScreenDelay` and set `AutoHideSplashScreen`
to false. This will allow `.hide()` to actually work.
1. Call `.hide()` where you want to hide the splash screen immediately
1. To get a poor-man's Auto-Hide, throw another `.hide()` in a timer, as a
backup plan (if your primary hide doesn't execute for whatever reason). Below
is an ionic-type version for reference.
```
Observable.timer(15000).subscribe(()=>{
this.splashScreen.hide();
});
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]