When using the camera on android my cordova app is killed and restarted after the camera is closed. This happens because of the android lifecycle described here:
https://cordova.apache.org/docs/en/latest/guide/platforms/android/#lifecycle-guide
I don’t like the solution described in the document because I think using the camera should be an inapp action and not close and restart the app.
I also tried the following plugin: https://github.com/zebra1024/cordova-plugin-wezka-nativecamera but it doesn’t work for me at all.
Does someone knows a working solution for the problem?
BTW.: If you use the camera plugin in your app you should activate Don't keep activities
in the Developer options -> Advanced
and try the camera. If it doesn’t work your app may won’t work on some android devices. We saw it on hawei devices most of the time.