Block screenshots and screen recording on Expo

The way to do this in Android is

    getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,
                         WindowManager.LayoutParams.FLAG_SECURE);

Is there a way to set this flag without ejecting?
Is it possible to have this functionality on iPhone too?

I cannot eject because I want to continue to use Expo’s push notifications.

Hey @madhavanmalolan,

Unfortunately this won’t be possible without ejecting currently. I would recommend creating a feature request here: Feature Requests | Expo

Cheers,

Adam

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.