I'm trying to stop the screenshot event on mobile using JavaScript, because on PC is easier, I used only the event keyCode == 44 to stop.
Thanks a lot.
I'm trying to stop the screenshot event on mobile using JavaScript, because on PC is easier, I used only the event keyCode == 44 to stop.
Thanks a lot.
This is not possible, hence screenshot thing is iOS native features and independent to any app, you can not stop taking screenshot by coding for app.
You can prevent user from taking screenshots with Flags in Android
getWindow().setFlags(LayoutParams.FLAG_SECURE, LayoutParams.FLAG_SECURE);
There is another solution for IOS devices where you can prevent taking screenshots programatically but I don't think there is a solution with JS.
EDIT: Those solutions for the applications not for a website!