Native Plugins: Cordova vs Ionic Native

In native docs, installation is like that:

ionic cordova plugin add cordova-plugin-appavailability
npm install @ionic-native/app-availability

I thought they are optional. So i run only “npm install @ionic-native/app-availability” and it work on local (web). But i wonder anout, Is Cordova necessary for real device or is it an alternative?

Thanks in advance.

Hi @LacOniC

Cordova plugins are necessary in order to have their functionality on a real device.

ionic-native package is just a set of wrappers to have a common interface between all Cordova plugins supported and Ionic apps.

1 Like