Hello! first I want to thank lucasfernog for bothering to solve this problem. Your solution to incorporate userAgent was great.
I allow myself to give some details for those who need it:
I guess we all want our PWA installed on users’ smartphones, and we know that 90% of the market is covered by Safari (ios) and Chrome (Android).
With “beforeinstallprompt” we solve the banners of “Add to the home screen” (Android) and for safari with “Platform.is.safari”.
The wonderful quasar also covers virtually all major browsers. But, in my opinion, there were two that were disguised as chrome, but they did not behave like this when it came to installing our PWA.
One was Edge that, although it is not my preference, has more than 10,000,000 downloads only on Android.
The other one is “Samsung Internet”, which has the same problem as Edge: It is detected as chrome, but it does not behave the same, so it is necessary to detect it and display a banner with the installation instructions.
“Samsung Internet” is the default browser on “samsung galaxy” phones (which are not few) and now they have released this browser for all phones, which translates into more than 1,000,000,000 downloads in playstore. A more than important number.
The solution of lucasfernog when using “userAgent” also solved the detection of “Samsung Internet” and, consequently, of many other browsers.
Thanks again Lucas, and this is a giant step for the PWAs made with Quasar.