cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robpaveza <>
Subject [GitHub] cordova-plugin-geolocation pull request: CB-9355 Fix Geolocation p...
Date Mon, 13 Jul 2015 16:11:09 GMT
Github user robpaveza commented on a diff in the pull request:
    --- Diff: src/windows/GeolocationProxy.js ---
    @@ -16,7 +16,8 @@
    --- End diff --
    In ensureLocator you should also call requestAccessAsync:
    "Starting in Windows 10 Insider Preview, call the RequestAccessAsync before accessing
the user’s location. At that time, your app must be in the foreground and RequestAccessAsync
must be called from the UI thread. Until the user grants your app permission to their location,
your app can't access location data."
        var locator = new Windows.Devices.Geolocation.Geolocator();
        var loc;
        if (typeof Windows.Devices.Geolocation.Geolocator.prototype.requestAccessAsync ===
'function')) {
            loc = locator.requestAccessAsync().then(function(result) { if (result) return
locator; });
        } else { 
            loc = WinJS.Promise.wrap(locator);

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message