Closed UlricW closed 1 year ago
Thank you for your contribution. I will take a look as soon as possible.
@UlricW Please merge the current main branch into your PR. I have created a separate implementation class because the plugin is getting more complex.
@UlricW Please make sure that the pipeline checks are successful.
It's fixed, sorry for that :)
@UlricW Thank you, looks great! I just had to release a hotfix. Please merge this again into your branch and then we are done. 🙌
The merge is done ! :)
@UlricW Thank you for your contribution!
Hi @robingenz Recently I stumbled upon this library as Privacy Screen was not functioning for android through AppStateChange. I wonder if we can have the same custom image support for android too to avoid having grey screen for content protection?
@subhashjha35 On Android, this plugin sets the FLAG_SECURE flag to treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displays. As far as I know, there is no way to set a custom image. But feel free to create a PR if you find an option.
Pull Request: Allow to use iOS Background Image for capacitor-privacy-screen Plugin
Description
This pull request introduces a feature enhancement to the
capacitor-privacy-screen
plugin for iOS. The current behavior on iOS displays a grey background screen when the privacy screen is enabled. This pull request enhances the user experience by allowing the use of a custom background image instead of the default grey background. The background of the image (if the image doesn't take all the device screen) will be the system background (dependant of the dark theme is activated or not)Changes Made
useImageBackground
. This option enables the user to specify a custom image file to be displayed as the backgroundimageName
. This is the name of the image in iOS assetsUsage Example
Close #27