MicrosoftEdge / MSEdgeExplainers

Home for explainer documents originated by the Microsoft Edge team
Creative Commons Attribution 4.0 International
1.28k stars 199 forks source link

[Web Install] How can install targets advertise a preferred `install_url`? #755

Closed amandabaker closed 2 months ago

amandabaker commented 5 months ago

https://bit.ly/unvalidated-pwa-url-installation describes the benefits of having a dedicated install url that is lightweight, doesn't redirect, and only includes the resources needed to install the app. Large app stores may have a registration process that requests a specific install url, but smaller players may rely on web crawlers to find apps to host in their store.

A failed or slow app install (due to redirects or loading too many resources over a slow connection) reflects poorly on both the store (install source) and app (install target), so it's beneficial to both parties that there is an easy way for the installation target to specify a preferred install url.

Proposal: Add an install_url field to the manifest:

cc @dmurph @diekus @HowardWolosky

dmurph commented 5 months ago

I'm generally in support of this, I think it is useful. It also help admin / policy install situations, where the admin panel can look at the manifest & see the install_url, and then populate that in the policy sent to the client along with the manifest_id.

diekus commented 5 months ago

I am supportive of this as well. Need to add this to the manifest incubations spec.