3rd-Eden / useragent

Useragent parser for Node.js, ported from browserscope.org
MIT License
897 stars 137 forks source link

Edge for Android 1.0 gets detected as Chrome 63 #125

Open abdulhannanali opened 6 years ago

abdulhannanali commented 6 years ago

Edge for android gets detected as Google Chrome 63, while they do now include a specific string to identify Edge for Android and iOS, I would like to propose following user agent addition in this library. Here's a sample user agent string and the pattern to be followed in coming days.

For Edge for Android

Mozilla/5.0 (Linux; Android 8.0; Pixel XL Build/OPP3.170518.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.0 Mobile Safari/537.36 EdgA/41.1.35.1

For Edge for iOS

Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 Safari/603.2.4 EdgiOS/41.1.35.1