Skip to content

[Android] Call to function 'RNMLKitDocumentScanner.launchDocumentScannerAsync' has been rejected #255

@rmarquois

Description

@rmarquois

Hi,

There is a native issue sometime with some device. I tracked this error using Sentry and stack trace is the following:

Call to function 'RNMLKitDocumentScanner.launchDocumentScannerAsync' has been rejected.
→ Caused by: java.lang.IllegalStateException: Attempting to launch an unregistered ActivityResultLauncher with contract red.infinite.reactnativemlkit.documentscanner.contracts.DocumentScannerContract@4047e64 and input DocumentScannerContractOptions(options=red.infinite.reactnativemlkit.documentscanner.RNMLKitDocumentScannerOptions@cef827d). You must ensure the ActivityResultLauncher is registered before calling launch()

I'm not an Android developer, so I cannot fix it. Need help please.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions