Skip to content

Incorrect result or user canceled the action - Document Scanner Plugin #114

@thetaapps02-ops

Description

@thetaapps02-ops

Bug Report

Plugin:
cordova-plugin-document-scanner

Platform:

  • Android

Environment:

  • Ionic version: 7.2.1
  • Cordova CLI: 12.0.0
  • Cordova Android: 14
  • Android SDK target: 35
  • OS version: Android 11

Current Behavior

When I open the document scanner, capture the image, and confirm it (pressing the tick/accept button), the plugin returns the following error:(Even though the user did not cancel the action.
)
Incorrect result or user canceled the action

Expected Behavior

After confirming the scanned document, the plugin should return the scanned image result instead of throwing the error.

Permissions

I have added the following permissions in config.xml / AndroidManifest.xml:

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions