Opening app FlowUI v2 on older Android phones and display the "browser not supported" msg

Hello, I am tinkering with FlowUI v2 (Jmix 2.1.3) and came across a problem trying to load an app on an older (Android 10) phone. I got the message I’am sorry, but your browser is not supported. I see that the UI Samples on the demos page returns that message, though the new petclinic does not.

How do I can I deisplay that message for my app for an unsupported browser.

Hi,

The browser-too-old.html page is shown by com.vaadin.flow.server.UnsupportedBrowserHandler which checks if REQUEST_TYPE_PARAMETER (v-r) is equal to oldbrowser. The only place I see that sets that value if com.vaadin.flow.server.communication.IndexHtmlRequestHandler that adds init script to index.html that cheks if window object has CSSLayerBlockRule.

  • UI Samples is updated to the latest Jmix 2.2 version that uses Vaadin 24.3
  • Petclinic is still on Jmix 2.1 that uses Vaadin 24.1

But it looks that both Vaadin versions have the same code to check old browsers, so can’t say why one app shows browser-too-old.html and the other does not.

Regards,
Gleb