gcx/frontend/genex-mobile
hailin 9b760c56ee feat(mobile/telemetry): add comprehensive event tracking for DAU, real-time presence & funnels
## 架构设计(亿级用户规模)
- 客户端:本地队列(500条) + 批量上传(20条/30s) + 10% 采样率
- 心跳:前台每60s发送,后端3分钟滑动窗口 → 实时在线率
- DAU:app_session_start 事件 + installId 去重
- 后端接入:Kafka → ClickHouse 消费落盘

## 新增 TelemetryRouteObserver (NEW FILE)
- 继承 RouteObserver<PageRoute>,注册到 MaterialApp.navigatorObservers
- 自动记录所有页面 page_view(push/pop/replace),零侵入业务页面
- 属性:page_name, previous_page, nav_action
- 覆盖全部 37 个已注册路由,无需逐页埋点

## main.dart
- 接入 TelemetryRouteObserver.instance
- 新增 FlutterError.onError 全局钩子 → logError 上报 Widget build 异常

## auth_service.dart — 认证漏斗
| 事件 | 触发时机 | method 属性 |
|------|---------|------------|
| register_success | 注册成功 | phone_sms / email_code |
| login_success    | 登录成功 | password / phone_sms / email_code / wechat / alipay / google / apple |
| user_logout      | 主动登出 | — |

## self_hosted_updater.dart — 升级漏斗
update_prompted → update_accepted / update_dismissed
→ update_download_started → update_download_completed / update_download_failed / update_download_cancelled
→ update_install_triggered / update_install_failed

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 09:39:48 -08:00
..
android fix(genex-mobile): WXEntryActivity 完整转发微信回调 Intent 2026-03-04 18:05:01 -08:00
assets/images fix(branding): 统一Logo色调与App主色调 #6C5CE7 2026-02-23 18:12:35 -08:00
ios feat(auth): 支付宝 + Google + Apple 三方登录 2026-03-04 04:40:31 -08:00
lib feat(mobile/telemetry): add comprehensive event tracking for DAU, real-time presence & funnels 2026-03-07 09:39:48 -08:00
.gitignore feat(android): APK versionCode 自动递增 — 每次编译自增,各环境独立计数 2026-03-03 09:09:13 -08:00
.metadata feat: Create genex-mobile app with coupon lifecycle management redesign 2026-02-11 17:57:16 -08:00
README.md feat: Create genex-mobile app with coupon lifecycle management redesign 2026-02-11 17:57:16 -08:00
analysis_options.yaml feat: Create genex-mobile app with coupon lifecycle management redesign 2026-02-11 17:57:16 -08:00
pubspec.yaml feat(telemetry): 完整实现 presence-service 迁移 + Flutter 遥测接入 2026-03-05 23:33:13 -08:00

README.md

genex_consumer

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.