Multi-Process Apps

The Sentry Android SDK will not automatically initialize in non-main processes because of ContentProvider. If you'd like to automatically auto-init the Sentry Android SDK in other processes, add the following to AndroidManifest.xml:

Copied
<provider
    android:name="io.sentry.android.core.SentryInitProvider"
    android:authorities="${applicationId}.SentryInitProvider"
    android:exported="false"
    android:process="YOUR_PROCESS_HERE"
    tools:node="merge" />

Alternatively, you can call SentryAndroid.init(...).

Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").