Camera
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
<config-file parent="NSCameraUsageDescription" platform="ios" target="*-Info.plist">
<string>You can take photos</string>
</config-file>
inside of the <platform name='ios'>
section
github.com/apache/cordova-plugin-camera
Stuck on a Cordova issue?
If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.
Installation
- Capacitor
- Cordova
- Enterprise
$ npm install cordova-plugin-camera
$ npm install @awesome-cordova-plugins/camera
$ ionic cap sync
$ ionic cordova plugin add cordova-plugin-camera
$ npm install @awesome-cordova-plugins/camera
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us
Supported Platforms
- Android
- Browser
- iOS
- Windows
Usage
React
Learn more about using Ionic Native components in React