Re: [w3c/manifest] Install prompts: Allow manual prompting but not automatic prompting (#576)

@owencm I think the reports and data we're getting from developers suggests that they are *not* happy with us spontaneously showing a prompt and would actually prefer to control the experience rather than have it pop up at a random time. (In fact I believe many developers are calling preventDefault and never prompt.)

This would be a proposal to make that the default behaviour, and it would be at the discretion of the user agent. So to put it in the framework I proposed a year ago, there would be 3 classes of site:
1. Those that want to show a prompt right away. They should call `prompt()` in the `beforeinstallprompt` event handler.
2. Those that want to not show a prompt ever, or show it later at a controlled time. They should call `preventDefault()` (and perhaps `prompt()` later).
3. Those that don't care. They don't have an event handler, and they just take the default behaviour at the discretion of the user agent.

This allows user agents to provide what they believe is the best default experience, while site developers can customize to obtain either behaviour.

-- 
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/manifest/issues/576#issuecomment-300398375

Received on Wednesday, 10 May 2017 07:25:32 UTC