Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Requirements to make PWA in a WebAPK format

I am working on my website. I managed to get basic PWA functionality using the web page manifest file.

Not long ago, Google released deeply integrated PWAs, allowing users to make a WebAPK when they added the page into the home screen.

I want my page to also have that kind of feature, but it is never been clear what I should do to get that functionality..

Do I need to add something extra aside from the manifest file, sw.js and various meta tags?

like image 810
Derrick Timmermans Avatar asked Dec 13 '17 20:12

Derrick Timmermans


People also ask

What is required for PWA?

A web manifest, with the correct fields filled in. The web site to be served from a secure (HTTPS) domain. An icon to represent the app on the device. A service worker registered, to allow the app to work offline (this is required only by Chrome for Android currently)

What is WebAPK mode?

When the user adds your Progressive Web App to their home screen on Android, Chrome automatically generates an APK for you, which we sometimes call a WebAPK. Being installed via an APK makes it possible for your app to show up in the app launcher, in Android's app settings and to register a set of intent filters.

Can we publish PWA to Google Play store?

Now that you have an Android App Bundle for your PWA, it's time to upload it to Google's Play Store! Once you've registered your developer account, you can go to the Play Console to log in and get started. Before You Start: What are the different types of signing keys you need to create a release in Play?


1 Answers

This is not something we can control. Chrome was/is experimenting with "improved A2HS" as they called it (A2HS stands for "add to homescreen") and a part of that was an internal service that wrapped the PWA into APK. It was hidden behind a flag initially, then it was opened to the public as default in Feb 2017.

When you install a Progressive Web App, we look at your Web App Manifest and other meta-data and create the APK that is installed on to the user's device.

(emphasis mine, we == Android)

So there's nothing we can do except being sure our manifest is valid, site is HTTPS, Service Worker installs correctly etc.

like image 101
NOtherDev Avatar answered Oct 15 '22 19:10

NOtherDev