UNPKG

1.01 kBMarkdownView Raw
1<a style="float:right;font-size:12px;" href="http://github.com/ionic-team/ionic-native/edit/master/src/@ionic-native/plugins/camera/index.ts#L121">
2 Improve this doc
3</a>
4
5# Camera
6
7```
8$ ionic cordova plugin add cordova-plugin-camera
9$ npm install @ionic-native/camera
10```
11
12## [Usage Documentation](https://ionicframework.com/docs/native/camera/)
13
14Plugin Repo: [https://github.com/apache/cordova-plugin-camera](https://github.com/apache/cordova-plugin-camera)
15
16Take a photo or capture video.
17
18Requires the Cordova plugin: `cordova-plugin-camera`. For more info, please see the [Cordova Camera Plugin Docs](https://github.com/apache/cordova-plugin-camera).
19
20[Warning] Since IOS 10 the camera requires permissions to be placed in your config.xml add
21```xml
22<config-file parent="NSCameraUsageDescription" platform="ios" target="*-Info.plist">
23 <string>You can take photos</string>
24</config-file>
25```
26inside of the <platform name='ios> section
27
28## Supported platforms
29
30- Android
31 - Browser
32 - iOS
33 - Windows
34
35
36