Skip to content

Disable Error Screenshot per Screen #1774

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

Closed
GustavoFigueira opened this issue Dec 5, 2023 · 2 comments
Closed

Disable Error Screenshot per Screen #1774

GustavoFigueira opened this issue Dec 5, 2023 · 2 comments

Comments

@GustavoFigueira
Copy link

GustavoFigueira commented Dec 5, 2023

Problem Statement

Hi,

Is it possible to disable screenshot on specific screens/widgets?
I didn't find anything about this in the documentation.

This requirement is important in scenarios where sensitive information is captured and saved in an screenshot, something that should not happen in sensitive apps such as banks, for example.

Is there a workaround for this? Without disabling screenshots in the entire app?

Solution Brainstorm

My suggestion would be to have another widget where the children below it would not be captured or would be blurred, or something like that.

Something like the Smartlook SDK for Flutter does:

SentryTrackingWidget({
    required this.child,
    this.isSensitive = true
  });

Are you willing to submit a PR?

Yes

@buenaflor
Copy link
Contributor

buenaflor commented Dec 6, 2023

Hi!

We have this tracked here and is in our backlog

The idea is to add a beforeCapture callback where you can either accept or drop the screenshot right before it is sent to Sentry

@GustavoFigueira
Copy link
Author

Oh, nice! Thanks, closing the PR now.

@github-project-automation github-project-automation bot moved this from Needs Discussion to Done in [DEPRECATED] Mobile SDKs Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Archived in project
Development

No branches or pull requests

2 participants