NeutrinosPlatform / cordova-plugin-document-scanner

cordova plugin for document scan
https://www.neutrinos.co/
MIT License
85 stars 61 forks source link

Document Scan fails in Android #76

Closed macsupport closed 4 years ago

macsupport commented 4 years ago

Describe the bug Fails in Android after image taken with camera with

To Reproduce Steps to reproduce the behavior: Click Scan, camera opens, image taken, returning to App shows error.

Expected behavior Image should be saved

Screenshots Screenshot_1593463781

Smartphone (please complete the following information):

Additional context Code to initiate Scan:

    function successCallback(imageData) {
image = "data:image/jpeg;base64," + imageData; // Base64 rendering
document.getElementById("myImage").src = image;

   alert(imageData);

   }

    function errorCallback(message) {
    alert('Failed because: ' + message);
 }

scan.scanDoc(successCallback, errorCallback, {sourceType : 1, fileName : "Scanned_Image", quality : 1.0, returnBase64 : true});

ChrisTomAlx commented 4 years ago

Try with a real a device and see if the issue persists.

Cheers and Stay Safe :) Chris Neutrinos

macsupport commented 4 years ago

Thanks. Unfortunately, I don't have a real Android device for testing.

Addendum: In case anyone is interested, Samsung offers a way to test on real devices using their Remove Testing Lab. Was able to get scans to work using it.

ChrisTomAlx commented 4 years ago

Closing this issue. Feel free to drop a message if you want to reopen it.

Cheers and Stay Safe :) Chris Neutrinos