You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got an AlertDialog that I include a button to scan a MobileScanner() from. It works great most of the time, but I've noticed on one barcode in particular that onDetect gets called multiple times before popping the screen, and I don't know why.
So basically, I think I just need to know how to make sure the MobileScanner only detects one time before popping the screen. I do, however, need to still be able to select the Scan button as many times as I want while using the app and have the Scanner page populate.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've got an AlertDialog that I include a button to scan a MobileScanner() from. It works great most of the time, but I've noticed on one barcode in particular that onDetect gets called multiple times before popping the screen, and I don't know why.
This is the code:
And my console ends up looking something like this (notice the two different results that are found in the rawValue):
So basically, I think I just need to know how to make sure the MobileScanner only detects one time before popping the screen. I do, however, need to still be able to select the Scan button as many times as I want while using the app and have the Scanner page populate.
Beta Was this translation helpful? Give feedback.
All reactions