Page 1 of 2

Background Geolocation Plugin

Posted: Wed Jan 20, 2016 2:37 pm
by Deon

Hi

I have installed this plugin. It works great but......

  1. How do I stop it?

  2. How do I write the Lat and Lng of each plot to the database. There is little point tracking yourself if you cant store the route.

    This is what I have tried.

    The code var newPoint = {lat:data.coords.latitude, lng:data.coords.longitude} returns an object. I can get the values of Lat or Lng from this.


Background Geolocation Plugin

Posted: Wed Jan 20, 2016 5:23 pm
by Evgene Karachevtsev

Hello Deon,

  1. Unfortunately only manually stop the app from the application manager on the device.
  2. Could you please specify the question if you can get your Lat and Lng?

Background Geolocation Plugin

Posted: Thu Jan 21, 2016 6:41 am
by Deon

Hi Evgene

  1. Why do you guys then even publish the brackground plugin the?. Who would want an app that you have to stop manually. Total Waste of time.

  2. Simple , I want to store the route in the database, with the Latitude and Longitude stored in seperate fields. I need to retrieve this information. Again, if that is not possible, what is the point. who would want to track a route but not be able to store it? Does not make sense.


Background Geolocation Plugin

Posted: Thu Jan 21, 2016 8:06 am
by Deon

Ok, I have managed to sort out issue no. 2. I have added mapping on success back to the geolocation (documentation says to remove the mapping) service and simply map the co-ords to storage variable.

Still need to find a solution for problem 1.
Just to let you know. No apps out there has this problem. They all alow you turn off the tracking. That makes complete sense.


Background Geolocation Plugin

Posted: Thu Jan 21, 2016 2:54 pm
by Evgene Karachevtsev

Hello Deon,

Could you please specify what is the plugin you are referring to?


Background Geolocation Plugin

Posted: Mon Jan 25, 2016 5:50 am
by Deon

Hi
It is the Cordova Backgound Plugin. You have a blog/tutorial about it to track your route in background mode.

https://blog.appery.io/2015/12/how-to...

I need to press a button to disable background mode.

Thanks


Background Geolocation Plugin

Posted: Mon Jan 25, 2016 5:30 pm
by Serhii Kulibaba

Hello Deon,

Please use:precordova.plugins.backgroundMode.disable();/pre
for that. More information here: https://github.com/katzer/cordova-plu...


Background Geolocation Plugin

Posted: Thu Feb 11, 2016 1:10 am
by Deon

Thank you. That works


Background Geolocation Plugin

Posted: Thu Feb 11, 2016 1:12 am
by Deon

Hi

This plugin was was working perfectly but now only shows a blue google map and crashes the app. I have to force the app to stop.

No changes were made except adding the but to disable background mode when clicked.

This happens all the time. Things work then all of a sudden they dont work. ENDLESS PROBLEMS.


Background Geolocation Plugin

Posted: Thu Feb 11, 2016 1:56 am
by Deon

Nope app is still running. It seems only a part of it is stopped something else needs to be stopped as well.