Browser detection based on User Agent -


i have following user agent, picked website log:

mozilla/5.0+(linux;+android+4.4.4;+nexus+5+build/ktu84p)+applewebkit/537.36+(khtml,+like+gecko)+chrome/37.0.2062.117+mobile+safari/537.36

how know device/browser - both android , apple mentioned. browsers - both chrome , safari mentioned here!

thanks

it mentions nexus 5. seems pretty clear that's android. got lucky, device name in string.

the reason mentions of compatibility purposes. if developers target specific devices looking @ user agent string, if want device have features, have include string knows device capable of features of devices.

for more info, see why “mozilla” string present on browser's user agent?.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -