PWA

R4 Cheng
Jun 24, 2023

--

  • Every installable PWA needs a web manifest and a service worker in order to be ready to be published on app stores.
  • manifest needs to be linked to your index.html

Manifest

Some non-intuitive properties

{
"display": "standalone (look like native browser), browser",
"theme_color": "the little bar at the top of the application",
"icon": [

],
}

Service Workers

Attributes

  • Load content offline
  • Background sync when a connection is re-established
  • Push notifications to notify users

Fetch event

  • It works as the proxy between the browser and the server

References

--

--

R4 Cheng
R4 Cheng

Written by R4 Cheng

「0」が過去で「1」が未来「今」は何処にもない

No responses yet