Closed criss02-cs closed 4 months ago
Guten Tag, Hans here.
[!NOTE] New features, bugfixes, updates and other improvements are all handled mostly by
@mrousavy
in his free time. To support@mrousavy
, please consider 💖 sponsoring him on GitHub 💖. Sponsored issues will be prioritized.
This is intentional. Code coordinates change, hence it's being called multiple times.
But then why don't I have this problem on Android?
For me on Android it will also be called multiple times. Maybe not as often as on iOS, but also multiple times.
On my Android device is called one time, but in my iPhone device is called multiple times. There is a way to fix this?
Just debounce it if you only care about the result. On Android it should also be called multiple times. I don't have free time to fix this, but maybe I will take a look at this in the future - we'll see.
This is intentional. Code coordinates change, hence it's being called multiple times.
Can you please add a timeout prop so that it will wait for given number of seconds before scanning the next code or the same code again?
Can you please add a timeout prop so that it will wait for given number of seconds before scanning the next code or the same code again?
No. This is something you can easily do yourself - much easier in JS than in native code.
I tried to set a delay, but still cannot stop multiple values
What's happening?
I wanted to scan a QR code, but when I do it the onCodeScanned callback function is executed countless times, and is causing me problems
Reproduceable Code
Relevant log output
Camera Device
Device
iPhone 12 Pro Max
VisionCamera Version
4.0.5
Can you reproduce this issue in the VisionCamera Example app?
No, I cannot reproduce the issue in the Example app
Additional information