How ionic uses the cordova plug-in

can the cordova plug-in be introduced directly with the script tag instead of cordova plugin add com.phonegap.plugins.barcodescanner?

Mar.04,2021

No, because this directive not only adds some js files needed in the web page, but also adds some native implementation libraries under Android, IOS and other target systems. It is not possible to add js manually.


No, this plug-in is native code, and the corresponding js code should be installed through npm install

Menu