XuqmGroup-AndroidSDK/sdk-bugcollect/src
XuqmGroup 7169e66ee9 fix(bugcollect): flush 时修正初始化前暂存事件的 appKey
SDK 通过 ContentProvider 异步初始化(sdkScope.launch),若应用层在
initialized=true 设置前调用 captureError,事件以 appKey="pending"
存入 pendingErrors。后续 flushPendingErrors 将其原样推送给 LogQueue,
服务端找不到对应应用而丢弃,导致上报丢失。

修复:flush 时检测 appKey=="pending" 并替换为真实值(appKey、userId、
release、buildId),确保早期捕获的错误能正常上报。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-23 14:40:18 +08:00
..
main fix(bugcollect): flush 时修正初始化前暂存事件的 appKey 2026-06-23 14:40:18 +08:00