[
https://issues.apache.org/jira/browse/CB-9355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14624868#comment-14624868
]
ASF GitHub Bot commented on CB-9355:
------------------------------------
Github user robpaveza commented on a diff in the pull request:
https://github.com/apache/cordova-plugin-geolocation/pull/45#discussion_r34479900
--- Diff: src/windows/GeolocationProxy.js ---
@@ -142,8 +143,8 @@ module.exports = {
Windows.Devices.Geolocation.PositionAccuracy.high :
Windows.Devices.Geolocation.PositionAccuracy.default;
- if (cordova.platformId == 'windows' && WinJS.Utilities.isPhone) {
- // on Windows Phone 8.1 'positionchanged' event fails with
error below if movementThreshold is not set
+ if (cordova.platformId == 'windows' && (WinJS.Utilities.isPhone ||
isWin10)) {
+ // on Windows Phone 8.1 and Windows 10 'positionchanged' event
fails with error below if movementThreshold is not set
--- End diff --
We should just always set the movementThreshold property. It exists for
Windows 8 according to the documentation.
> Fix Geolocation plugin start watch fail related to unset MovementThreshold on
> Windows 10
> ----------------------------------------------------------------------------------------
>
> Key: CB-9355
> URL: https://issues.apache.org/jira/browse/CB-9355
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Geolocation
> Environment: Windows 10
> Reporter: Sergey Shakhnazarov
>
> Mobilespec, Cordova Geolocation Plugin ->Start Watching Location:
> {noformat}
> Exception calling native with command :: Geolocation :: addWatch ::exception=
> WinRTError: Operation aborted You must set the MovementThreshold property or
> the ReportInterval property before adding event handlers.
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]