Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Background Geolocation Plugin

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.

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

Background Geolocation Plugin

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?
Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Background Geolocation Plugin

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.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Background Geolocation Plugin

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.

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

Background Geolocation Plugin

Hello Deon,

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

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Background Geolocation Plugin

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Background Geolocation Plugin

Hello Deon,

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

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Background Geolocation Plugin

Thank you. That works

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Background Geolocation Plugin

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.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Background Geolocation Plugin

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

Return to “Issues”