Problem with BackgroundGeoLocation


#1

I was normally using the plugin, but now it has stopped working, every time I run it on Android, it returns this message:

main.js:1 Native: tried calling BackgroundGeolocation.configure, but the BackgroundGeolocation plugin is not installed.
x @ main.js:1
main.js:1 Install the BackgroundGeolocation plugin: ‘ionic plugin add cordova-plugin-mauron85-background-geolocation’

The problem is that the plugin is installed, it usually appears when I type cordova plugin list.

Has anyone ever had this problem?


#2

which plugin you using? im using cordova-plugin-geolocation version=“2.4.0” its work fine for me .Just tried to reinstall the plugin. And also check your cordova version


#3

The problem is not in the Gelocation plugin but in the BackgroundGeolocation plugin. I am using the following versions of both plugins:

Cordova-plugin-mauron85-background-geolocation 2.2.5 “CDVBackgroundGeolocation”

Cordova-plugin-geolocation 2.4.1 “Geolocation”


#4

why you need to use BackgroundGeolocation plugin? if you need to send the information in background mode,you can use cordovaBackground plugin


#5

Why do I need to monitor the user’s position every minute even though the application is in the background, and the ionic 2 documentation speaks to use this plugin … but I’m going to take a look at that Background Cordova you said … If it would be to use Geolocation.watch or something like that right? In conjunction with the cordova background plugin?


#6

im just using this plugin “https://github.com/katzer/cordova-plugin-background-mode” to work my app in background.
And enabled background mode like this cordova.plugins.backgroundMode.enable(); in my app.js. in my case i need to send my users location in every 5 minute so i am using watchoptions for do so