Lately I have started with firebase for android development.
Cloud messaging is an incredible feature of firebase , but Until Now I have only been able to send the messages in FCM using the GUI console.
How do I send messages on the runtime. Eg - when a user clicks a button , then the DATA message must be sent to another User.
What I have tried:
I have tried looking at online resources , but most of them show the FCM feature using the Console.