Ionic/Cordova: How to integrate Cordova Plugins into existing Ionic project?

后端 未结 7 2394
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-19 07:05

I have an Ionic project where I need the Cordova Camera plugin (which I now installed successfully). But in my project the Camera API is still not available, i.e. I get error th

7条回答
  •  孤街浪徒
    2021-02-19 07:27

    Open a terminal in your app's root directory and add the plugin via

    cordova plugin add org.apache.cordova.camera
    

    Edit:
    the new command is:

    cordova plugin rm cordova-plugin-camera //remove
    cordova plugin add cordova-plugin-camera //add
    

提交回复
热议问题