1

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.

Phonolog
  • 6,321
  • 3
  • 36
  • 64
santiago
  • 33
  • 1
  • 8
  • 1
    Maybe 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 Answers3

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

https://ourcodeworld.com/articles/read/168/how-to-disable-screenshots-within-a-cordova-application-in-android

Tanmay
  • 7
  • 9
0

Use Below Command.

  1. cordova plugin add cordova-plugin-privacyscreen
  2. npm i cordova-plugin-privacyscreen

I hope this is help you.

Pradeep Pathak
  • 59
  • 1
  • 12