Difference between revisions of "Add to Home Screen"

From MgmtWiki
Jump to: navigation, search
(Problems)
(Solutions)
Line 11: Line 11:
  
 
==Solutions==
 
==Solutions==
* [https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Add_to_home_screen Instructions from Mozilla/Firefox] on enabling A2HS.
+
* [https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Add_to_home_screen Instructions from Mozilla/Firefox] on enabling A2HS if the event 'beforeinstallprompt' is supported. In 2019 Microsoft Edge, Google Chrome and Samsung Internet have that native event which triggers if the site meets a minimum set of PWA requirements. The event includes a prompt object, but it can only be used in response to a user action, i.e., click.
  
 
==References==
 
==References==
  
 
[[Category: Best Practice]]
 
[[Category: Best Practice]]

Revision as of 16:01, 11 November 2021

Full Title or Meme

Add to Home Screen is a feature of mobile computing devices that enables Progressive Web Apps to be available on the device's home screen.

Context

  • The objective of the Progressive Web App is to duplicate nearly all of the functionality of a Native App which includes the ability of the user to access the app from their computing device, such as a Smartphone.
  • Like most web traffic in 2020 is secured with HTTPS and this feature requires HTTPS to be the transport layer.

Problems

  • The primary target of the PWA is the mobile Smartphone which has limited capabilities, in particular memory and battery energy. The impact to any resource on the Smartphone it is subject to removal to allow the phone functionality to operate unhindered.
  • Apple has taken the position in 2021 to remove any PWA that has not been used for (in practice) 2 weeks, but does not apply that same automatic removal to PWAs that have been added by the user to their home screen.

Solutions

  • Instructions from Mozilla/Firefox on enabling A2HS if the event 'beforeinstallprompt' is supported. In 2019 Microsoft Edge, Google Chrome and Samsung Internet have that native event which triggers if the site meets a minimum set of PWA requirements. The event includes a prompt object, but it can only be used in response to a user action, i.e., click.

References