Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not detect Windows Phone as mobile #6

Open
aripalo opened this issue Oct 4, 2016 · 0 comments
Open

Does not detect Windows Phone as mobile #6

aripalo opened this issue Oct 4, 2016 · 0 comments

Comments

@aripalo
Copy link

aripalo commented Oct 4, 2016

Expected behaviour

Windows Phone based devices should be detected as “mobile” (ua.Mobile == true).

Actual behaviour

  1. Windows Phone based smart phones (such as Lumia) are not detected as expected with ua.Mobile == true.
  2. WP 8.0 and WP 10 UA strings do get parsed with ua := useragent.Parse(userAgentHeader), but for WP 8.1 ua == 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:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@aripalo and others