Skip to content

fix: send failure result when scanner is canceled#10

Open
vlh-mschalter wants to merge 1 commit into
kalinjul:mainfrom
vlh-mschalter:main
Open

fix: send failure result when scanner is canceled#10
vlh-mschalter wants to merge 1 commit into
kalinjul:mainfrom
vlh-mschalter:main

Conversation

@vlh-mschalter
Copy link
Copy Markdown

fixes #9

@kalinjul
Copy link
Copy Markdown
Owner

Hi, thanks for your PR!

The behaviour without your patch is the same on iOS and Android in my Tests, when cancelling the Scan, onResult is not called.
The only exception to this is when camera permission is not granted on iOS, this will invoke onResult with a Failure.
I'm willing to change this, but this should be consistent on both platforms again.

@vlh-mschalter
Copy link
Copy Markdown
Author

@kalinjul you are right. I updated the code for ios to the same logic as android. Please have a look.

Thanks for your work, for this library!

@vlh-mschalter vlh-mschalter changed the title fix: send failure result on android when scanner is canceled fix: send failure result when scanner is canceled Apr 27, 2026
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

Successfully merging this pull request may close these issues.

Bug: onResult not called when user cancels the scanner on Android

2 participants