@slightlylate I heard about programmatically triggering web app install/home screen banners at #io17. Could you name API/link to docs thanks
-
-
Replying to @jrstanley
See: https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforeinstallprompt … Our policy will change, but API the same.
1 reply 0 retweets 0 likes -
Replying to @slightlylate
Thanks for the quick reply! I had heard there was an API to allow you to trigger the prompt in response to a user interaction (tap) also?
1 reply 0 retweets 0 likes -
-
Replying to @slightlylate
Sorry, not sure I follow. Let's say it's as a result of user's tap on a button. Would I need to fire the beforeinstallprompt event?
2 replies 0 retweets 0 likes -
Replying to @jrstanley @slightlylate
Ah, perhaps I see. beforeinstallprompt will fire sooner w/different rules. Presumably after some interaction with the page? Thank you!
1 reply 0 retweets 0 likes -
-
Replying to @slightlylate
Brilliant, thanks for explaining! Are there any concerns that if many PWAs prompt repeatedly+ASAP it could limit efficacy of prompt overall?
1 reply 0 retweets 0 likes
Yep! A big concern and why we retain control over sending the event in the first place. We'll continue to monitor accept rates.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.