khmyznikov/pwa-install

beforeinstallprompt Event Firing After big delay (10+ Seconds)

Closed this issue · 1 comments

I’m encountering an issue where the beforeinstallprompt event on Android is delayed by around 10 seconds after the page loads. Ideally, I would like to trigger the install prompt immediately when the page is hit, but it seems to take quite a while to fire. Is there any way to speed up the triggering of this event?

Thank you for your help

It's the browser that triggers this event. You can only indirectly influence it, for example, by pushing the user to press some buttons or scroll in your application. Basically, some interactions from user required to trigger this event. Overall, it's anti-pattern to ask the user immidiately to install your app. Same thing for permissions for notifications or similar.