Application Not Responding (ANR)

Whenever the main UI thread of the application is blocked for more than five seconds, the SDK will report the problem to the server.

You can turn off monitoring the ANR by adding the following to your AndroidManifest.xml:

AndroidManifest.xml
Copied
<application>
    <meta-data android:name="io.sentry.anr.enable" android:value="false" />
</application>

You can also specify how long the thread should be blocked before the ANR is reported. Provide the duration in the attribute io.sentry.anr.timeout-interval-millis in your AndroidManifest.xml:

AndroidManifest.xml
Copied
<application>
    <meta-data android:name="io.sentry.anr.timeout-interval-millis" android:value="2000" />
</application>