Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Correct Use of Geolocation Service

Hi,
I have added a GeoLocationService to my app and I call the service in the usual way get_gps_data.execute({}) I am setting the WatchPosition property to true in the before before send mapping. This works great no problem the device reacts to the watch and plots the data in the success event as required.

The question is how to properly stop the service and clear the watch event? In cordova the WatchPositon Id is saved and past back into the stop event but how doe's the service handle this?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Correct Use of Geolocation Service

Hello Joe.

We are working on it and will get back to you with the update.

Ihor Didevych
Posts: 0
Joined: Wed Nov 19, 2014 7:55 pm

Correct Use of Geolocation Service

Hello Joe,

WatchID of geolocation service is written into appropriate properties. You can use geolocationServiceName.watchID for stop the service: navigator.geolocation.clearWatch(geolocationServiceName.watchID);

Return to “Issues”