2

I have integrated PWA features in react web app and beforeinstallprompt event gets triggered in production app when opened in mobile. I want to trigger this event on desktop development environment. Is there a way to achieve that. I referred stackoverflow answer regarding this problem and updated chrome browser settings but the event is not triggered.

Always_a_learner
  • 4,585
  • 13
  • 63
  • 112

1 Answers1

0

It depends on the browser. beforeinstallprompt is triggered on chrome 102 and edge 102 for me but not on firefox 101. it is not triggered if the app is already installed.

Check here for a list of supported browsers: https://developer.mozilla.org/en-US/docs/Web/API/BeforeInstallPromptEvent