capacitor-community / privacy-screen

⚡️ Capacitor plugin that protects your app from displaying a screenshot in Recents screen/App Switcher.
MIT License
88 stars 23 forks source link

add foreground/background events to privacy plugin #110

Open TiBz0u opened 1 week ago

TiBz0u commented 1 week ago

As discussed, to fix the issue #108 , I add to show the privacy controller with a different principle. I now use UIWindow.

In reality, it works too with current events (didBecomeActiveNotification & willResignActiveNotification). However, I keep current implementation to avoid any regression issue.

I have few more improvement to bring to this plugin, like manage privacy color, add a blur mode, etc. Will be done is next PR.