Hi everyone,
I'm working on an application using Snap that involves scanning QR codes. The goal is to check if a scanned QR code matches a predefined value and then use that value to update a global variable via a textbox. This approach is working well on iOS, but I'm encountering an issue on Android where the scanned value seems to reset before it can be applied to the textbox.
Does anyone have suggestions on how to address this problem? I suspect it might be related to how barcode scanning and data handling differ between iOS and Android. Here are the steps I've taken so far:
- Checked the settings of the barcode widget, especially on Android, to ensure they are configured correctly.
- Experimented with introducing a small delay (e.g., a few hundred milliseconds) after scanning the barcode before setting the textbox value.
- Used debugging techniques to track the value of the scanned barcode at different stages of the application's workflow.
- Reviewed event handling to ensure that barcode scanning events are properly sequenced and handled.
I would appreciate any insights or suggestions from those who have experience with barcode scanning and app development on Android. Thank you!