I have created an app on all 3 platforms: iOS, Android and Web. I also have manifest.json
and other things required for PWA
. I have deployed it to firebase hosting. Now what I want to do is manually trigger the Add to Home screen on tap of a button. The real problem is though all the articles shows code to be paste on JS side while I have all the UI in dart so How do I listen for beforeinstallprompt
and trigger add to home screen manually ? I'm struggling with this from last 3 days but no luck. I have this package installed universal_html: ^1.2.3.
If anyone knows how to do this please help me out.