locked
unable to get property 'getcurrentposition' of undefined or null reference

    Question

  • In a Windows Store app I use WebView to view a website.

    When trying to get the current location, it says :

    " unable to get property 'getCurrentPosition' of undefined or null reference ".

    It works well on Windows Phone Browser and on IE, but not inside a WebView on Windows Store app.

    Any workaround ?

    Tuesday, April 01, 2014 11:42 AM

All replies

  • Hi Houssem - what's the exact line of code that is throwing this error? Also, WebView isn't a direct port of IE, so there definitely are differences and we may have to work around them.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Tuesday, April 01, 2014 12:13 PM
    Moderator