I know this is quite simple question for all you but I want some different. The scenario is :
I am implementing chat application using Firebase
. I have almost implemented it but i want to implement push notification for it same as WhatsApp
.
For that I have set up my project and other necessary thing for push notification to Firebase
server and in my java code too. I am able to send notification from firebase server and successfully able to get notification from it to the device in which the app is installed.
Question:
So when we are chatting with each other, and someone send us message which needs to be displayed in notification manager, do I need to again call MyFirebaseMessagingService
so I can get message which sender sent me from the application?
Also do I need to set up a FCM server for cloud messaging to communicate with client app?