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

Results ran multiple times #2

Open
willm132 opened this issue Jun 14, 2021 · 2 comments
Open

Results ran multiple times #2

willm132 opened this issue Jun 14, 2021 · 2 comments
Assignees

Comments

@willm132
Copy link

func barcodeScanner(_ scanner: BarcodeScannerViewController, read code: String) {
print(code)
scanner.dismiss(animated: true, completion: nil)
}

is being called 6 times on a single scan. Any way to resolve this?

@willm132
Copy link
Author

Also is there a way to use this in landscape mode?

@Logomorph
Copy link
Owner

Logomorph commented Jun 15, 2021

Hi,
Thanks for the ticket, I will double check as soon as possible.

I do have a question though. Did you set shouldKeepScanSessionActive to true? If yes, that keeps the scanning session active, so you'll get multiple callbacks.

About landscape, there shouldn't be anything stopping you from using it in landscape. The test app should support all orientations. Are other orientations supported in your app?

@Logomorph Logomorph self-assigned this Jun 15, 2021
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

2 participants