Hello guys…
Is possible to make run a timer even if the app is closed??
Hello guys…
Is possible to make run a timer even if the app is closed??
It’s not possible for a non-Enterprise Corona app (meaning one not using native code) to run after it has been exited. However, you can store the system time on exit, and then check it again when the app is restarted, which, depending on what kind of functionality you’re looking for, could be just as good.
http://docs.coronalabs.com/api/library/os/time.html
http://coronalabs.com/blog/2013/01/15/working-with-time-and-dates-in-corona/
Oh perfect this can be a solution. And is possible to do something like this using a server??
I don’t see why not. Give it shot and let us know how you get on.
Plug: Check out Coronium if you don’t already have a server solution. I don’t own stock, nor am I an employee of Coronium, but Chris (the main dev) is a dynamite young man and you won’t find a better server solution tailored specifically for Corona developers anywhere on the net.
How really thanks for this tips… I ll give it a shot
It’s not possible for a non-Enterprise Corona app (meaning one not using native code) to run after it has been exited. However, you can store the system time on exit, and then check it again when the app is restarted, which, depending on what kind of functionality you’re looking for, could be just as good.
http://docs.coronalabs.com/api/library/os/time.html
http://coronalabs.com/blog/2013/01/15/working-with-time-and-dates-in-corona/
Oh perfect this can be a solution. And is possible to do something like this using a server??
I don’t see why not. Give it shot and let us know how you get on.
Plug: Check out Coronium if you don’t already have a server solution. I don’t own stock, nor am I an employee of Coronium, but Chris (the main dev) is a dynamite young man and you won’t find a better server solution tailored specifically for Corona developers anywhere on the net.
How really thanks for this tips… I ll give it a shot