Search code examples
cordovacameraionic-frameworkphonegap-pluginshybrid-mobile-app

Ionic with Phonegap camera Plugin


I am building a hybrid application with the ionic framework that utilizes the device's camera. I came across a custom camera overlay on github and was wondering if anyone knows how I would integrate this into my ionic application. Ionic has documented that it is possible to add in Cordova custom plugins.

Link to the plugin I wish to add:

https://github.com/performanceactive/phonegap-custom-camera-plugin


Solution

  • Ionic is based on Cordova, you can add Cordova plugin in Cordova way. Open an command prompt and navigate to your root source folder, type:

    root folder> cordova plugin add https://github.com/performanceactive/phonegap-custom-camera-plugin
    

    Or in Ionic way:

    root folder> ionic plugin add https://github.com/performanceactive/phonegap-custom-camera-plugin
    

    For detail of the CLI, please check