bowser-js / bowser

a browser detector
Other
5.51k stars 487 forks source link

Android 13 or 14 wrongly detected as 10.0 #555

Open stnedelchev-fadv opened 3 weeks ago

stnedelchev-fadv commented 3 weeks ago

I have encountered this issue on some devices with newer Android versions like 13 or 14.

This is a user agent of my Android phone which runs on Android 14

window.navigator.userAgent of the browser is: "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36" And OS is detected like 10 However, the real OS version is 14

By the looks of it, the library picks 10 as a version right from the Android 10 string which is the reason for the wrong version. Also I noticed the "K" letter after the version. Could it be related to what's mentioned in this article? https://mobiforge.com/research-analysis/the-mysterious-model-k