Safari 17 Beta is the latest version of Apple's web browser, which was released on June 5, 2023. It includes many new features and improvements for web developers, especially for those who create Progressive Web Apps (PWAs).
If you are not familiar with PWA, PWAs are web applications that offer a native app-like experience to users. They can be installed on various devices, including MacOS, and can work offline, send push notifications, and access device features.
In this blog post, I will highlight some of the new WebKit features that Safari 17 Beta supports for PWAs.
New WebKit Features for PWAs
- Web Share API Level 2: This API allows PWAs to share files with other apps on the device, such as photos, videos, or documents. It also supports sharing multiple files at once.
-
Web App Manifest: This is a JSON file that describes a PWA, such as its name, icons, start URL, display mode, and more. Safari 17 Beta supports more manifest properties than before, such as
categories
,description
, andscreenshots
. - Web App Banner: This is a prompt that appears on Safari when a user visits a PWA that can be installed on the device. Safari 17 Beta improves the appearance and behavior of the banner, making it more consistent with native app banners.
-
Service Workers: These are scripts that run in the background and enable PWAs to work offline, sync data, send push notifications, and more. Safari 17 Beta improves the performance and reliability of service workers, and adds support for some new APIs, such as
CacheStorage
andBackground Sync
. - Web Push API: This API allows PWAs to send push notifications to users even when they are not using the app. Safari 17 Beta adds support for silent push notifications, which can be used to update the app's content or state without alerting the user.
Advantages of PWAs for Developers
PWAs offer many advantages for developers, and on MacOS right now, as well.
Some of them are:
- They are easier and cheaper to develop and maintain than native apps, as they use web technologies and standards.
- They can reach a wider audience, as they are compatible with different browsers and devices.
- They can leverage the features and performance of Safari, which is the default browser on MacOS and supports many PWA capabilities.
- They can provide a seamless user experience, as they can adapt to different screen sizes and orientations, work offline, and update automatically.
PWAs are a great way to create engaging and reliable web applications that can run on MacOS and other platforms. If you want to learn more about PWAs, you can check out this guide from Google.
Are you interested in learning GitHub but don't know where to start? Try my course on LinkedIn Learning: Learning GitHub.
Thanks for reading this post, I hope you found it interesting!
Feel free to follow me to get notified when new articles are out ๐
Top comments (4)
I am really thinking about this a lot and could image the future with only PWAโs where users do not install native apps on their devices anymore (at least that is what I would like for mobile).
What do you think? Will the PWA be able to fully replace native apps at some point?
I am a big fan of PWA since the beginning... but I don't think they replace native apps completely... (but I would like ๐)
There's no documented support for Web App Install Banners in Safari / iOS 17.
Here's the WWDC announcement: developer.apple.com/videos/play/ww...
and the beta release notes: developer.apple.com/documentation/...
Iโm sorry but I think Apple didnโt create web app banner !