Re: scheduling

2015-10-05 Thread Bob Sneidar
Sounds like a job for a standalone app that accepts messages. Bob S On Oct 2, 2015, at 19:40 , Mike Bonner mailto:bonnm...@gmail.com>> wrote: Probably the easiest way would be to have a send loop running, and see if any jobs (whatever you want to call it) are due yet. If you keep the jobs sor

Re: scheduling

2015-10-03 Thread Mike Kerner
This doesn't work well in a single-threaded environment. On Fri, Oct 2, 2015 at 10:40 PM, Mike Bonner wrote: > Probably the easiest way would be to have a send loop running, and see if > any jobs (whatever you want to call it) are due yet. If you keep the jobs > sorted you can check the next on

Re: scheduling

2015-10-02 Thread Mike Bonner
Probably the easiest way would be to have a send loop running, and see if any jobs (whatever you want to call it) are due yet. If you keep the jobs sorted you can check the next one in queue, and if its not time for it to fire yet, none of them are, so loop. If it IS time, keep checking the list

Re: scheduling

2015-10-02 Thread Mike Kerner
oh, wow. Sorry, Bob, that wasn't what I meant. I meant scheduling messages like as in pendingMessages, like a CRON subsystem On Fri, Oct 2, 2015 at 1:39 PM, Bob Sneidar wrote: > I did some work in this regard in an app I called Conference Scheduler > Lite. The big thing with date and time calc

Re: scheduling

2015-10-02 Thread Bob Sneidar
I did some work in this regard in an app I called Conference Scheduler Lite. The big thing with date and time calculations is understanding that an event scheduled for 08:00 - 10:00 does NOT conflict with one from 10:00 to 12:00. Also, someone staying in a room from the first to the third does N

Re: Scheduling iOS tasks

2012-02-16 Thread Mike Kerner
Hey Mark, There are two problems with push: 1) Push messages are limited to 256 bytes, and if the app is not running, the app doesn't do anything. The user is notified, and if the user chooses, s/he can launch the app, and then the app can do something (which is really clunky on the other apps tha

Re: Scheduling iOS tasks

2012-02-16 Thread Mike Kerner
I have, and now that LC is going to support Push and Local Notifications, I am chomping to put them into action along with some background processing. After reading through the Push API's last night, it looks like for the moment I'm going to have to roll my own Push server. It would be great if LC

Re: Scheduling iOS tasks

2012-02-16 Thread Mark Schonewille
Hi, Push notifications would solve this problem, theoretically. Unfortunately, I'm not sure how LiveCode apps would handle push notifications, because LiveCode apps on iOS always shut down completely. They simply don't run in the background. I wonder if it were possible to start a LiveCode app

Re: Scheduling iOS tasks

2012-02-16 Thread Richard Gaskin
Mike Kerner wrote: Is there a way to schedule LC-built iOS apps to do something in the background occasionally? Unlike most OSes, iOS has such a strong priority for battery life that the definition of "multitasking" is a bit different than what you may be used to, amounting in most cases to s

Re: Scheduling iOS tasks

2012-02-16 Thread Mark Schonewille
Hi Mike, As far as I know, LC apps don't run in the background on iOS. I'd think this is currently impossible. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Do