cordova-plugin-background-geolocation icon indicating copy to clipboard operation
cordova-plugin-background-geolocation copied to clipboard

Plugin is not installed Ionic 4

Open giuliastully opened this issue 4 years ago • 4 comments

Hi, just clicking on the start button to start tracking gives me these errors:

Native: tried calling BackgroundGeolocation.start, but the BackgroundGeolocation plugin is not installed.

Install the BackgroundGeolocation plugin: 'ionic cordova plugin add @mauron85/cordova-plugin-background-geolocation'

The plugin is installed.

What can I do?

giuliastully avatar May 11 '20 10:05 giuliastully

I had same problem problem. I used the blank starter and I added this plugin, so the project is clean. I had the plugin using: ionic cordova plugin add @mauron85/cordova-plugin-background-geolocation npm install @ionic-native/background-geolocation

Here is my environment:

Ionic CLI : 6.4.0 Ionic Framework : @ionic/angular 5.1.0 @angular-devkit/build-angular : 0.803.26 @angular-devkit/schematics : 8.3.26 @angular/cli : 8.3.26 @ionic/angular-toolkit : 2.2.0

Cordova:

Cordova CLI : 7.0.1 Cordova Platforms : android 8.1.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 5 other plugins)

How can I solve it?

enfix86 avatar May 11 '20 11:05 enfix86

I have the same problem.

It looks like there is some conflict in node_modules@ionic-native\background-geolocation
because when I search that directory I find reference to cordova-plugin-mauron85-background-geolocation plugin which is now obsolete (should be @mauron85/cordova-plugin-background-geolocation )

See https://github.com/ionic-team/ionic-native/issues/3203

@mauron85 Mozes poradit co je zle?

tSlappy avatar May 13 '20 12:05 tSlappy

I cant install it on cordova (android) too.

busaku avatar May 18 '20 10:05 busaku

i can install, but build issue looks like conflict with firebase-x plugin. But I'm not sure

SergioZhydecky avatar Jul 31 '20 12:07 SergioZhydecky