Skip to content

Allow ReportInteraction when app is in background #1467

@grote

Description

@grote

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions