Instead of calling an external API to update my DB, I rather want to set up a listener to receive push-events to update specific table in my DB. I tried searching support & docs but was not able to find any information on that topic. Is there a chance you can outline how to proceed here? Is it possible to implement such behaviour in a hosted service?
Hi, Norman!
There are 2 ways of delivering messages in Backendless: Push notifications and Pub/Sub.
You can specify the one you need by setting a PushPolicy at DeliveryOptions when publishing a message:
PushPolicy is an enum with 2 options: ONLY and ALSO - the first means that the message will be delivered only as push notification and second means both push and pub/sub.
In Backendless console you can set up event listener for Publish events(if you need only Push notifications events you can check for event type inside of the eventHandler method): http://image.prntscr.com/image/d49d5f4b460a45eab16b1843594d8538.png</img>
You can create hosted service, which saves the data you need. Than you can use REST to comunicate with your service. So you have to set up another server to send requests to Backendless service.