You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: Windows Phone not correctly detected via ionic.Platform.isWindowsPhone() #4070
I am working on getting my App ported to the wp8. However when trying to debug a Windows Phone specific issue I tried to use the ionic.Platform.isWindowsPhone() function.
However this returns false, and actually returns true for isAndroid. The Cordova device.platform reports as "android" as well.
And the User Agent string the device is reporting:
Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 735) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537
I see the problem. My Lumia 735 is claiming its ALL three devices. Effectively making it useless. Any chances you could make the "Windows Phone" check the first in the list?
changed the title [-]Windows Phone not correctly detected via ionic.Platform.isWindowsPhone()[/-][+]bug: Windows Phone not correctly detected via ionic.Platform.isWindowsPhone()[/+]on Jul 10, 2015
I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.
Activity
[-]Windows Phone not correctly detected via ionic.Platform.isWindowsPhone()[/-][+]bug: Windows Phone not correctly detected via ionic.Platform.isWindowsPhone()[/+]mhartington commentedon Jul 14, 2015
Hmm, so even using the raw cordova plugin returns android?
PhilHannent commentedon Jul 22, 2015
On Lumia 735 the
device.platformreturnsWin32NTIonitron commentedon Oct 20, 2015
Greetings @PhilHannent!
I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.
Thank you for allowing me to assist you.
Fixes ionic-team#4070 because Windows Phone reports itself as being "…
Merge pull request #4541 from PhilHannent/master