How can I prevent the user from taking screenshots in ionic 3? I can not find any info about how to disallow take screenshots on android using ionic 3 for example using ionic native.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Maybe take a look at this - "PrivacyScreenPlugin" at "https://www.npmjs.com/package/cordova-plugin-privacyscreen"?
I used the same to disable screenshots for my Android App and it worked fine.
回答2:
You can try the following links:
https://www.npmjs.com/package/cordova-plugin-prevent-screenshot
https://ourcodeworld.com/articles/read/168/how-to-disable-screenshots-within-a-cordova-application-in-android