95
Views
2
Comments
[OutSystems UI Web] GetBrowser() returns 'chrome' in Edge and Opera
outsystems-ui-web
Web icon
Forge asset by OutSystems
Application Type
Traditional Web
Service Studio Version
11.12.0 (Build 48966)

When using GetBrowser() in a Traditional Web application, it returns 'chrome' in Chrome, but also in Edge and Opera.

I am now using a workaround that uses GetUserAgent(), and checks for 'edg' or 'opr' in the return value. But I wonder what I'm doing wrong with GetBrowser(), is it supposed to detect Edge and Opera?

Kind regards,

Eva

2023-12-08 14-41-30
Necmettin Sahinbay

Hi Eva,

You may want to check for more details about the user agent:
https://www.outsystems.com/forge/component-overview/11614/uaparser

Hope it works for you.


Sincerely,
Necmettin

2018-01-05 02-53-30
Grayson Udstrand

Edge, Chrome, and Opera are all built off the Chromium engine these days. Generally speaking that should mean compatibility (which I am guessing you're using this check to figure out) should be the same on those browsers anyways. Can I ask what the use case is for doing the browser check?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.