Support Topics Documentation Slack YouTube Blog

Push notification when record added


(SnakeEyes) #1

Hello
I am looking for a pointer in the right direction here.
Is there a way I can add “triggers” so that if a record is added, then a push notification is sent to a user?

I am trying to do something similar to FB like. If user A likes post of user B then I want push notification to be sent to B.

Thank you


(Vladimir Upirov) #2

Hi Snake Eyes

You can create an “afterCreate” event handler for specific Data table,

here is an example for “beforeCreate” https://backendless.com/docs/bl-js/bl_eventhandlers_getting_started_js.html but I believe you will figure out how to implement “afterCreate” handler for your use case

and inside the handler code you can send a push notification

Regards, VLad