On December 20th, Apple released a technical preview of Safari 46, which will enable Service workers in Safari on Mac by default. Yes, Safari now supports Service workers, and PWA is not far off.
In fact, on July 14, 2017, Apple Safari team started the development of Service Worker.
Here I’ll briefly take a look at what’s been updated in Safari 46 preview and test the new version’s SUPPORT for PWA. Finally, I will introduce PWA and recommend some related technical articles.
Safari 46 Preview updates Service Worker related content
- Service workers are supported by default
- Self.registration can be accessed inside the Service Worker
- Self.skipwaiting can be handled inside the Service Worker
- Clients.get () and clients.getall () are implemented
- Support container.register() and registration.unregister() in Service workers
- IndexedDB and Web Sockets are enabled in the Service Worker
- Support the container in the Service Worker. GetRegistration () and container getRegistrations ()
- Support in the Service Worker serviceWorker. PostMessage () and serviceWorkerRegistration update ()
Testing Safari support
Test site: ispwaready.toxicjohann.com/
Safari 46 (11.1) Technical preview
Safari 11.0.1 version
Google Chrome 63.0.3239.84
Download a preview version of Safari to try it out
Developer.apple.com/safari/down…
About the PWA
What is PWA?
PWA, which stands for Progressive Web Apps, is an exciting innovation in front end technology. PWA combines a number of technologies to make your Web app behave like a Native mobile app.
What are the features of PWA?
Service Worker, Web App Manifest, Web Push, Credential Management API are currently fully supported only by Chrome.
PWA related articles
- Transform your website into a PWA
- PWA Workbox Cache strategy analysis
- The first PWA Chinese book
- Make a PWA offline web application using the Service Worker
- Introduce progressive Web Apps (Offline) – Part 1
- Introduce progressive Web Apps (Instant Loading) – Part 2
- Introduce progressive Web Apps (Push notifications) – Part 3
Outlook for PWA
However, there is no news of Service Worker support in Safari on iOS, but it is exciting enough that Safari on Mac supports Service Worker, and Apple is gradually moving towards PWA.
By the way, the hard Edge browser already has Service Worker enabled by default in the Windows Insider Preview.
Being an iOS developer has something to say
No words, iOS development 💊, to turn the front end.