Support Topics Documentation Slack YouTube Blog

Notifications Android

(Ihor) #1

I have an app where user create a post and somebody can write a comment
When user write a comment, I want the owner of the post recieved a notification
What should I use push notifications or publish messaging?

(Oleg Vyalyh) #2

Hi, Ihor.
It depends on how you want the user receives the message. Push notification is based on Android push service, but at the same time you can implement message exchanging with our messaging system (publish to channels). For latter variant your program will periodically pull messages from our server. It is normal approach, when user is in your program.
See documentation:

(Mark Piller) #3


In order to accomplish what you want, you should add a “afterCreate” event handler (in business logic) and in the event handler code send a push notification using the messaging API.


(Ihor) #4