[Webkit-unassigned] [Bug 255716] Feature request: Implement `BeforeInstallPrompt` event for programmatic Add to Home Screen

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 20 08:42:48 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=255716

--- Comment #11 from Nicolas Hoizey <nicolas at hoizey.com> ---
(In reply to Marcos Caceres from comment #10)
> Just noting that WebKit is not Safari

Fair point.

> so I can’t confirm if that’s been tge
> Safari team’s experience. I will take this feedback to the Safari team
> though. 

Thanks.

I'm giving talks and trainings about PWAs to tech people, and even those of them with iPhones are often not aware of this feature.

> > But at least there should be an easier way than the share sheet for people
> > to know that web sites can be added to the homescreen. This is not a
> > “sharing” action at all.
> 
> That’s a fair statement and something I will share this feedback internally
> with the Safari team that own the share sheet. 
> 
> If the UI was improved and/or users became more aware of how to add to Home
> Screen, do you agree there would be no limited need for BIP?

I even agree we don't need any BIP at all, whatever the other enhancements, looking at how Chrome(ium?) made it almost instant now anyway.

However, it would be great if we could provide a way for developers to trigger the UA-provided install UI and a property to know if it makes sense right now to add content and a button in the page for this feature.

Like `Notification.permission` tells us if the user already granted/denied notifications (or didn't yet), `AddToHomeScreen.possible` would tell us if A2HS is possible (not already added to home screen for example, and Chrome could add constrainsts about Manifest values).

And like `Notification.requestPermission()` allows asking the user for such permission, `AddToHomeScreen.requestPermission()` (and a user gesture) would trigger the UA-provided install UI (the same that would be triggered by the ambiant badging icon/button and A2HS in the share sheet).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230420/77afcb1f/attachment.htm>


More information about the webkit-unassigned mailing list