locked
Windows phone 8.1 WebBrowser nevigator.userAgent RRS feed

  • Question

  • Hi All,

    I encounter in strange issue regarding WebBrowser use agent in Nukia lumia 920 with OS 8.10.14147.180

    console.log(navigator.userAgent) show:

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

    since Android is part of the user agent sencha touch think that the device is android.

    your advice regarding to how overcome it will be appreciated,

    Thank,

    Ronen 

    Wednesday, August 20, 2014 4:12 PM

Answers

  • Hi,

    >>I encounter in strange issue regarding WebBrowser use agent in Nukia lumia 920 with OS 8.10.14147.180
    It seem that the user agent string of IE 11 on Windows Phone 8.1 Update 1 has been changed as following:

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

    For more information, please try to refer to:
    http://news.softpedia.com/news/Windows-Phone-8-1-Update-1-s-IE11-User-Agent-Emulates-as-Android-4-0-and-iOS-7-to-Trick-Gmail-453653.shtml .

    >>since Android is part of the user agent sencha touch think that the device is android.
    Then maybe you can try to create your custom user agent for in the windows phone, for more information, please try to refer to the following articles:
    #
    Changing Windows Phone default User-Agent for WebBrowser:
    http://basquang.wordpress.com/2014/04/26/wp8-1-changing-windows-phone-8-1-webview-default-user-agent-in-all-outbound-http-requests/ .

    Best Regards,
    Amy Peng

    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.



    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Ctera-Ronen Thursday, August 21, 2014 1:48 PM
    Thursday, August 21, 2014 10:36 AM

All replies

  • Hi,

    >>I encounter in strange issue regarding WebBrowser use agent in Nukia lumia 920 with OS 8.10.14147.180
    It seem that the user agent string of IE 11 on Windows Phone 8.1 Update 1 has been changed as following:

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

    For more information, please try to refer to:
    http://news.softpedia.com/news/Windows-Phone-8-1-Update-1-s-IE11-User-Agent-Emulates-as-Android-4-0-and-iOS-7-to-Trick-Gmail-453653.shtml .

    >>since Android is part of the user agent sencha touch think that the device is android.
    Then maybe you can try to create your custom user agent for in the windows phone, for more information, please try to refer to the following articles:
    #
    Changing Windows Phone default User-Agent for WebBrowser:
    http://basquang.wordpress.com/2014/04/26/wp8-1-changing-windows-phone-8-1-webview-default-user-agent-in-all-outbound-http-requests/ .

    Best Regards,
    Amy Peng

    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.



    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Ctera-Ronen Thursday, August 21, 2014 1:48 PM
    Thursday, August 21, 2014 10:36 AM
  • Thanks
    Thursday, August 21, 2014 1:48 PM