Page 1 of 1

Correct Use of Geolocation Service

Posted: Fri Jan 16, 2015 12:01 am
by Joe Bohen

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?


Correct Use of Geolocation Service

Posted: Fri Jan 16, 2015 7:22 am
by Evgene Karachevtsev

Hello Joe.

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


Correct Use of Geolocation Service

Posted: Fri Jan 16, 2015 3:54 pm
by Ihor Didevych

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);