Add To Home Screen (A2HS)
We created and set the web manifest correctly. Now, let's see how the browser reacts and how to install our PWA on a device.
We'll cover the following
Add to home screen dialog
To display an add to home screen dialog (in short, A2HS), asking the user to install the application locally is not enough to correctly initialize the manifest properties. We must also serve the app through a secure connection (HTTPS). In particular, Chrome requires the app to have a service worker registered.
If all these requirements are fulfilled, the browser shows the A2HS dialog. In this case, we are using a mobile browser, like Chrome for Android, in the screenshot below.
Get hands-on with 1200+ tech skills courses.