Cordova Plugins Not Working "Ionic View" Okay with "ionic run android"


#1

Cordova plugins are not working when viewing my app on my Android device using “Ionic View”.

However, they work on the same android device using “ionic run android”.

For example, I’ve installed the following native cordova plugin:
ionic plugin add cordova-plugin-app-version

Using “ionic run android” the version displays okay.
Using “Ionic View” the version does NOT display. There are no errors/messages, etc.

“Ionic View” platform.is(‘cordova’) returns true. Non cordova features are working fine.

I’ve tried adding/removing platforms and doing an “ionic build android”.

Cordova CLI: 6.5.0
Ionic Framework Version: 2.0.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 8.1
Node Version: v7.2.1
Xcode version: Not installed


#2

cordova-plugin-app-version is not supported by Ionic View:


#3

Good documentation! I incorrectly assumed “Ionic View” supported all native cordova plugins.

Is there another way to share an app with someone for QA and NOT use Ionic View? Ionic View is really great but with this limitation we can’t use it.


#4

For Cordova plugins not supported by Ionic View you have to build the app and then distribute manually or use something like HockeyApp (my recommendation) or Testflight.