react-device-detect
react-device-detect copied to clipboard
Edge on Android mobile phone return isLegacyEdge true
Edge on Android mobile phone return isLegacyEdge if I'm not wrong it should be false and it should return isEdgeChromium true.
Device detect: { "isMobile": true, "vendor": "none", "model": "Mi A2 Lite", "os": "Android", "osVersion": "10", "ua": "Mozilla/5.0 (Linux; Android 10; Mi A2 Lite) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Mobile Safari/537.36 EdgA/93.0.961.53" }
I ran into this problem today, this is indeed a bug with the library.
According to Microsoft article Detecting Microsoft Edge from your website, Microsoft Edge Legacy was only available on Windows 10. So, as a temporary workaround you could include a check for Windows OS with the check for Legacy Edge.
There are some recent "Edge on Android" UA string listed at https://www.whatismybrowser.com/guides/the-latest-user-agent/edge, e.g.:
Mozilla/5.0 (Linux; Android 10; HD1913) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.5249.79 Mobile Safari/537.36 EdgA/100.0.1185.50