cordova-plugin-camera
cordova-plugin-camera copied to clipboard
Not getting base64 string when source is Camera
trafficstars
Bug Report
Problem
What is expected to happen?
I get a base64 encoded string of the picture from the camera.
What does actually happen?
I get an empty string.
Information

Command or Code
navigator.camera.getPicture(function(a, b, c) { console.log('OK', a, b, c); }, function(a, b, c) { console.log('ERR', a, b, c); }, {destinationType: navigator.camera.DestinationType.DATA_URL, sourceType: navigator.camera.PictureSourceType.CAMERA})
Results in:
OK - "" - undefined - undefined
Environment, Platform, Device
iOS 13.1.3 iPhone 11 Pro
Version information
Cordova: 9.0.0 ([email protected]) cordova-plugin-camera: 4.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
Same issue here, please fix!!
Fixed through #525 Related #524.
I'm getting the same issue from Android
I am getting this error in Android devices..samsung once i have tested? any workarround please?