Hide splash sceen without SplashScreenDelay
on .hide()
#1006
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #991
Platforms affected
iOS
Motivation and Context
The
cordova-plugin-splash-screen
allowed to hide the splash screen as a race between the timeout specified in theSplashScreenDelay
preference and the call tonavigator.splashscreen.hide()
in JS code. This was very desirable, it allowed to show the splash screen for a long time if the application took a long time to boot but not too long so that users wouldn't think that the application is hanging.Since the reimplementation of this functionality here, the behavior has changed. Now, the
SplashScreenDelay
preference applies to calls made bynavigator.splashscreen.hide()
, defeating the behavior described above.Description
Make hiding of splash screen again a race between the timeout specified in
SplashScreenDelay
setting andnavigator.splashscreen.hide()
call.Testing
Manual tests in simulator and real device (iPhone X).
Checklist
I added automated test coverage as appropriate for this change- no idea, howCommit is prefixed with- doesn't make sense, this is a cordova-ios repo, it can only be ios-related(platform)
if this change only applies to one platform (e.g.(android)
)