Help it Doesn't Work!! - transistorsoft/cordova-background-geolocation-lt GitHub Wiki
Try the SampleApp
Often 3rd-party plugins installed in your app are badly behaved (eg: PhoneGap/PushPlugin
) and cause dependency issues. Try installing the SampleApp to isolate this plugin from issues caused by other plugins.
Once you get the SampleApp booted successfully, add your 3rd-party plugins, one-by-one, to the SampleApp to see which one is causing the problem.
You need to get out in the field and move
-
on iOS, background tracking won't be engaged until you travel about 2-3 city blocks, so go for a walk or car-ride (or use the Simulator with Debug->Location->City Drive)
-
Android is much quicker detecting movements; typically several meters of walking will do it.
When in doubt, remove & re-install the plugin and platform
// Remove & re-add the plugin
$ cordova plugin remove com.transistorsoft.cordova.background-geolocation
$ cordova plugin add https://github.com/transistorsoft/cordova-background-geolocation-lt.git
// Remove, re-add and re-build your platform
$ cordova platform remove ios
$ cordova platform add ios
$ cordova build ios
Android SDK Manager
Have you got the correct Android SDKs installed, especially Google Play Services?