cordova-plugin-camera icon indicating copy to clipboard operation
cordova-plugin-camera copied to clipboard

Taking screenshot while camera is active crashes app on android devices

Open aaronngkk opened this issue 2 years ago • 1 comments

Problem

Application restarts and crashes if user takes a screenshot while camera is active, snaps picture and presses "OK"

Command or Code

image image

Version information

OS: Android 11 node -v : 14.21.1 cordova -v : 10.0.0 ([email protected]) "cordova-plugin-camera": "^6.0.0"

Logs

image

aaronngkk avatar Jan 18 '23 02:01 aaronngkk

Potentially related to https://github.com/apache/cordova-plugin-camera/issues/679 with an open PR https://github.com/apache/cordova-plugin-camera/pull/781

If you could try testing that PR to see if it will solve your issue

cordova plugin remove cordova-plugin-camera
cordova plugin add https://github.com/dongourdet/cordova-plugin-camera.git#android-recoverable-security-exception

breautek avatar Jan 18 '23 04:01 breautek