acra
acra copied to clipboard
Allow ReportInteraction when app is in background
Crashes can happen when the app is in the background, e.g. during work performed in a Worker. In this case, the dialog interaction won't work, because on recent Android versions, we are not allowed to start activities while in the background.
However, when the app crashes in the foreground, I would like to use the dialog interaction, but having a fallback to the notification interaction when the app is in the background. I tried to somehow achieve this with a custom ReportInteraction, but couldn't get the ServiceLoader to work within a reasonable amount of time (or adding lots of other dependencies).
Ideally such behavior would be integrated here upstream, because many projects would benefit from this.