GoogleChromeLabs / bubblewrap

Bubblewrap is a Command Line Interface (CLI) that helps developers to create a Project for an Android application that launches an existing Progressive Web App (PWAs) using a Trusted Web Activity.
Apache License 2.0
2.38k stars 162 forks source link

App keeps opening in system browser #549

Open toniengelhardt opened 3 years ago

toniengelhardt commented 3 years ago

Describe the bug

I received the following review on Google Play:

Screen Shot 2021-06-10 at 11 54 36

The user reports that the device always opens the app in Flyme browser, which apparently is the system default browser (and cannot be deleted), even though he has set Opera as the default browser, which should be PWA compatible?

To Reproduce

Can not reproduce. Other users with the same Android- and app version seem to have no problems.

Expected behavior

If the app says that it is available for the device in the PlayStore, it should always work as native experience.

Smartphone

andreban commented 3 years ago

AFAIK, Opera doesn't support Trusted Web Activity, so that may be the issue. This is the first time I hear about Flyme - I couldn't find it on Google Play. Does it support Trusted Web Activity/

toniengelhardt commented 3 years ago

I don't think so, it's also the first time I'm hearing about it. It seems to be the default browser of Meizu phones. What I'm a bit worried about is that users go to the PlayStore and download the app, but then it just doesn't provide a native experience if they don't have Chrome or Brave installed, which apparently leads to negative ratings.

I'm wondering if it would be possible to check if a TWA compatible browser is installed from the PlayStore and if not display a note saying "this app requires Chrome" or something, or not let the user install it at all, like when the app is not listed in your country?

andreban commented 3 years ago

I'm wondering if it would be possible to check if a TWA compatible browser is installed from the PlayStore and if not display a note saying "this app requires Chrome" or something, or not let the user install it at all, like when the app is not listed in your country?

The TWA already checks for a compatible browser. If no compatible browser is found, there are two fallback options: