I created a scan app in PowerApps that allows students to scan a qr code when they enter and exit a classroom. My issue is sometimes after a scan it goes onto the next screen and sometimes it doesn't. Sometimes it keeps the scanner screen open and so students will scan multiple times creating duplications in my list. Ideally, after every scan, I would like it to go to my "success" page and show the input. Did I do something wrong or is this a bug? Thanks
On Scan: Select(BarcodeScanner1);
Set(varSingleScan, BarcodeScanner1.Value);
Patch(Attendance, {Title: BarcodeScanner1.Value, Who: User().FullName, When: Now()});
Collect(collectScan, {BarcodeInfo: BarcodeScanner1.Value, WhoScanned: User().FullName, WhenScanned: Now()});
Navigate(Success)