mauron85 / cordova-plugin-background-geolocation

Background and foreground geolocation plugin for Cordova.
Apache License 2.0
538 stars 407 forks source link

Plugin is not installed Ionic 4 #697

Open giuliastully opened 4 years ago

giuliastully commented 4 years ago

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?

enfix86 commented 4 years ago

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?

tSlappy commented 4 years ago

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?

busaku commented 4 years ago

I cant install it on cordova (android) too.

SergioZhydecky commented 4 years ago

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