Skip to content

A sample Apache Cordova application that uses the canvas camera plugin.

License

Notifications You must be signed in to change notification settings

VirtuoWorks/canvascamera-cordova-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codacy Badge Libraries.io Badge

Cordova CanvasCamera Plugin Demo

A sample Apache Cordova application that uses the CanvasCamera plugin.

Supported Platforms

  • iOS
  • Android

Dependencies

  • Git
  • NodeJS
  • Apache Cordova
  • Android Studio and SDK and/or Xcode and iOS SDK

Installation

Clone the repository :

git clone https://github.com/VirtuoWorks/canvascamera-cordova-demo.git
# goto CanvasCameraDemo directory
cd canvascamera-cordova-demo

Add platforms :

Any operating system

cordova platform add android

MacOS only

cordova platform add ios

The plugin is listed as a project dependency in the npm package.json file and Cordova config.xml file.

When adding any platform, Cordova should install automatically the Canvas Camera plugin into the demo project.

You can check that the plugin has been properly installed by checking the \plugins\ directory inside your project directory.

Prepare the project :

cordova prepare

Start the application :

Any operating system

cordova run android

MacOS only

cordova run ios

If the plugin was not installed :

Try to remove Canvas Camera plugin :

cordova plugin remove com.virtuoworks.cordova-plugin-canvascamera

Try to install Canvas Camera plugin :

cordova plugin add com.virtuoworks.cordova-plugin-canvascamera && cordova prepare

Notice : This will not work after having prepared any platform while using npm >=5. The plugin is already installed as a project dependency (check your \plugins\ directory). The latest npm dependency management system uses a package-lock.json file which will prevent you from installing the plugin again.

License

This software is released under the MIT License.