Github user robpaveza commented on a diff in the pull request:
https://github.com/apache/cordova-plugin-geolocation/pull/45#discussion_r34479855
--- 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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]