Using background geo location plugin?

Hi all!
I’m trying to use the BackgroundGeoLocation plugin with ionicframework. It’s usage says that it creates an object window.plugins.backgroundGeoLocation, however, after installing, this object is undefined whenever i run the code.
Has anyone ever dealt with this and can give some counsel?
Thanks everyone!

1 Like

@caleb_dre i have put the initialization code into $ionicPlatform.ready(), there it initializes correctly.

Do you have good results on android with Background geolocation plugin? do you have any tips or code to share?

Thank you !! :smile:

Have you seen it wraps the plugin your using in a service so it’s easy to use. I think it will work much better then trying to use the plugin directly because cordova plugins are usually not made with angular in mind.

1 Like