Page 1 of 1

Event Listener

Posted: Tue Jun 21, 2016 8:15 pm
by Robert Larsen

I have built a working chat aplication, and I want to know if their is anyway to add an event listener or anything like that so that my chat list updates only when a new message has been sent to the database, instead of adding a manual refresh button, or pinging the database a million times with a refresh timer. Is their any java i could add on page load event or should i use an automatic script.


Event Listener

Posted: Wed Jun 22, 2016 6:02 am
by Serhii Kulibaba

Hello Robert,

Please look at this example "how to build a chat application": https://blog.appery.io/2015/12/how-to...
Or use Push Notifications for that: https://devcenter.appery.io/documenta...


Event Listener

Posted: Wed Jun 22, 2016 6:12 am
by Robert Larsen

The tutorial shows only how to build in ionic.


Event Listener

Posted: Wed Jun 22, 2016 8:43 am
by Serhii Kulibaba

Right. You can use the same way (EventSource) also in the JQM app