In Chrome 76 you can hide the Add to Home screen mini-infobar

In Chrome 76 you can hide the Add to Home screen mini-infobar

Background on Progressive Web Apps and the mini-infobar

Progressive Web Apps (PWA) are a pattern for
creating app-like, instant loading, reliable and installable websites.

Example of the Add to Home screen mini-infobar for AirHorner

When your PWA passes the
installability checklist on
Android, a Chrome system dialog called the mini-infobar will appear at the
bottom of the browser window.

Today the Add to Home screen mini-infobar is shown at the same time as the
beforeinstallprompt
event.

Changes in Chrome 76

Note: Chrome 76 went to stable in July 2019.

We’ve been listening to our community and what we heard was that developers
want more control over when to ask users to install a PWA. We heard you!

Starting in Chrome 76, you can prevent the mini-infobar by calling
preventDefault() on the beforeinstallprompt event.

The beforeinstallprompt event can help you promote the installation of your
progressive web app, making it easy for users to add it to their home screen.
Our community has shared that users who install a PWA to the home screen are
highly engaged, with more repeat visits, time spent in the app and when
applicable, higher conversion rates.

Example of Pinterest using an install banner to promote the installability
of their PWA. See Add to
Home Screen
for complete details on the add to home screen flow,
including code samples, and other best practices.

To promote your web app without the mini-infobar, listen for the
beforeinstallprompt event, then, save the event. Next, update your user
interface to indicate your PWA can be installed, for example by adding an
install button, showing an install banner, using in-feed promotions, or a
menu option. When the user clicks on the install element, call prompt() on
the saved beforeinstallprompt event to show the add to home screen modal
dialog.

Future of the Add to Home screen mini-infobar

The use of the add to home screen infobar is still a temporary measure.
We’re experimenting with new UI patterns that will continue to give Progressive
Web App users the ability to install, and do this in a way that reduces
clutter in the browsing experience.


This content originally appeared on Updates and was authored by

In Chrome 76 you can hide the Add to Home screen mini-infobar

Background on Progressive Web Apps and the mini-infobar

Progressive Web Apps (PWA) are a pattern for creating app-like, instant loading, reliable and installable websites.

Example of the Add to Home screen mini-infobar for AirHorner

When your PWA passes the installability checklist on Android, a Chrome system dialog called the mini-infobar will appear at the bottom of the browser window.

Today the Add to Home screen mini-infobar is shown at the same time as the beforeinstallprompt event.

Changes in Chrome 76

Note: Chrome 76 went to stable in July 2019.

We’ve been listening to our community and what we heard was that developers want more control over when to ask users to install a PWA. We heard you!

Starting in Chrome 76, you can prevent the mini-infobar by calling preventDefault() on the beforeinstallprompt event.

The beforeinstallprompt event can help you promote the installation of your progressive web app, making it easy for users to add it to their home screen. Our community has shared that users who install a PWA to the home screen are highly engaged, with more repeat visits, time spent in the app and when applicable, higher conversion rates.

Example of Pinterest using an install banner to promote the installability of their PWA. See Add to Home Screen for complete details on the add to home screen flow, including code samples, and other best practices.

To promote your web app without the mini-infobar, listen for the beforeinstallprompt event, then, save the event. Next, update your user interface to indicate your PWA can be installed, for example by adding an install button, showing an install banner, using in-feed promotions, or a menu option. When the user clicks on the install element, call prompt() on the saved beforeinstallprompt event to show the add to home screen modal dialog.

Future of the Add to Home screen mini-infobar

The use of the add to home screen infobar is still a temporary measure. We’re experimenting with new UI patterns that will continue to give Progressive Web App users the ability to install, and do this in a way that reduces clutter in the browsing experience.


This content originally appeared on Updates and was authored by


Print Share Comment Cite Upload Translate Updates
APA

| Sciencx (2019-05-20T00:00:00+00:00) In Chrome 76 you can hide the Add to Home screen mini-infobar. Retrieved from https://www.scien.cx/2019/05/20/in-chrome-76-you-can-hide-the-add-to-home-screen-mini-infobar/

MLA
" » In Chrome 76 you can hide the Add to Home screen mini-infobar." | Sciencx - Monday May 20, 2019, https://www.scien.cx/2019/05/20/in-chrome-76-you-can-hide-the-add-to-home-screen-mini-infobar/
HARVARD
| Sciencx Monday May 20, 2019 » In Chrome 76 you can hide the Add to Home screen mini-infobar., viewed ,<https://www.scien.cx/2019/05/20/in-chrome-76-you-can-hide-the-add-to-home-screen-mini-infobar/>
VANCOUVER
| Sciencx - » In Chrome 76 you can hide the Add to Home screen mini-infobar. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2019/05/20/in-chrome-76-you-can-hide-the-add-to-home-screen-mini-infobar/
CHICAGO
" » In Chrome 76 you can hide the Add to Home screen mini-infobar." | Sciencx - Accessed . https://www.scien.cx/2019/05/20/in-chrome-76-you-can-hide-the-add-to-home-screen-mini-infobar/
IEEE
" » In Chrome 76 you can hide the Add to Home screen mini-infobar." | Sciencx [Online]. Available: https://www.scien.cx/2019/05/20/in-chrome-76-you-can-hide-the-add-to-home-screen-mini-infobar/. [Accessed: ]
rf:citation
» In Chrome 76 you can hide the Add to Home screen mini-infobar | | Sciencx | https://www.scien.cx/2019/05/20/in-chrome-76-you-can-hide-the-add-to-home-screen-mini-infobar/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.