问题
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
来源:https://stackoverflow.com/questions/51217232/how-to-disallow-screenshoot-in-ionic-3