gcx/frontend/genex-mobile/lib/core
hailin 918489e4e5 fix(mobile/telemetry): buffer pre-init events instead of dropping them
Root cause: TelemetryService.initialize() is async (device info collection,
SharedPreferences I/O, remote config sync), taking several hundred ms to
complete. RouteObserver page_view events and auth events fire synchronously
during the initial navigation before initialization finishes, causing the
"TelemetryService not initialized, event ignored" drops seen in logs.

Fix: add _preInitBuffer (max 50 events). logEvent() now enqueues events
instead of dropping when _isInitialized=false. After initialization
completes, all buffered events are replayed in order via logEvent(),
ensuring no startup events are lost.

The network errors ("Failed host lookup: api.gogenex.com") are unrelated —
they are expected in offline test environments and handled gracefully.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 10:42:53 -08:00
..
error feat(genex-mobile): 重构为 Clean Architecture + Riverpod 2026-03-04 20:12:50 -08:00
network feat(genex-mobile): Token 持久化 — 登录状态跨重启保持 2026-03-04 02:01:27 -08:00
providers fix: 修复上传版本500错误 + 优化App冷启动通知请求 2026-03-06 08:48:09 -08:00
push feat: 全平台API对齐 — 4个前端应用55+页面接入真实后端API 2026-02-22 22:53:07 -08:00
services feat(mobile/telemetry): add comprehensive event tracking for DAU, real-time presence & funnels 2026-03-07 09:39:48 -08:00
storage feat(genex-mobile): Token 持久化 — 登录状态跨重启保持 2026-03-04 02:01:27 -08:00
telemetry fix(mobile/telemetry): buffer pre-init events instead of dropping them 2026-03-07 10:42:53 -08:00
updater feat(mobile): implement invite friends share page with APK QR code & referral marketing 2026-03-07 10:17:59 -08:00
usecases feat(genex-mobile): 重构为 Clean Architecture + Riverpod 2026-03-04 20:12:50 -08:00