Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.4 KB

feature_screenshot.md

File metadata and controls

26 lines (18 loc) · 1.4 KB

Feature - Screenshot

Measure captures a screenshot of the app as soon as it crashes due to an unhandled exception or an ANR. This screenshot is sent to the server as an attachment along with the crash report.

This feature is enabled by default and does not require any additional configuration.

How it works

Screenshots are captured using PixelCopy for Android versions 8.0 and above. For devices running on Android versions below 8.0, the screenshot is captured by drawing the root view of the app on a canvas and then converting it to a bitmap.

All screenshots are compressed using WebP format for Android versions 11 and above. For devices running on Android versions below 11, the screenshots are compressed using JPEG format.

Masking PII and Sensitive Data

Note that screenshots can leak sensitive information. To prevent this, Measure masks all text and media from screenshots by default. Masking levels can be configured to suit your requirements.

To configure the masking level, use the screenshotMaskLevel configuration option. See the configurations doc for all the options available.