capacitor-community / barcode-scanner

A fast and efficient (QR) barcode scanner for Capacitor
MIT License
437 stars 169 forks source link

startScanning returns -1 #158

Closed 1andonlyziz closed 2 years ago

1andonlyziz commented 2 years ago

When using startScanning() function, -1 will be returned for each result But it logs well on android studio when a barcode is detected

I'm using version 3.0.0

CleanShot 2022-09-15 at 10 00 19@2x
thegnuu commented 2 years ago

Can you provide a repo to reproduce this issue?

1andonlyziz commented 2 years ago

@thegnuu sorry it turns out I'm not using the callback properly ^_^"

thegnuu commented 2 years ago

Yep, this might result into some errors ;)

Glad you found the solution :)