# Ionic-native 'plugin not installed' but 'ionic plugin add' says already installed

**URL:** <https://forum.ionicframework.com/t/ionic-native-plugin-not-installed-but-ionic-plugin-add-says-already-installed/60328>\
**Category:** ionic-v1\
**Created:** [August 12, 2016, 3:05am UTC](https://forum.ionicframework.com/t/ionic-native-plugin-not-installed-but-ionic-plugin-add-says-already-installed/60328 "2016-08-12T03:05:45Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Briends](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@Briends](https://forum.ionicframework.com/u/Briends)\
**Post date:** [August 12, 2016, 3:05am UTC](https://forum.ionicframework.com/t/ionic-native-plugin-not-installed-but-ionic-plugin-add-says-already-installed/60328/1 "2016-08-12T03:05:45Z")

</div>

Hi,

I recently switched from ngCordova to ionic-native. Mainly for camera, statusbar and network. When using the network plugin it says:

`[Warning] Native: tried calling e.connection, but the e plugin is not installed. (ionic.native.min.js, line 4) [Warning] Install the e plugin: 'ionic plugin add cordova-plugin-network-information' (ionic.native.min.js, line 4)`

or statusbar, it says:

`[Warning] Native: tried calling e.isVisible, but the e plugin is not installed. (ionic.native.min.js, line 4) [Warning] Install the e plugin: 'ionic plugin add cordova-plugin-statusbar' (ionic.native.min.js, line 4)`

The camera plugin works without a warning.

Running `ionic plugin add cordova-plugin-statusbar` or `ionic plugin add cordova-plugin-network-information` this is the output:

`$ ionic plugin add cordova-plugin-network-information Updated the hooks directory to have execute permissions Plugin "cordova-plugin-network-information" already installed on android. Plugin "cordova-plugin-network-information" already installed on ios. Saving plugin to package.json file`

It’s worth to be noted, that I installed `ionic-native` via `bower install ionic-native --save` and not `npm install ionic-native` because the `node_modules` seems not to be deployed to the app and I could not link to `ionic.native.min.js`. And I’m still using ionic 1 but with typescript.

What could be the problem here?

`$ ionic info`  
`Your system information: Cordova CLI: 6.2.0 Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic Framework Version: 1.3.1 Ionic CLI Version: 1.7.16 Ionic App Lib Version: 0.7.3 ios-deploy version: 1.8.6 ios-sim version: 5.0.6 OS: Mac OS X El Capitan Node Version: v0.12.7 Xcode version: Xcode 7.3.1 Build version 7D1014`

An example project:

`https://github.com/Briends/ionic-with-ionic-native/tree/master`

---

<div class="post-metadata">

**Author:** ![mobileAppDeveloper](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@mobileAppDeveloper](https://forum.ionicframework.com/u/mobileAppDeveloper)\
**Post date:** [August 15, 2016, 8:14am UTC](https://forum.ionicframework.com/t/ionic-native-plugin-not-installed-but-ionic-plugin-add-says-already-installed/60328/2 "2016-08-15T08:14:56Z")

</div>

Relieved I’m not the only one. I’m seeing exactly the same behavior and opened up a thread shortly before you did. Hopefully someone from the Ionic team will be able to tell us what’s going wrong here. Great that you provided a GitHub repo with the error.

---

<div class="post-metadata">

**Author:** ![Briends](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@Briends](https://forum.ionicframework.com/u/Briends)\
**Post date:** [August 16, 2016, 2:33pm UTC](https://forum.ionicframework.com/t/ionic-native-plugin-not-installed-but-ionic-plugin-add-says-already-installed/60328/3 "2016-08-16T14:33:15Z")

</div>

I filed an issue: [https://github.com/driftyco/ionic-native/issues/438](https://github.com/driftyco/ionic-native/issues/438)

---

<div class="post-metadata">

**Author:** ![Briends](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@Briends](https://forum.ionicframework.com/u/Briends)\
**Post date:** [August 23, 2016, 11:43am UTC](https://forum.ionicframework.com/t/ionic-native-plugin-not-installed-but-ionic-plugin-add-says-already-installed/60328/4 "2016-08-23T11:43:43Z")

</div>

For me, this comment by github-user `ihadeed` solved the problem:

> In what sequence did you list the JavaScript files in your index.html?
> 
> The correct order is:
> 
> - cordova.js
> - ionic native
> - your app’s code

I solved it by putting cordova.js as the first import.

---

<div class="post-metadata">

**Author:** ![johncl](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@johncl](https://forum.ionicframework.com/u/johncl)\
**Post date:** [November 30, 2016, 7:48am UTC](https://forum.ionicframework.com/t/ionic-native-plugin-not-installed-but-ionic-plugin-add-says-already-installed/60328/5 "2016-11-30T07:48:34Z")

</div>

I guess this solution is obsolete with ionic native added by default in the latest RC of Ionic2. At least in my index.html there is no longer any javascript that loads ionic native. I can see a dependency to ionic-native in package.json though.

I am unable to get the cordova-plugin-nativeaudio to work though. I get the error “plugin\_not\_installed” from the Promise when I am trying to call the NativeAudio.preloadSimple().

I did use this command:

`ionic plugin add cordova-plugin-nativeaudio --save`

And that did add the plugin to the plugins folder as well as the config.xml. Also this seems to work fine:

`import { NativeAudio } from 'ionic-native';`

So it can access the NativeAudio object and I am able to call the preloadSimple function. But it fails with “plugin\_not\_installed” when running it on a device (Android).

---

<div class="post-metadata">

**Author:** ![alex\_pl](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/alex_pl/32/102166_2.png) [@alex\_pl](https://forum.ionicframework.com/u/alex_pl)\
**Post date:** [February 11, 2017, 10:39pm UTC](https://forum.ionicframework.com/t/ionic-native-plugin-not-installed-but-ionic-plugin-add-says-already-installed/60328/6 "2017-02-11T22:39:59Z")

</div>

I have the same problem on Android and iOS using the plugin InAppPurchase. I re installed it several times, deleting the www/, plugins/ and platforms/ folders, didn’t help.

Would be great to have a solution for that.

`window.inAppPurchase` is available but Ionic Native doesn’t recognize it.

---

<div class="post-metadata">

**Author:** ![alex\_pl](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/alex_pl/32/102166_2.png) [@alex\_pl](https://forum.ionicframework.com/u/alex_pl)\
**Post date:** [February 11, 2017, 10:55pm UTC](https://forum.ionicframework.com/t/ionic-native-plugin-not-installed-but-ionic-plugin-add-says-already-installed/60328/7 "2017-02-11T22:55:17Z")

</div>

I was able to solve the problem now. I was using the plugin in the constructor of a service and therefore had to wait for the `Platform.ready()` event. Hope that helps you too! 🙂

---

<div class="post-metadata">

**Author:** ![arlevi](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@arlevi](https://forum.ionicframework.com/u/arlevi)\
**Post date:** [August 20, 2017, 12:40pm UTC](https://forum.ionicframework.com/t/ionic-native-plugin-not-installed-but-ionic-plugin-add-says-already-installed/60328/8 "2017-08-20T12:40:03Z")

</div>

how do you wait for `Platform.ready()` across/inside the components ?

---

<div class="post-metadata">

**Author:** ![Bbdangar](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bbdangar/32/110874_2.png) [@Bbdangar](https://forum.ionicframework.com/u/Bbdangar)\
**Post date:** [December 27, 2017, 5:25am UTC](https://forum.ionicframework.com/t/ionic-native-plugin-not-installed-but-ionic-plugin-add-says-already-installed/60328/9 "2017-12-27T05:25:48Z")

</div>

can you show index.html file with correct order?

---

<div class="post-metadata">

**Author:** ![danialdaliry](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@danialdaliry](https://forum.ionicframework.com/u/danialdaliry)\
**Post date:** [January 23, 2018, 7:17pm UTC](https://forum.ionicframework.com/t/ionic-native-plugin-not-installed-but-ionic-plugin-add-says-already-installed/60328/10 "2018-01-23T19:17:58Z")

</div>

I have like this problem with camera plugin in ionic and i install cordova and native plugin

---

<div class="post-metadata">

**Author:** ![pefaur](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@pefaur](https://forum.ionicframework.com/u/pefaur)\
**Post date:** [February 23, 2018, 3:39am UTC](https://forum.ionicframework.com/t/ionic-native-plugin-not-installed-but-ionic-plugin-add-says-already-installed/60328/11 "2018-02-23T03:39:52Z")

</div>

Yes, You must initialize the plugin after cordova is ready:

```auto
import {Component} from '@ angular / core';
import {Platform} from 'ionic-angular';

@Component ({...})
export MyApp {
   constructor (public plt: Platform) {
     this.plt.ready (). then ((readySource) => {
       // initialize plugin
     });
   }
}

```

---

<div class="post-metadata">

**Author:** ![montesleo](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@montesleo](https://forum.ionicframework.com/u/montesleo)\
**Post date:** [April 26, 2018, 8:35pm UTC](https://forum.ionicframework.com/t/ionic-native-plugin-not-installed-but-ionic-plugin-add-says-already-installed/60328/12 "2018-04-26T20:35:59Z")

</div>

I was frustrated with this issue for a couple hours… in my case, it seems to be an XCode issue.

1. Close XCode
2. ionic cordova build platform iOS
3. re-open XCode
4. Works!

Xcode 9.3

cli packages:

```
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0

```

global packages:

```
cordova (Cordova CLI) : 8.0.0

```

local packages:

```
@ionic/app-scripts : 1.3.7
Cordova Platforms : ios 4.5.4
Ionic Framework : ionic-angular 3.4.2

```

System:

```
ios-deploy : 1.9.2
Node : v8.4.0
npm : 5.7.1
OS : macOS High Sierra
Xcode : Xcode 9.3 Build version 9E145

```

Environment Variables:

```
ANDROID_HOME : not set

```

Misc:

```
backend : pro
```

---

<div class="post-metadata">

**Author:** ![pantarmj](https://avatars.discourse-cdn.com/v4/letter/p/22d042/32.png) [@pantarmj](https://forum.ionicframework.com/u/pantarmj)\
**Post date:** [June 7, 2018, 3:54am UTC](https://forum.ionicframework.com/t/ionic-native-plugin-not-installed-but-ionic-plugin-add-says-already-installed/60328/13 "2018-06-07T03:54:56Z")

</div>

I also was frustrated with this issue, closing and reopening the xcode (by shutting down the system without reopen windows in Mac) worked for me… really really thanks dear

---

<div class="post-metadata">

**Author:** ![icchio](https://avatars.discourse-cdn.com/v4/letter/i/f1d935/32.png) [@icchio](https://forum.ionicframework.com/u/icchio)\
**Post date:** [June 28, 2018, 4:38pm UTC](https://forum.ionicframework.com/t/ionic-native-plugin-not-installed-but-ionic-plugin-add-says-already-installed/60328/14 "2018-06-28T16:38:12Z")

</div>

Hi, i have the same problem with firebase…testing it on Ionic DevApp i get the error plugin not installed. same error also with push plugin…  
I had tried also with montesleo solution but nothing change…any idea?

![52](https://global.discourse-cdn.com/ionicframework/original/3X/f/1/f19d3390c16d91023ccb77fcb6faef3c929fb4fe.png)
