Skip to main content


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

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

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.


$ npm install cordova-plugin-camera $ npm install @ionic-native/camera $ ionic cap sync

Supported Platforms#

  • Android
  • Browser
  • iOS
  • Windows



Learn more about using Ionic Native components in React


import { Camera, CameraOptions } from '@ionic-native/camera/ngx';
constructor(private camera: Camera) { }

const options: CameraOptions = {  quality: 100,  destinationType:,  encodingType:,  mediaType:} => { // imageData is either a base64 encoded string or a file URI // If it's base64 (DATA_URL): let base64Image = 'data:image/jpeg;base64,' + imageData;}, (err) => { // Handle error});