How to prevent a user from taking a screenshot in Ionic/Cordova?

前端 未结 1 2003
时光说笑
时光说笑 2021-01-22 09:24

Is it possible to prevent the user from taking a screenshot in an android application developed using Ionic/Cordova?

If it\'s possible, How? I asked in the Ionic forum b

相关标签:
1条回答
  • 2021-01-22 09:52

    Yes you can do this with a plugin. Use the one here: http://blog.devgeeks.org/post/92139782094/the-privacy-screen-plugin-for-cordova-phonegap

    Note however, there is no completely fool proof way of stopping people from capturing what you display. They can always point another camera at the phone for example, or if they root the phone they can bypass the security.

    0 讨论(0)
提交回复
热议问题