AAO-React-Native icon indicating copy to clipboard operation
AAO-React-Native copied to clipboard

Listen for backgrounding and foregrounding events in Timer

Open hawkrives opened this issue 6 years ago • 0 comments

And fire the timer if it's time has come while we were in the background.

I think setTimeout doesn't fire while in the background, but we should be able to store the current time when we background/foreground by listening to the AppState module, and then calculate if the timer should have fired while we were backgrounded.

(I noticed this while watching the Bus view and switching between it and my ebook reader.)

hawkrives avatar Apr 13 '19 22:04 hawkrives