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