bubblewrap icon indicating copy to clipboard operation
bubblewrap copied to clipboard

Information/Dialog Fallback

Open JorgenMartin opened this issue 10 months ago • 1 comments

Is your feature request related to a problem? Please describe. For some users without a compatible browser, we would like to be able to inform the user that their setup is not compatible, as the app requires e.g. Google Chrome or another compatible browser. This is caused by neither of the currently available fallback methods providing a sufficient user experience as is, providing the users with a subpar experience without communicating to them that they can very easily improve the experience.

This seems to be related to the issues described in #549 (specifically the follow-up comment):

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? In some cases, neither of the currently available fallback methods is fitting.

Describe the solution you'd like I would like to provide the user with an informative dialog as a fallback, in cases where the developer deems none of the fallback alternatives to be sufficient. A minimum would be something like a "not-supported"/"none"-fallback type, preferably with a "fallback-text"-property:

{
  ...
  "fallbackType": "not-supported",
  "fallbackHeader": "Compatible Web Browser Required",
  "fallbackText": "This application requires a compatible browser, such as Google Chrome (> 72.0) or Microsoft Edge (> 45.05)",
  ...
}

Describe alternatives you've considered We have considered opening a WebView-fallback and have it open a URL where we can attempt to detect that it is open in a WebView and from there inform the user of the missing browser. However, this is not a very nice workaround and is error prone. We have not attempted to actually implement this, it is simply the closest alternative that comes to mind. I will post another issue to request ability to append the user-agent for the WebView-fallback which would make this easier to implement. Edit: This is now issue #925

Additional context Sample of the requested dialog: Image

JorgenMartin avatar Apr 22 '25 16:04 JorgenMartin

Most of the changes are required in the ABH to support none fallback, but let's discuss a WebView approach in the #925, because it seems like showing a WebView with something is better than nothing.

ukaratkevich avatar Jun 26 '25 13:06 ukaratkevich