[ 
https://issues.apache.org/jira/browse/CB-8085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14226781#comment-14226781
 ] 

ASF GitHub Bot commented on CB-8085:
------------------------------------

GitHub user sgrebnov opened a pull request:

    https://github.com/apache/cordova-plugin-geolocation/pull/32

    CB-8085 Fix geolocation plugin on Windows

    https://issues.apache.org/jira/browse/CB-8085
    
    This patch adds keepCallback property to tell proxy preserve callback so 
that it could be invoked next time.
    
    When running on Windows Phone 8.1: added dummy 1 meter value for 
geolocator.movementThreshold to prevent the following error (no such problem  
when running on Windows 8/8.1)
    ```
    // JavaScript runtime error: Operation aborted
    // You must set the MovementThreshold property or the ReportInterval 
property before adding event handlers.
                
    ```
    
http://blogs.windows.com/buildingapps/2012/12/03/geoposition-advanced-tracking-scenarios-for-windows-phone-8/

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MSOpenTech/cordova-plugin-geolocation CB-8085

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-geolocation/pull/32.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #32
    
----
commit e3f9685993975cdc59283e4d5b0940cc293ed83b
Author: sgrebnov <v-seg...@microsoft.com>
Date:   2014-11-26T20:24:51Z

    CB-8085 Fix geolocation plugin on Windows

----


> Fix geolocation plugin on Windows
> ---------------------------------
>
>                 Key: CB-8085
>                 URL: https://issues.apache.org/jira/browse/CB-8085
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Globalization
>            Reporter: Sergey Grebnov
>            Assignee: Sergey Grebnov
>              Labels: geolocation, windows
>
> There are two issues
> 1. When I use watchPosition Api on Windows onSuccess is called only once.
> {code}
> navigator.geolocation.watchPosition(onSuccess, onError, { timeout: 30000 })
> {code}
> 2.It does not work on Windows Phone 8.1 - under debugger there is the 
> following error
> {code}
> // JavaScript runtime error: Operation aborted
> // You must set the MovementThreshold property or the ReportInterval property 
> before adding event handlers.
> // WinRT information: You must set the MovementThreshold property or the 
> ReportInterval property before adding event handlers
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to