feat: 웹이 앱(웹뷰 셸) 안인지 알아보고 앱 브리지로 구글 로그인·위치·공유를 처리 — user agent NalssigakApp/ 로 감지, 공유 이미지는 JPEG 로 줄여 전달, 앱 안에서는 설치 배너 숨김 (GA app_launch android_app, app_bridge_error, platform android_app)

This commit is contained in:
skkim committed 2026-11-13 13:45:52 +09:00
1 parent c8287b4bf3
commit 2a94ebe85b
9 files changed
+204 -19

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-D378J4X373', { platform: '%MODE%' === 'toss' ? 'toss' : 'web' });
gtag('config', 'G-D378J4X373', { platform: '%MODE%' === 'toss' ? 'toss' : /NalssigakApp\//.test(navigator.userAgent) ? 'android_app' : 'web' });
</script>
<script>
// 이미 열었던 탭을 다시 열면 브라우저가 예전 HTML 을 다시 쓰고, 그 HTML 이 부르는 예전 빌드 파일은 배포로 지워져 첫 화면에서 멈춘다.