Camera
1
$ ionic cordova plugin add cordova-plugin-camera
2
$ npm install @awesome-cordova-plugins/camera
Copied!
Take a photo or capture video.
Requires the Cordova plugin: cordova-plugin-camera. For more info, please see the Cordova Camera Plugin Docs.
[Warning] Since IOS 10 the camera requires permissions to be placed in your config.xml add
1
<config-file parent="NSCameraUsageDescription" platform="ios" target="*-Info.plist">
2
<string>You can take photos</string>
3
</config-file>
Copied!
inside of the <platform name='ios> section

Supported platforms

  • Android
    • Browser
    • iOS
    • Windows