apache / cordova-plugin-inappbrowser

Apache Cordova InAppBrowser Plugin
https://cordova.apache.org/
Apache License 2.0
1.11k stars 2.14k forks source link

Feature - Disable Screenshot #1006

Closed KerimM closed 11 months ago

KerimM commented 11 months ago

Feature Request

DISABLE SCREENSHOT

Motivation Behind Feature

Add the option to disable screenshots in the browser to prevent sensitive data from being stolen

Feature Description

IDK

Alternatives or Workarounds

There is not

breautek commented 11 months ago

It won't be possible via inappbrowser because the standard browser/webview features afaik has no support for disabling screenshots. For this reason I'm closing this issue.

However on the main cordova webview, (which the inappbrowser is a part of) you should be able to install a plugin that exposes an API to disable screenshots while your app is displayed. This plugin is not an endorsement (Never used it or vetted it) but https://github.com/flotrugliocoffice/cordova-plugin-prevent-screenshot-coffice is an example of such plugin.