MindscapeHQ / raygun4android

Android crash reporting provider for Raygun
https://raygun.com
MIT License
21 stars 14 forks source link

Run `CrashReportingPostService` in main process #74

Closed jukiginanjar closed 3 years ago

jukiginanjar commented 3 years ago

Hi team,

<service android:name="com.raygun.raygun4android.services.CrashReportingPostService"
            android:exported="false"
            android:permission="android.permission.BIND_JOB_SERVICE"
            android:process=":crashreportingpostservice"/>

Is it safe if I remove android:process=":crashreportingpostservice so CrashReportingPostService will run only in main process? My intention is, I want to make sure my Application only run in one process, Pls advise.

Thanks.

TheRealAgentK commented 3 years ago

@jukiginanjar

While you could probably do that, I'd generally advise against that approach.

The most important reason is that you'd want your crash reporting service to be in its own process and to be as independent as possible from any other process of your app. If your app process dies crashes for whatever reason, that gives the crash reporting service a better chance to do its thing and send the crash information to the RG backend.

jukiginanjar commented 3 years ago

Got it, thanks