Ionic-native: Background Geolocation , plugin_not_installed

Created on 6 Nov 2017  路  7Comments  路  Source: ionic-team/ionic-native

I'm submitting a ... (check one with "x")
[X] bug report
[ ] feature request

Current behavior:

Hi, I have added Background Geolocation plugin from "ionic plugin add cordova-plugin-mauron85-background-geolocation" and updated my android platform. But still i am receiving errors and warnings as "Native: tried calling BackgroundGeolocation.configure, but the BackgroundGeolocation plugin is not installed." and "Error on Background Geolocation , plugin_not_installed" on running.

I am using latest @ionic-native/[email protected]
and

Thanks

Expected behavior:

Steps to reproduce:

Related code:

insert any relevant code here

Other information:

package.json info:

{
    "name": "test",
    "version": "0.0.1",
    "author": "Ionic Framework",
    "homepage": "http://ionicframework.com/",
    "private": true,
    "scripts": {
        "clean": "ionic-app-scripts clean",
        "build": "ionic-app-scripts build",
        "lint": "ionic-app-scripts lint",
        "ionic:build": "ionic-app-scripts build",
        "ionic:serve": "ionic-app-scripts serve"
    },
    "dependencies": {
        "@angular/common": "^4.4.4",
        "@angular/compiler": "^4.4.4",
        "@angular/compiler-cli": "^4.4.4",
        "@angular/core": "^4.4.4",
        "@angular/forms": "^4.4.4",
        "@angular/http": "^4.4.4",
        "@angular/platform-browser": "^4.4.4",
        "@angular/platform-browser-dynamic": "^4.4.4",
        "@ionic-native/background-geolocation": "4.3.3",
        "@ionic-native/camera": "4.3.3",
        "@ionic-native/core": "^4.3.3",
        "@ionic-native/geolocation": "^4.3.3",
        "@ionic-native/in-app-browser": "4.3.3",
        "@ionic-native/splash-screen": "4.3.3",
        "@ionic-native/status-bar": "4.3.3",
        "@ionic/storage": "2.0.1",
        "@ngx-translate/core": "8.0.0",
        "@ngx-translate/http-loader": "^2.0.0",
        "cordova-android": "^6.3.0",
        "cordova-ios": "^4.5.3",
        "cordova-plugin-add-swift-support": "^1.7.0",
        "cordova-plugin-device": "^1.1.6",
        "cordova-plugin-inappbrowser": "^1.7.1",
        "cordova-plugin-ionic": "^2.0.3",
        "cordova-plugin-mauron85-background-geolocation": "^2.3.2",
        "cordova-plugin-splashscreen": "^4.0.3",
        "cordova-plugin-statusbar": "^2.2.3",
        "cordova-plugin-whitelist": "^1.3.2",
        "ionic-angular": "^3.8.0",
        "ionic-plugin-keyboard": "^2.2.1",
        "ionicons": "3.0.0",
        "rxjs": "5.4.3",
        "sw-toolbox": "3.6.0",
        "zone.js": "0.8.18"
    },
    "devDependencies": {
        "@ionic/app-scripts": "^3.0.1",
        "typescript": "2.3.4"
    },
    "description": "An Ionic project",
    "cordova": {
        "plugins": {
            "cordova-plugin-device": {},
            "cordova-plugin-splashscreen": {},
            "cordova-plugin-statusbar": {},
            "cordova-plugin-whitelist": {},
            "ionic-plugin-keyboard": {},
            "cordova-plugin-ionic": {
                "APP_ID": "9rrr671u",
                "CHANNEL_NAME": "Master",
                "UPDATE_METHOD": "background",
                "UPDATE_API": "https://api.ionicjs.com",
                "MAX_STORE": "2"
            },
            "cordova-plugin-inappbrowser": {},
            "cordova-plugin-mauron85-background-geolocation": {
                "ICON": "@mipmap/icon",
                "SMALL_ICON": "@mipmap/icon",
                "ACCOUNT_NAME": "@string/app_name",
                "ACCOUNT_LABEL": "@string/app_name",
                "ACCOUNT_TYPE": "$PACKAGE_NAME.account",
                "CONTENT_AUTHORITY": "$PACKAGE_NAME",
                "ALWAYS_USAGE_DESCRIPTION": "This app always requires location tracking"
            }
        },
        "platforms": [
            "android",
            "ios"
        ]
    },
    "config": {
        "ionic_rollup": "./config/rollup.config.js"
    }
}

Most helpful comment

It works.

What did you do to work?? I am having same issue here (again).

All 7 comments

did you figure out at the end? Since this repo has 0 support, and I have the same issue.

Any news on this? I've got the same issue.

I believe it will only work if you run your application natively.
E.g.: ionic cordova run ios (or android if you have android)

It works.

And how did u make it work? Just to help others a bit...

I have the same issue, but only running with

ionic cordova run android --prod --opimizejs --minifyjs --minifycss --device

On debug it works fine

It works.

What did you do to work?? I am having same issue here (again).

Was this page helpful?
0 / 5 - 0 ratings