apache / apache/cordova-plugin-camera

take photo and click so fast on take picture you will get black screen

Open
#620 0 comments 0 reactions 0 assignees View on GitHub
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?

![](https://user-images.githubusercontent.com/23274631/86618931-5ac5ae80-bfd7-11ea-9f3a-0f2737d9b9d8.gif)

## 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.