ua-parser / uap-core

The regex file necessary to build language ports of Browserscope's user agent parser.
Other
742 stars 449 forks source link

Instagram apps not detected correctly #268

Open pierrefar opened 7 years ago

pierrefar commented 7 years ago

Hello

Instagram on Android sends this UA:

Mozilla/5.0 (Linux; Android 7.1.2; Pixel XL Build/NJH47F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/60.0.3112.107 Mobile Safari/537.36 Instagram 11.0.0.12.20 Android (25/7.1.2; 476dpi; 1440x2417; Google/google; Pixel XL; marlin; marlin; en_GB)

It's detected as Chrome Mobile.

On iPhone, it sends this UA:

Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60 Instagram 10.26.0 (iPhone8,1; iOS 10_3_3; en_GB; en-GB; scale=2.00; gamut=normal; 750x1334)

It's detected as Mobile Safari UI/WKWebView.

Can both be (more) correctly detected as Instagram?

Thanks

commenthol commented 7 years ago

PR #262 should fix this issue