PWACompat: the Web App Manifest for all browsers - @ChromiumDev

Sam Thorogood dari tim kami menulis:

You've designed a webapp, built its code and service worker, and finally added the Web App Manifest to describe how it should behave when 'installed' on a user's device. This includes things like high-resolution icons to use for e.g. a mobile phone's launcher or app switcher, or how your webapp should start when opened from the user's home screen.

And while many browsers will respect the Web App Manifest, not every browser will load or respect every value you specify. Enter PWACompat, a library that takes your Web App Manifest and automatically inserts relevant meta or link tags for icons of different sizes, the favicon, startup mode, colors etc.

Baca pos lengkap.

Saya kagum dengan perpustakaan ini, dan saya senang melihatnya semakin menarik perhatian. Ini adalah pertama kalinya saya melihat Splash Screen di iOS bekerja dalam 5 tahun terakhir dan ia menghasilkannya dengan cara yang sangat rapi - ia menghasilkan gambar dengan cepat berdasarkan ukuran layar yang tepat dari perangkat dan base64 mengkodekan gambar. ... itu juga mengisi banyak sisa celah dalam cerita Safari Add To Homescreen.

Jika Anda membangun PWA saya akan memasukkannya.

About Me: Paul Kinlan

I lead the Chrome Developer Relations team at Google.

We want people to have the best experience possible on the web without having to install a native app or produce content in a walled garden.

Our team tries to make it easier for developers to build on the web by supporting every Chrome release, creating great content to support developers on web.dev, contributing to MDN, helping to improve browser compatibility, and some of the best developer tools like Lighthouse, Workbox, Squoosh to name just a few.