You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/11/19 12:48:02 UTC

[GitHub] [cordova-plugin-splashscreen] WuglyakBolgoink opened a new issue #240: Feature request: Add additional check if splashscreen currently active

WuglyakBolgoink opened a new issue #240: Feature request: Add additional check if splashscreen currently active
URL: https://github.com/apache/cordova-plugin-splashscreen/issues/240
 
 
   # Feature Request
   
   ## Motivation Behind Feature
   <!-- Why should this feature be implemented? What problem does it solve? -->
   
   because sometimes I need to do 2 actions which depends on status of splashscreen.
   
   example:
   1. I started App with autoHide splashscreen = false
   2. prepare all data in first start via a lot of promises
   3. render in background login page
   4. hide splashscreen with timeout 2s after all promises was finished
   5. show touch-ID dialog if available
   
   then:
   
   user logged in -> logged out
   1. user will be redirected to login page again
   2. login page will be again initialized and again called `navigator.splashscreen.hide()` with timeout=2s and then show touchId dialog
   
   and in this case, this is not necessary to wait 2 seconds... I think...
   
   
   
   
   ## Feature Description
   <!-- 
   Describe your feature request in detail
   Please provide any code examples or screenshots of what this feature would look like
   Are there any drawbacks? Will this break anything for existing users? 
   -->
   
   It will be great to have one additional check, if splashscreen currently active. Something like:
   1. `navigator.splashscreen.isActive = () => boolean`
   2. `navigator.splashscreen.isHidden = () => boolean`

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org