apache / apache/cordova-plugin-camera
take photo and click so fast on take picture you will get black screen
- Dominant language
- Objective-C
- Stars
- 976
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
# Bug Report
## Problem
### What is expected to happen?
I should not get black screen if i clicked so fast while i just moving to camera.
1. camera open
2. you clicked so fast to take picture
3. you will get black screen
### What does actually happen?

## Information
Youtube video : https://youtu.be/Z04syRoI7uQ
Repo: https://github.com/indraraj26/cordova-camera-fast-click
### Command or Code
Sample code from docs
```
takePhoto: function () {
navigator.camera.getPicture(
(success) => {
console.log(success, 'camera file');
},
(err) => {
console.log(ere);
},
{
quality: 50,
destinationType: Camera.DestinationType.FILE_URI,
mediaType: Camera.MediaType.PICTURE,
sourceType: Camera.PictureSourceType.CAMERA,
},
);
},
```
### Environment, Platform, Device
Android
### Version information
cordova --version
9.0.0 (cordova-lib@9.0.1)
"cordova-android": "^8.1.0",
## Checklist
- [X] I searched for existing GitHub issues
- [X] I updated all Cordova tooling to most recent version
- [X] I included all the necessary information above
Contributor guide
Assessment
This issue has not been assessed yet.