Urtrope-Designs / SelecQuest

MIT License
2 stars 0 forks source link

App running on phone while in sleep mode does not run catchup mode #55

Closed scunningham777 closed 5 years ago

scunningham777 commented 5 years ago

If the app is running on a phone (only tested on iPhone) when the phone goes into sleep mode, upon unlocking the phone the app resumes but does not run catch-up mode, it just starts the next Task. This is presumably because the app is still held in memory, so “catch-up mode” was already turned off and it never gets turned back on.

We will need to then figure out a way to watch for when the expected completion time of a task is more than, say, 200 ms in the past, and then turn catch-up mode back on until we are once again caught up. I think that should work.