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.
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.
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.