DiabetesCompass / Diabetes_Compass

iOS code for type 1 diabetes management
MIT License
4 stars 0 forks source link

Barcode scan needs timeout #38

Closed calferness closed 7 years ago

calferness commented 7 years ago

Once the barcode scanner view is called, it starts looking for a barcode. However, if it can't find one, it just keeps on looking. There should be a timeout function that cancels the running of the scan. Maybe something on the order of 45 to 60 seconds? Once the timeout is reached, an alert message with "OK" and "try again" should be displayed to allow for either cancelling out and returning to the add food screen or starting the scan process over.

calferness commented 7 years ago

The changes made seem to have fixed this issue. Not sure why, but let's consider it done unless it pops up again later.