how to set a countdown timer that check real time?
I need to set a timer that every 30 -real- minutes "produce" something in
my app, but obviously I need it to count the localized real time and most
important (and this is the part I don't know how to achieve) I need it to
count even if the app is closed.
How can I setup a timer that count along with the real time of the
localized device timer ? to setup a timer that count within the app is
pretty easy, I know how to do it but here I need to check the real time.
So an Idea I have is to check the actual local time when the app start,
made some math and understand how much time is passed since the app was
closed by the user, then I can understand how many "30minutes" are passed
and made my operations.
But probably (or surely) there's a better way, there's a better way?
No comments:
Post a Comment