Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: disable screenshots on iOS #59

Merged
merged 4 commits into from
May 31, 2023

Conversation

dtarnawsky
Copy link
Contributor

This disables the ability to take screenshots on iOS (capturing a black blank screen instead).

@dtarnawsky dtarnawsky requested a review from robingenz May 31, 2023 13:05
Copy link
Member

@robingenz robingenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you!

Copy link
Member

@robingenz robingenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be the following error:

/Users/runner/work/privacy-screen/privacy-screen/ios/Plugin/PrivacyScreenPlugin.swift:36:35: error: value of type 'WKWebView' has no member 'disableScreenshots'
            self.bridge?.webView?.disableScreenshots()
            ~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~
/Users/runner/work/privacy-screen/privacy-screen/ios/Plugin/PrivacyScreenPlugin.swift:44:35: error: value of type 'WKWebView' has no member 'enableScreenshots'
            self.bridge?.webView?.enableScreenshots()
            ~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~
/Users/runner/work/privacy-screen/privacy-screen/ios/Plugin/PrivacyScreenPlugin.swift:84:39: error: value of type 'WKWebView' has no member 'disableScreenshots'
                self.bridge?.webView?.disableScreenshots()
                ~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~

See https://github.com/capacitor-community/privacy-screen/actions/runs/5133201940/jobs/9235474298?pr=59#step:6:815

@robingenz robingenz merged commit e95358b into capacitor-community:main May 31, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants