Skip to content

Device.windowsPhone not detected with Windows Phone 8.1 #1496

@jounii

Description

@jounii

Device.windowsPhone is set in "else if" path after Android (and other) checks, however this causes atleast "Windows Phone 8.1" IE11 to be detected as Android + iPhone. IE team had it's reasons to lie like this, but obviously not exactly correct if you want ie. to disable something on Windows Phone device what you want to be enabled in iOS device not matter how much IE team wants to believe their browser is like iPhone.

This monster comes up with IE11 in Windows Phone:

"Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 925) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537"

http://msdn.microsoft.com/en-us/library/ie/hh869301(v=vs.85).aspx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions