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

Bloquer les captures ou enregistrements d'écran #1048

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

NicolasBuquet
Copy link
Contributor

@NicolasBuquet NicolasBuquet commented May 27, 2024

Fix #797

Screen recording can be prevented on iOS by listening to UIScreen.capturedDidChangeNotification and masking the screen content.

But screenshot cannot be prevented.
We can be informed the user made a screenshot by listening to UIApplication.userDidTakeScreenshotNotification,
but we are informed after the screenshot took place and cannot mask any screen content because it's too late.

But iOS auto mask content of Secured UITextField when capturing or recording screen.

The hack is too embed any view (such as root window) in a Secured UITextField and iOS will mask it on screen apture or recording.

Any screen capture or recording will end in a blank picture or movie in the Photos gallery.

from: https://stackoverflow.com/a/77922186/399439

Testé :

  • simulateur DEV : capture possible
  • simulateur Pre-prod ; capture possible
  • simulateur Production : capture impossible
  • device Production : capture impossible

@NicolasBuquet NicolasBuquet linked an issue May 27, 2024 that may be closed by this pull request
Copy link
Contributor

@yostyle yostyle left a comment

Choose a reason for hiding this comment

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

SGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Forbid screenshot in Tchap
2 participants