Programmatically disabling screenshot in App

前端 未结 3 533
陌清茗
陌清茗 2021-01-06 07:07

I want to prevent taking screenshot of a page in app. how to do it programmatically so that screenshots cannot be taken.

Found code to detect screenshot. Can it be

3条回答
  •  再見小時候
    2021-01-06 07:39

    There is absolutely no way to completely prevent user from taking screenshot during the app process, and that's because you do not have access to delete photos in the photo gallery of the user. It would totally be a security issue if you could access your user's photos.


    However, there are ways to partially prevent screenshots, as described here: Prevent screen capture in an iOS app

提交回复
热议问题