When you see PWA, Microsoft and Google want you to think Programs With Attitude: Web apps now easier to publish

Microsoft and Google have been working together to help make Progressive Web Apps (PWAs) easier to publish, in the hope that web apps will one day compete with native apps on mobile devices.

For the past few years, Google has tried to imbue PWAs with the technical means to match native apps on Android or iOS in terms of performance and user experience. Microsoft has shown similar enthusiasm since at least 2016.

PWAs are basically websites that, though the addition of various fairly recent capabilities, can be installed on devices and can function offline, among other things.

Until 2018, Apple’s WebKit-based Safari browser limited PWAs on Apple devices back due to its lack of support for some of the application programming interfaces (APIs) necessary for PWAs like service workers.

But that year, Apple shipped service worker support in Safari, the last major piece of browser plumbing necessary to make PWAs that function on both Apple and Google mobile devices.

There are still some minor missing pieces and platform differences. Safari doesn’t yet support the Background Sync API or push notifications, for example. Its support for the manifest file used to store app metadata is only partial. And iOS only allows 50MB of storage for caching website assets, which prevents sites with large assets like video files from being stored for offline usage.

But overall, PWAs now work well enough on both Apple and Google platforms that developers can use web tech rather than native SDKs for certain applications.

Twitter Lite, for example, is a PWA – available from Google Play at lite.twitter.com – for interacting with Twitter.


READ  Skype for Web arrives to bring the world together. As long as the world is on Chrome and... Edge?

Apple: We’re defending your privacy by nixing 16 browser APIs. Rivals: You mean defending your bottom line


To advance PWAs further, Microsoft and Google have released tools to make it easier to prepare PWAs for distribution via the Google Play Store, where most people get their Android apps.

Microsoft and Google started working together last year to build a Google command line tool called Bubblewrap, which generates and signs Google Play Store packages, into Microsoft’s PWABuilder, initially released in 2018.

Last week, Microsoft developer Judah Gabriel Himango in an online post said that his company’s PWABuilder now supports the new web shortcuts standard, which enables things like contextual menus that people have come to expect in native apps.

“Web shortcuts integrate into the operating system — such as Windows’ task bar and start menu, or Android’s home screen— enabling users to quickly access your app’s core functionality,” he said.

The integration with Bubblewrap allows developers using PWABuilder to better customize PWAs for Android by supplying specific metadata to describe fallback behavior and the look of the Android status bar and nav bar, among other things. It supports packaging a PWA using the Trusted Web Activity scheme.

PWAs can be installed directly, without the need to go through the Google Play Store. But some developers may find the Google Play Store provides greater visibility and discoverability than direct installation. Association with the Google Play Store also provides access to the Play Billing API, which Google made available to PWAs back in April.

READ  What's vexing Linux-loving Gophers? A few things: Go devs want generics, easier debugging

Native apps still have some advantages, but the gap keeps closing. ®



Please enter your comment!
Please enter your name here