Hello, its been a while since Ive developed with Xojo and Ive never developed using the web platform. I have a question regarding web apps and services.
Is Xojo capable of performing actions when end users are not connected? An example application similar to task management or to do list software:
- User logs in and creates a reminder and logs out
2 The server emails or somehow notifies the user when its time to perform their to do items
- User back in to mark the item as complete
Im sure items 1 and 3 are possible. But what about item 2 in my example?
Any input would be helpful!
i think if you use a timer yes
Make sure you use an instance of the Timer class, not WebTimer. WebTimer fires client side on a client’s browser. Timer runs in the application process on the server.
Thank you Etienne and Daniel!
I can confirm that this works with a stand-alone web application. I use this feature in a couple of projects.
[quote=432608:@Joseph Morgan]
- User logs in and creates a reminder and logs out
2 The server emails or somehow notifies the user when its time to perform their to do items
- User back in to mark the item as complete[/quote]
Xojo has many limitations. Each app can use jost a single core to do all its job. So, althought it is posible to do this, it is better if you create another app to do the background job.
That’s going to depend entirely on how the code is designed and the level of traffic. Properly written code and a thousand reminders a day? Should be no problem for a single core. Poorly written code or a million reminders a day? Now it’s probably time for separate apps.