How to block app screen in the Android app switcher without disabling screenshots and screen recordings in the foreground?
I’m working on an Android app where I need to block the app screen from being visible when the user switches to the app switcher (recent apps view) but still allow the user to take screenshots and record the screen when the app is in the foreground. The goal is to secure the app’s content from being seen by third parties when the app is in the background or when it’s being viewed in the app switcher.