Open dfabulich opened 1 year ago
FYI, interested parties may be wanting to follow the relevant TPAC discussions once they happen.
FWIW, regardless of whether anyone actually decides to push for a declarative install prompt, I think it would make sense to document it as an alternate solution in this Web Install API explainer.
@dfabulich While the declarative install banner is not exactly the same scope as the issue we are trying to solve, we're considering a declarative alternative via an anchor tag target property that would trigger an installation and return the relevant information on an event. I'm querying with different vendors their interest on this approach, specially for same-origin installs. As far as I am concerned there is no further action on cross-origin installs apart from Chromium browsers atm.
I'm frankly skeptical that Mozilla and Apple will approve of an imperative
navigator.install()
API, but I think it's much more likely that Mozilla and Apple would approve of a declarative install banner.For example, today, Apple has a feature for native apps called the Smart App Banner.
https://developer.apple.com/documentation/webkit/promoting_apps_with_smart_app_banners
You activate a Smart App Banner with a meta tag, like this:
It would be useful to standardize a similar
<meta>
tag for PWA installation.For the cross-domain use case:
Like the
<a>
tag, this approach limits the amount of information available to the developer. But that may be a good thing! That could be exactly what makes the major browser engines buy in.