I use manifest.json on my website for installing the service as a "webapp". Normally, Android/Chrome-Users have to do the following steps to install the service:
- Click on the Menu-Icon
- Chose "Install App" from the dialog
- Confirm installation
Yesterday I visited a website with a nice button that was shown automatically for a few seconds:

Long story short: After clicking on the button the webapp was installed on my smartphone without the three steps mentioned. How can I create such a button/dialog?
You can use beforeInstallPromptEvent.
NOTE: This is experimental. Works on all chromium browsers. Doesn't work on firefox and safari.
I researched before and found only this. Works flawless in chrome/edge.
You can use it like that: REACT EXAMPLE
After checking, if installation is allowed, which means you can prompt and user doesn't have it installed on phone/computer.