Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android - Document Scanner not working from device camera #98

Open
ShaneLucy opened this issue Apr 12, 2021 · 3 comments
Open

Android - Document Scanner not working from device camera #98

ShaneLucy opened this issue Apr 12, 2021 · 3 comments

Comments

@ShaneLucy
Copy link

Describe the bug

When loading the document scanner on Android with source type set to 1, the camera loads without support for detecting document edges and after taking a picture the document scanner closes with the following error Incorrect result or user canceled the action

With source type set to 1, so that the image is being loaded from the file system, the document scanner works as expected.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new ionic/vue starter project
  2. Follow the installation & usage instructions for cordova-plugin-document-scanner
  3. Sync and run for android
  4. Build from Android Studio
  5. Activate Document Scanner
  6. Take Picture
  7. Select Picture
  8. Error appears in console

Expected behavior

The document scanner to load the camera with edge detection and return either the url or base64 image

Smartphone:

Emulated

  • Device: Pixel 3a
  • OS: Android 11
  • Browser: Brave
  • Version: 1.20.103
  • Ionic native/core Version: 5.31.1
  • Ionic-vue Version: 5.4.0
  • Cordova Plugin Document Scanner: 4.2.6
  • Capacitor Core & Android Version: 2.4.7

Physical

  • Device: Samsung Galaxy S9
  • OS: Android 10
  • Browser: Brave
  • Version: 1.20.103
  • Ionic native/core Version: 5.31.1
  • Ionic-vue Version: 5.4.0
  • Cordova Plugin Document Scanner: 4.2.6
  • Capacitor Core & Android Version: 2.4.7

Additional context

The issue can't be reproduced on iOS

@ChrisTomAlx
Copy link
Collaborator

Hey
Could you try with the beta version, follow the steps here

Cheers,
Chris
Neutrinos

@RagasaSP
Copy link

RagasaSP commented Nov 25, 2021

Any update on this? Happens to me right now.

My app was working without problem and this error started to appear out of nowhere.

@marco-itlabs
Copy link

Hey Could you try with the beta version, follow the steps here

Cheers, Chris Neutrinos

We faced the same issue on some Android devices.
Updating to plugin version to 5.0.0-beta.1 seems to solve the problem. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants