Multi-Process Apps
Learn how to automatically initialize the SDK in non-main processes.
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(...)
.