Ionic 2 geolocation on Android

So I’ve just moved everything from one project to a new build to clean out to try and fix packages, but Geolocation on Android won’t fire as I can’t get the permission to work?

This is with the latest packages:

    "@angular/common": "2.4.8",
    "@angular/compiler": "2.4.8",
    "@angular/compiler-cli": "2.4.8",
    "@angular/core": "2.4.8",
    "@angular/forms": "2.4.8",
    "@angular/http": "2.4.8",
    "@angular/platform-browser": "2.4.8",
    "@angular/platform-browser-dynamic": "2.4.8",
    "@angular/platform-server": "2.4.8",
    "@ionic/cloud-angular": "^0.11.0",
    "@ionic/storage": "^2.0.0",
    "angularfire2": "^2.0.0-beta.8",
    "firebase": "^3.7.1",
    "ionic-angular": "2.2.0",
    "ionic-native": "^2.8.1",
    "ionicons": "3.0.0",
    "rxjs": "5.0.1",
    "sw-toolbox": "3.4.0",
    "zone.js": "0.7.2"

Have tried:

  • Of course, npm install ionic native
  • reinstalling android platform @latest
  • Adding permissions in manifest

Nothing seems to be working. Any adivce?

same problem with me :frowning:

Hi@Nicksmith1
Did you install the plugin correctly?

ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION="To locate you"
npm install --save @ionic-native/geolocation