Disabling screenshots and screen recording


#1

I need to block users from taking screenshots or screen recording while app is running.
Atleast I need to block screenshots.

In Android, I have achieved both features, thanks to great plugin PrivacyScreenPlugin.

But, for iPhone devices none of above mentioned feature is working.
I have raised an issue in plugin’s repo in a hope of getting some solution :slight_smile:

Has anyone achieved this feature in Ionic project?

I don’t think so, but can we achieve similar feature using Screenshot plugin mentioned in Ionic documentations?

Apps like Snapchat(blurrs entire screen) and Yovo(adds fast moving lines on images) are doing this. But I have no idea how we can achieve this.


#2

I am able to detect screenshot event generated by iPhone devices by help of cordova-plugin-detect-screenshot.

Now, only thing I need to do is to immidiately delete the last snapshot taken by the iPhone device.

I have already tried blurring screen as soon as app detects screenshot event. But that happens only after when screenshot has been taken. :rofl:


#3

Hi Sujit,

I’m facing the same issue in iOS. Could you please share your code to delete the last snapshot?

TIA,
Aruna.


#4

In some banking apps I’ve noticed that you can’t make screenshot at all. Maybe you could look into that.


#5

I even tried that.The plugin works fine in android, but in iOS i could not find a work around


#6

I haven’t implemented it yet. Also, I couldn’t find any plugin which can do so.

There are few open issues regarding that.
Try checking there for a solution or if you find any, it will be great if you can suggest them to add it to the plugin.