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(...) in each process where you want to initialize Sentry.

Was this helpful?
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").