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
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
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?