Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Cordova 5.0+ Camera crash

We are using Cordova 5.0.0 and its cordova-camera-plugin

When we are testing it on Android, the app crashes when the user takes a photo. Looking at the links below, it seems that our app is being killed while the camera app it on front.

PhoneGap camera restarts the application

https://github.com/shaithana/cordova-plugin-wezka-nativecamera

While there are some answers but it seems to be outdated: The foreground camera plugin is not suitable to newer devices or Cordova and other solutions didn't work for us

Does anyone have an up-to-date solution?

like image 756
David Salzer Avatar asked Oct 19 '22 22:10

David Salzer


1 Answers

Try to use this forked cordova-android and cordova-plugin-camera.

The docs, sample and discussion on the approach used can be found in the cordova-android PR.

BTW, the PRs are going to be merged soon.

like image 195
daserge Avatar answered Oct 29 '22 19:10

daserge