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?
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: https://backendless.com/docs/android/doc.html#messaging_message_publishing
Igor,
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.
Regards,
Mark
Thanks