useragent
useragent copied to clipboard
Does not detect Windows Phone as mobile
Expected behaviour
Windows Phone based devices should be detected as “mobile” (ua.Mobile == true).
Actual behaviour
- Windows Phone based smart phones (such as Lumia) are not detected as expected with
ua.Mobile == true. - WP 8.0 and WP 10 UA strings do get parsed with
ua := useragent.Parse(userAgentHeader), but for WP 8.1ua == nil
Examples of UA strings
Examples of Windows Phone 7.x UA strings:
- currently I do not have WP 7.x UA info, but will update this when I get one
Examples of Windows Phone 8.0 UA strings:
-
Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 520) -
Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 635)
Examples of Windows Phone 8.1 UA strings:
-
Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 630) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537 -
Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 930) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537
Examples of Windows 10 Mobile (“Windows Phone 10”) UA strings:
-
Mozilla/5.0 (Windows Phone 10.0; Android 6.0.1; Microsoft; Lumia 640 LTE) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Mobile Safari/537.36 Edge/14.14393 -
Mozilla/5.0 (Windows Phone 10.0; Android 6.0.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Mobile Safari/537.36 Edge/14.14393
Example screenshot
Example screenshot with Nokia Lumia 930 Windows Phone 8.1 device via BrowserStack:
