diff --git a/src/build/template.html b/src/build/template.html index bd41f2e3..4f55a0e0 100644 --- a/src/build/template.html +++ b/src/build/template.html @@ -2,7 +2,7 @@
- + @@ -15,8 +15,19 @@ https://developers.google.com/web/fundamentals/native-hardware/fullscreen/ --> - - + + + + + + + + + + + + + diff --git a/src/service-worker.js b/src/service-worker.js index 26f36e95..8aa7e520 100644 --- a/src/service-worker.js +++ b/src/service-worker.js @@ -26,6 +26,10 @@ const ON_DEMAND_CACHE = [ { regex: /TwemojiCountryFlags\.woff2/, cache: ASSETS + }, + { + regex: /_splash\.png$/, + cache: ASSETS } ] @@ -39,6 +43,7 @@ const assets = __assets__ .filter(filename => !/emoji-.*?\.json$/.test(filename)) // useless to cache; it already goes in IndexedDB .filter(filename => !/screenshot-.*?\.png/.test(filename)) // only used during PWA installation, don't bother caching .filter(filename => !/TwemojiCountryFlags\.woff2/.test(filename)) // cache on-demand + .filter(filename => !/_splash\.png$/.test(filename)) // only used for iOS PWA splash screen, cache on-demand // `shell` is an array of all the files generated by webpack // also contains '/index.html' for some reason diff --git a/static/ipad_splash.png b/static/ipad_splash.png new file mode 100644 index 00000000..bc16a4eb Binary files /dev/null and b/static/ipad_splash.png differ diff --git a/static/ipadpro1_splash.png b/static/ipadpro1_splash.png new file mode 100644 index 00000000..a7e5717e Binary files /dev/null and b/static/ipadpro1_splash.png differ diff --git a/static/ipadpro2_splash.png b/static/ipadpro2_splash.png new file mode 100644 index 00000000..f3b5f0c0 Binary files /dev/null and b/static/ipadpro2_splash.png differ diff --git a/static/ipadpro3_splash.png b/static/ipadpro3_splash.png new file mode 100644 index 00000000..e1cfa5fa Binary files /dev/null and b/static/ipadpro3_splash.png differ diff --git a/static/iphone5_splash.png b/static/iphone5_splash.png new file mode 100644 index 00000000..8ced5d8a Binary files /dev/null and b/static/iphone5_splash.png differ diff --git a/static/iphone6_splash.png b/static/iphone6_splash.png new file mode 100644 index 00000000..6411f102 Binary files /dev/null and b/static/iphone6_splash.png differ diff --git a/static/iphoneplus_splash.png b/static/iphoneplus_splash.png new file mode 100644 index 00000000..df3fc4c1 Binary files /dev/null and b/static/iphoneplus_splash.png differ diff --git a/static/iphonex_splash.png b/static/iphonex_splash.png new file mode 100644 index 00000000..bb2e281e Binary files /dev/null and b/static/iphonex_splash.png differ diff --git a/static/iphonexr_splash.png b/static/iphonexr_splash.png new file mode 100644 index 00000000..40795d86 Binary files /dev/null and b/static/iphonexr_splash.png differ diff --git a/static/iphonexsmax_splash.png b/static/iphonexsmax_splash.png new file mode 100644 index 00000000..f032029c Binary files /dev/null and b/static/iphonexsmax_splash.png differ