Close popup automatically and cancelling barcode scanner
I am using this javascript: setTimeout("Appery.navigateTo('ScanScreen',{})" , 2000); within an error popup to automatically go back to a page (ScanScreen) that runs the barcode scanning service on Load. However, if I click cancel on the scanning, it keeps popping up this error popup, closes, I hit cancel, and it pops up again, so I can never get out of the scanning. Is there a better way to close a popup automatically after 2 seconds? Is there a way to control what the cancel button on the barcode scanner does?