ACRA / ACRA/acra

Allow ReportInteraction when app is in background

未關閉
#1,467 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Kotlin
星號
6.5k
分支
1.1k
平均合併
32 分鐘
30 天內合併 PR
4

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Start by finding the Android path that resolves `ReportInteraction` and chooses the active interaction during a crash. Map where foreground/background state is checked and where dialog vs notification interactions are registered, then adjust that selection logic so foreground uses dialog and background falls back to notification. Run interaction or crash-report tests (or the Android test task if available), and consider it done only when both foreground and background crash flows use the intended interaction without regressions.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
kotlin
領域
mobile-dev
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。