feat: 웹이 앱(웹뷰 셸) 안인지 알아보고 앱 브리지로 구글 로그인·위치·공유를 처리 — user agent NalssigakApp/ 로 감지, 공유 이미지는 JPEG 로 줄여 전달, 앱 안에서는 설치 배너 숨김 (GA app_launch android_app, app_bridge_error, platform android_app)
This commit is contained in:
1 parent
c8287b4bf3
commit
2a94ebe85b
9 files changed
+204
-19
No files matched your search
@@ -15,7 +15,10 @@ export type Events<Sheet extends string = string> = {
|
||||
install_click: { from: 'banner' | 'menu'; method: 'prompt' | 'guide' }
|
||||
install_choice: { outcome: 'accepted' | 'dismissed' }
|
||||
install_done: Record<string, never>
|
||||
app_launch: { mode: 'standalone' }
|
||||
/** 홈 화면 아이콘(standalone)이나 날씨각 안드로이드 앱(android_app, 웹뷰)으로 엶 */
|
||||
app_launch: { mode: 'standalone' | 'android_app'; version?: string }
|
||||
/** 앱 안에서 웹이 앱에 시킨 일(구글 로그인·공유·위치)이 실패함. 사용자가 닫은 것은 안 보냄 */
|
||||
app_bridge_error: { action: 'google_login' | 'share' | 'location' }
|
||||
/** index.html 첫 화면 스크립트가 gtag 로 바로 보낸다 */
|
||||
boot_stuck: { reason: string; seconds: number; tries: number; app_started: boolean }
|
||||
sheet_open: { sheet: Sheet }
|
||||
@@ -63,6 +66,7 @@ export const GA_NAME: Record<keyof Events, string> = {
|
||||
install_choice: '설치_선택',
|
||||
install_done: '설치_완료',
|
||||
app_launch: '앱_실행',
|
||||
app_bridge_error: '앱_연결_오류',
|
||||
boot_stuck: '첫화면_멈춤',
|
||||
sheet_open: '창_열기',
|
||||
like: '좋아요',
|
||||
|
||||
Reference in new issue
Block a user