[w3c/permissions] PWA install permission (#227)

Since consensus on `beforeinstallprompt` and `prompt()` [was not reached](https://github.com/mozilla/standards-positions/issues/84), what about asking users to install web app as any other permission and moving install prompt into Web Permissions API? Something like:

```js
navigator.permissions.query({ name: "install" })
```

Think of it as web app asks for permission to install itself on the device.

This idea perfectly fits with [Web Install API](https://github.com/PEConn/web-install-explainer/), where one website would allow to request the installation of another website. Website should first ask permission for that. If website can ask permission to install another website, what about asking permission to install itself?

This idea perfectly fits with various browser heuristics applicable to other permissions like "Websites that ask users permission when they first arrive without any context often have very low permission accept rates; website with low permission accept rates can't ask this permission" (see [Quieter permission UI for notifications](https://blog.chromium.org/2020/01/introducing-quieter-permission-ui-for.html)), "Users who repeatedly deny e.g. geolocation permissions across websites will be not asked geolocation permissions", etc. These heuristics and other permission policies applicable to install permission too.

@b1tr0t @mgiuca @PEConn @marcoscaceres Thought?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/issues/227

Received on Saturday, 21 November 2020 19:32:08 UTC