I know this might be really easy, but I can't find a good reference to start. So here is my questions. I am making an Android app that needs to send notification on button click.
Notifications could be sent to
- all other users that installed the app
- specific users that installed the app.
The sender sending the notification itself must not get the notification alert.
I want to achieve this by using Firebase Cloud Functions. But I don't know like how to start.
It'll be really helpful if someone showed snippets of Android Java code and Firebase Cloud functions code to achieve the same.
For example let's say there are three users A, B and C that installed my sample app. So if A sends a notification alert then B and C both must receive it except A. Similarly if A wants to send notification to particular user B (let's say by using B's unique user ID) then only B must receive the notification and not C.