fix: 홈 화면에 추가 — 설치창 호출이 실패해도 안내 창으로 넘어가게, 아이폰 안내에 공유·추가 버튼 모양 그림, 안드로이드는 안내를 연 사이 설치가 가능해지면 바로 '지금 설치하기' 버튼

This commit is contained in:
minaChoi committed 2026-10-21 14:21:55 +09:00
1 parent b5ad97585d
commit dff03f6b28
2 files changed
+39 -8

No files matched your search

+7 -1
View File
@@ -62,7 +62,13 @@ export async function promptInstall(): Promise<boolean> {
const e = deferred
deferred = null
notify()
await e.prompt()
try {
await e.prompt()
} catch (err) {
// 이미 한 번 띄웠거나 브라우저가 막으면 안내 창으로 넘긴다
console.warn('[install] prompt', err)
return false
}
const { outcome } = await e.userChoice
track('install_choice', { outcome })
return true