NeutrinosPlatform / cordova-plugin-document-scanner

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

Scanning is not working on android 10 #86

Closed scramatte closed 3 years ago

scramatte commented 3 years ago

Hello,

When I run plugin with cordova 10 on Android 10 the plugin open camera native view instead of embedded view in cordova app.

I need to make a shot and so it come back to cordova app and show black screen with folder button and camara button on bottom. From now, If I choose a photo from file it works. Camera still not working.

Scanning is not working. Not that use Framework7 + vue

To Reproduce Just install cordova plugin Make a button with click event handler with following code

scan.scanDoc((imgData) => {
          console.log(imageData)
          app.dialog.alert('done')
        }, (message) => {
          app.dialog.alert(message)
          console.err(message)
        }, {
          sourceType : 1,
          fileName : "myfile",
          quality : 2.5,
          returnBase64 : true
        });

Expected behavior Get abiltity to scan documents

Screenshots

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

chandruBalamurugan1995 commented 3 years ago

i have same issue it will work on android 8.0.0 but we cannot use no more, cause playstore change target sdk version.

ChrisTomAlx commented 3 years ago

Is this a duplicate of #82 or #74? If so please close the issue and put your comments under the appropriate issue.

Cheers and have a nice day :) Chris Neutrinos

scramatte commented 3 years ago

Looks same problem as in #74 but is not clear.