-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install prompts: Allow manual prompting but not automatic prompting #576
Comments
I guess if we do that, developers will learn to always prompt as soon as they are able to, making the auto prompting more or less useless and forcing the developers to do a bit more work. |
@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:
This allows user agents to provide what they believe is the best default experience, while site developers can customize to obtain either behaviour. |
I'm supportive of the model in #576 (comment) . @mgiuca, could you please draft a PR with the new language? |
Will do. |
But I thought that was already possible, calling |
@delapuente Sorry, maybe I wasn't clear. By "allow manual prompting", I mean for user agent implementors, not web sites. That is, we want to make it legal for a user agent to fire a |
I see. Makes sense. Thank you for the clarification. |
Implementations may wish to show a prompt if, and only if, the site explicitly requests it via
BeforeInstallPromptEvent.prompt()
, but not automatically without the site's approval. Is this something we want to leave to the discretion of the user agent? (This would require changing the language in §2.5 "Install prompts": "steps to notify before an automated install prompt" would become "steps to notify that an install prompt is available".)The text was updated successfully, but these errors were encountered: