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

Not getting base64 string when source is Camera

Open patrickbussmann opened this issue 5 years ago • 4 comments
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

Screenshot 2019-12-05 at 21 54 44 Screenshot 2019-12-05 at 21 57 42

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

patrickbussmann avatar Dec 05 '19 22:12 patrickbussmann

Same issue here, please fix!!

danielehrhardt avatar Dec 05 '19 22:12 danielehrhardt

Fixed through #525 Related #524.

patrickbussmann avatar Dec 05 '19 22:12 patrickbussmann

I'm getting the same issue from Android

jdnichollsc avatar Dec 11 '19 06:12 jdnichollsc

I am getting this error in Android devices..samsung once i have tested? any workarround please?

SnpDeveloper avatar May 17 '21 11:05 SnpDeveloper