Is it possible in the lua lanugage to use an event listener or to write a code where it would performed an action automatically based off a entered time and date at that particualr time and date? [import]uid: 69302 topic_id: 29871 reply_id: 329871[/import]
@babybeanie98, may be you can use local notification, where you register a local notification for a particular date and time.
Inside of your local notification function you can execute what you wanted to be done on that particular time and date.
Have a look at http://www.coronalabs.com/blog/2012/06/05/local-notifications-guide-ios/
[import]uid: 147582 topic_id: 29871 reply_id: 119759[/import]
I read this and it seems as though something that will work. But do you know if this work for multiple users? [import]uid: 69302 topic_id: 29871 reply_id: 119761[/import]
if you mean different devices by using term multiple user, then you can do this:
Make http request to server to fetch timing data (maybe in json format?) for particular time i.e when app first loads, or its just first time a day,
if you have time set in the server returned data, then enable local notification for that time (doing some time calculation like, adding or subtracting user time zone difference w. r. t. server returned time )
after setting local notification for that time, your location notification listener function will trigger on that time, so you can do what u wanted to do on that time for all the devices in which ur app is installed.
[import]uid: 147582 topic_id: 29871 reply_id: 119765[/import]
@neostar20-you have to work with me. I am so new to the lua language and programming.lol Ive only taken 2 classes.So somethings you mentioned threw me off a little. some of the things you said, is there somewhere I can go to understand what you mean by what you said or how to do what you said? [import]uid: 69302 topic_id: 29871 reply_id: 119768[/import]
@babybeanie98, lol.
Ok, try again:
-
Fetch timing data from server.
-
if server data contains time, then set local notification for that time.
-
add code in local notification function, thats it.

[import]uid: 147582 topic_id: 29871 reply_id: 119770[/import]
lol thanks a bunch. But you must know I am not done. lol where can I go to learn how to fetch timing, and where to go to find the right code to add in local notification? please dont get frustrated. lol I have bought a corona ppt that covers a lot but that isnt one of the topics. very helpful though. lol [import]uid: 69302 topic_id: 29871 reply_id: 119772[/import]
Lol,
-
to get data from server use this api http://docs.coronalabs.com/api/library/network/request.html
-
To add local notification see examples here http://www.coronalabs.com/blog/2012/06/05/local-notifications-guide-ios/
[import]uid: 147582 topic_id: 29871 reply_id: 119774[/import]
Come on neostar, is that api even in english? lol
I will play around with it to see what I get and learn from it, if not… I will be looking for you. thanks again. you’ve been a great help. [import]uid: 69302 topic_id: 29871 reply_id: 119777[/import]
@babybeanie98, may be you can use local notification, where you register a local notification for a particular date and time.
Inside of your local notification function you can execute what you wanted to be done on that particular time and date.
Have a look at http://www.coronalabs.com/blog/2012/06/05/local-notifications-guide-ios/
[import]uid: 147582 topic_id: 29871 reply_id: 119759[/import]
I read this and it seems as though something that will work. But do you know if this work for multiple users? [import]uid: 69302 topic_id: 29871 reply_id: 119761[/import]
if you mean different devices by using term multiple user, then you can do this:
Make http request to server to fetch timing data (maybe in json format?) for particular time i.e when app first loads, or its just first time a day,
if you have time set in the server returned data, then enable local notification for that time (doing some time calculation like, adding or subtracting user time zone difference w. r. t. server returned time )
after setting local notification for that time, your location notification listener function will trigger on that time, so you can do what u wanted to do on that time for all the devices in which ur app is installed.
[import]uid: 147582 topic_id: 29871 reply_id: 119765[/import]
@neostar20-you have to work with me. I am so new to the lua language and programming.lol Ive only taken 2 classes.So somethings you mentioned threw me off a little. some of the things you said, is there somewhere I can go to understand what you mean by what you said or how to do what you said? [import]uid: 69302 topic_id: 29871 reply_id: 119768[/import]
@babybeanie98, lol.
Ok, try again:
-
Fetch timing data from server.
-
if server data contains time, then set local notification for that time.
-
add code in local notification function, thats it.

[import]uid: 147582 topic_id: 29871 reply_id: 119770[/import]
lol thanks a bunch. But you must know I am not done. lol where can I go to learn how to fetch timing, and where to go to find the right code to add in local notification? please dont get frustrated. lol I have bought a corona ppt that covers a lot but that isnt one of the topics. very helpful though. lol [import]uid: 69302 topic_id: 29871 reply_id: 119772[/import]
Lol,
-
to get data from server use this api http://docs.coronalabs.com/api/library/network/request.html
-
To add local notification see examples here http://www.coronalabs.com/blog/2012/06/05/local-notifications-guide-ios/
[import]uid: 147582 topic_id: 29871 reply_id: 119774[/import]
Come on neostar, is that api even in english? lol
I will play around with it to see what I get and learn from it, if not… I will be looking for you. thanks again. you’ve been a great help. [import]uid: 69302 topic_id: 29871 reply_id: 119777[/import]