feat: 홈 화면에 추가 — 오늘의 각 아래 설치 카드(닫으면 2주 숨김, 홈 화면에서 열면 안 보임)와 내 정보 메뉴, 안드로이드는 설치창·아이폰·카카오톡 등은 기기별 안내, 192·512·maskable 아이콘과 서비스 워커, 설치·실행 GA 이벤트
This commit is contained in:
1 parent
4e9b0bacba
commit
e5716c0c7c
12 files changed
+248
-7
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
@@ -3,12 +3,33 @@
|
||||
"short_name": "날씨각",
|
||||
"description": "오늘 날씨에 맞는 일을 점수로. 노을이 예쁜 시간과 이번 주말 가까운 축제까지.",
|
||||
"lang": "ko-KR",
|
||||
"start_url": "/",
|
||||
"start_url": "/?source=homescreen",
|
||||
"display": "standalone",
|
||||
"background_color": "#d6ebff",
|
||||
"theme_color": "#d6ebff",
|
||||
"icons": [
|
||||
{ "src": "/favicon.svg", "sizes": "any", "type": "image/svg+xml" },
|
||||
{ "src": "/apple-touch-icon.png", "sizes": "180x180", "type": "image/png" }
|
||||
]
|
||||
{
|
||||
"src": "/app/icon-192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/app/icon-512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/app/icon-maskable-512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "/favicon.svg",
|
||||
"sizes": "any",
|
||||
"type": "image/svg+xml"
|
||||
}
|
||||
],
|
||||
"id": "/",
|
||||
"scope": "/"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// 홈 화면 설치 조건을 맞추려고 둔 서비스 워커. 화면을 캐시하지 않고 네트워크로 그대로 보낸다 (옛 화면이 남지 않게)
|
||||
self.addEventListener('install', () => self.skipWaiting())
|
||||
self.addEventListener('activate', (e) => e.waitUntil(self.clients.claim()))
|
||||
self.addEventListener('fetch', () => {})
|
||||
Reference in new issue
Block a user