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.
Asked
Active
Viewed 5,662 times
1
-
1Maybe have a look at this answer: https://stackoverflow.com/a/31406316/1306012 But why do you want to do that? If someone wants to take a screenshot of your app this person could simply take a photo of the smartphone with another phone. I don't see the point doing this. Maybe explaining what's your goal would help the question to get answers which brings something to you. – Bruno Bieri Aug 15 '18 at 08:13
3 Answers
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.

barricade
- 19
- 2
0
You can try the following links:
https://www.npmjs.com/package/cordova-plugin-prevent-screenshot

Tanmay
- 7
- 9
-
Rather than linking to external URL, please add relevant code and explanation in the answer. – Nilambar Sharma May 21 '19 at 09:40
0
Use Below Command.
- cordova plugin add cordova-plugin-privacyscreen
- npm i cordova-plugin-privacyscreen
I hope this is help you.

Pradeep Pathak
- 59
- 1
- 12