awesome-cordova-plugins/docs/plugins/camera/README.md

33 lines
875 B
Markdown
Raw Normal View History

2021-09-29 20:09:02 +08:00
# Camera
```
$ ionic cordova plugin add cordova-plugin-camera
2021-09-29 21:19:55 +08:00
$ npm install @awesome-cordova-plugins/camera
2021-09-29 20:09:02 +08:00
```
2021-09-29 21:19:55 +08:00
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/camera/)
2021-09-29 20:09:02 +08:00
Plugin Repo: [https://github.com/apache/cordova-plugin-camera](https://github.com/apache/cordova-plugin-camera)
Take a photo or capture video.
Requires the Cordova plugin: `cordova-plugin-camera`. For more info, please see the [Cordova Camera Plugin Docs](https://github.com/apache/cordova-plugin-camera).
[Warning] Since IOS 10 the camera requires permissions to be placed in your config.xml add
```xml
<config-file parent="NSCameraUsageDescription" platform="ios" target="*-Info.plist">
<string>You can take photos</string>
</config-file>
```
inside of the <platform name='ios> section
## Supported platforms
- Android
- Browser
- iOS
- Windows
2021-09-29 20:38:45 +08:00