Cordova background geolocation

We have a location based cross platform app built using
Ionic. We had built the ability to receive notifications based on the
user location using the christocracy plugin at : https://github.com/christocracy/cordova-plugin-background-geolocation.

Unfortunately, this works only when the app is open. Besides, there
is a display in the android drawer that background location is on.

We are unable to find an option where we can obtain user location
even after the app is closed and serve notifications based on the users
location. Pls suggest any solution or plugin which can solve our purpose

Hi, plugin author of cordova-background-geolocation.

“Unfortunately, this works only when the
app is open. Besides, there
is a display in the android drawer that >background location is on.”

This is not true. The plugin uses an Android service separated from the foreground Activity to send the geolocations directly to your server via configured #url. I think what you meant to say was “the javascript callback is not executed”

However, I recently released a premium version where Android now behaves exactly as you desire, where each received geolocation is now sent along to your Javascript callback.

http://christocracy.github.io/cordova-background-geolocation

1 Like

Hi Chris,

How does the “premium” version behave on Windows Phone?
Is the same functionality supported? Is it as performant / battery friendly?

Thanks,
Koen

My link above to my cordova-background-geolocation plugin is 404 since I upgraded my github account to Organisation

cordova-background-geolocation