# Plugin not instaled - Diagnostic

**URL:** <https://forum.ionicframework.com/t/plugin-not-instaled-diagnostic/115741>\
**Category:** Ionic Native\
**Created:** [December 18, 2017, 4:51pm UTC](https://forum.ionicframework.com/t/plugin-not-instaled-diagnostic/115741 "2017-12-18T16:51:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tammaroivan](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@tammaroivan](https://forum.ionicframework.com/u/tammaroivan)\
**Post date:** [December 18, 2017, 4:51pm UTC](https://forum.ionicframework.com/t/plugin-not-instaled-diagnostic/115741/1 "2017-12-18T16:51:10Z")

</div>

Hello! Im trying to use @ionic-native/diagnostic , specifically diagnostic.isLocationEnabled, when I try it from my android smartphone the promise returns me **“plugin\_not\_installed”**

In cordova plugin list i get:

`cordova.plugins.diagnostic 3.7.2 "Diagnostic"`

In config.xml I have

`<plugin name = "cordova.plugins.diagnostic" spec = "^ 3.7.2" />`

I tried to put it also inside

`platform.ready (). then (...`

But I keep getting the same error

In the constructor im doing

> this.plt.ready().then( ()=\> {  
> this.diagnostic.isLocationEnabled()  
> .then((state) =\> {  
> if(state){  
> this.locationState=true;  
> } else {  
> this.locationState=false;  
> }  
> }).catch(e =\> {this.presentAlert(JSON.stringify(e));this.locationState=false;});  
> });

presentAlert is for show the error in a alert

package.json

```auto
{
  "name": "compras",
  "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": "5.0.3",
    "@angular/compiler": "5.0.3",
    "@angular/compiler-cli": "5.0.3",
    "@angular/core": "5.0.3",
    "@angular/forms": "5.0.3",
    "@angular/http": "5.0.3",
    "@angular/platform-browser": "5.0.3",
    "@angular/platform-browser-dynamic": "5.0.3",
    "@ionic-native/core": "4.4.0",
    "@ionic-native/diagnostic": "^4.5.2",
    "@ionic-native/geolocation": "^4.5.2",
    "@ionic-native/splash-screen": "4.4.0",
    "@ionic-native/status-bar": "4.4.0",
    "@ionic/pro": "1.0.16",
    "@ionic/storage": "2.1.3",
    "cordova-android": "^6.3.0",
    "cordova-plugin-device": "^1.1.7",
    "cordova-plugin-geolocation": "^3.0.0",
    "cordova-plugin-ionic-webview": "^1.1.16",
    "cordova-plugin-splashscreen": "^4.1.0",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova.plugins.diagnostic": "^3.7.2",
    "diagnostic": "0.0.1",
    "ionic": "^3.19.0",
    "ionic-angular": "3.9.2",
    "ionic-native": "^2.9.0",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionicons": "3.0.0",
    "rxjs": "5.5.2",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.1.5",
    "typescript": "2.4.2"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-geolocation": {
        "GEOLOCATION_USAGE_DESCRIPTION": "geoLocation"
      },
      "ionic-plugin-keyboard": {},
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova.plugins.diagnostic": {}
    },
    "platforms": [
      "android"
    ]
  }
}

```

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:59pm UTC](https://forum.ionicframework.com/t/plugin-not-instaled-diagnostic/115741/2 "2021-07-19T21:59:00Z")

</div>

Closed on July 19, 2021, 9:59pm UTC


