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/10/10 09:29:14 UTC
[GitHub] [cordova-plugin-splashscreen] lknop commented on issue #192: Splash
Screen show() and hide() not working on platform pause and resume
lknop commented on issue #192: Splash Screen show() and hide() not working on platform pause and resume
URL: https://github.com/apache/cordova-plugin-splashscreen/issues/192#issuecomment-540483830
@janpio I am pretty sure the @vforvasquez has the following scenario in mind:
- the user wants to switch to another app with the "overview" button
(yes, that's its name, I had to google it - https://android.stackexchange.com/questions/32697/what-is-the-offical-name-of-the-third-on-screen-button but it's also called "recent" or "tasks")
- the OS shows the list of currently open apps, including the screenshot of "our" app
- the idea is to show the splash screen instead of a true screenshot to avoid leaking sensitive information
- using `splashscreen.show()` in `onPause()` does not work because the event handler is run on application resume - most likely due to thread switching
Another thread about the very same scenario is [here](https://forum.ionicframework.com/t/solved-show-splashscreen-on-pause-cordova-event/26488).
It mentions an outdated plugin that achieves the result by disabling screenshots altogether which is not an optimal solution.
This is not the issue within the splashscreen plugin per se, but it's closely related and if the plugin would allow to achieve this as an option without cumbersome hacks then it would be an extremely useful feature. It seems the most complicated logic is in selecting the proper image to show (depending on resolution, orientation etc.) which the splashscreen plugin already handles very well, so any external plugin just for the `onPause` screenshot would have to duplicate it -which sounds unreasonable.
----------------------------------------------------------------
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