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:
Create a new ionic/vue starter project
Follow the installation & usage instructions for cordova-plugin-document-scanner
Sync and run for android
Build from Android Studio
Activate Document Scanner
Take Picture
Select Picture
Error appears in console
Expected behavior
The document scanner to load the camera with edge detection and return either the url or base64 image
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:
Expected behavior
The document scanner to load the camera with edge detection and return either the url or base64 image
Smartphone:
Emulated
Physical
Additional context
The issue can't be reproduced on iOS