Notifying the client with a data and notification payload using firebase function (one to one notification)
- Put the code in function.js in your own firebase 'function.js' file.
- Put the code in the 'send_notification_android.java' inside the onClickListener of the send message button in your chat interface.
Note: Make sure to make required variable name changes subjective to your application. Read comments inside the code for better understanding