Hello!
I wrote simple test:
Camera.getPicture().then((fileUri) => { console.debug(fileUri); }, (err) => { console.debug(err); })
When I try to run it with Android emulator, I got “Illegal argument exception”. I have attached to emulator process and see the following:
12-21 12:33:29.380: W/CordovaPlugin(2214): Attempted to send a second callback for ID: Camera1319094063
12-21 12:33:29.380: W/CordovaPlugin(2214): Result was: “Error”
I am now sure how the ionic Camera retales to Cordova, but the cordova-camera-plugin has the following interface:
camera.getPicture(successCallback, errorCallback, options)
Does it matter?
Any hints are welcome!
Thanks in advance,
AnatolyS