Skip to content

MASTG-BEST-0015: Use `setRecentsScreenshotEnabled` to Prevent Screenshots When Backgrounded

Placeholder Best Practice

This best practice hasn't been created yet and it's a placeholder. But you can check its status or start working on it yourself. If the issue has not yet been assigned, you can request to be assigned to it and submit a PR with the new content for that best practice by following our guidelines.

Check our GitHub Issues for MASTG-BEST-0015

If an issue doesn't exist yet, please create one and request to be assigned to it.

Draft Description

Preventing screenshots when an app is backgrounded helps protect sensitive data from being exposed in system-generated snapshots used by the Recents screen.

Tests

MASTG-TEST-0292: setRecentsScreenshotEnabled Not Used to Prevent Screenshots When Backgrounded