Page 1 of 1

Database notification

Posted: Sat Dec 21, 2013 6:09 pm
by Kieran Keene

Hi, is there any way to get a notification when a new record is added via the DB rest service? My app should be for raising support requests and it would be good to be notified.


Database notification

Posted: Sat Dec 21, 2013 6:23 pm
by Igor

Hello,

You can request to DB every minute and check if there was a new record, if so then you can send notification.


Database notification

Posted: Sat Dec 21, 2013 6:25 pm
by Kieran Keene

Thanks!! Would you be able to point me in the right direction to set this up?


Database notification

Posted: Sat Dec 21, 2013 6:44 pm
by Igor

The following references should be helpful:
http://docs.appery.io/documentation/r...
https://getsatisfaction.com/apperyio/...
http://docs.appery.io/documentation/r...

Logic can be something like this:
every minute you execute request service to DB, save last record ID value and date/time record value to local storage variable then compare record values with new value response.