I have an android app and I want to send notifications to only one user when data is change. How can I do that. Could anyone give a code snippet that I can put in
OnDataChange() Method to send notification to a specific user. Since In Firebase there will be an unique user id created to every user after authentication, Is there any way to send the notification to a particular user or only to a group of Users using that userid.
You can make topic for this user and subscribe to that topic then Firebase allow us to send message to specific topic using topic message.
Kindly Look at this link
Hope it will help .