I'm using FCM for notifications when the app is not in use(in active), but what if user is in a One to One conversation with some one or a group chat is going on?
Is it preferable to go along with FCM notification only, like send FCM notification for all messages and if user is in the same activity just update the view, a huge number of conversation might happen that way, and huge amount of notification from a group.
Or should I implement anything else for that?
I did find out a couple of links
Implementing one to one and group chat in android
But polling might be huge resource intensive
Please suggest any other procedure. How does Whatsapp or any other chat messenger handles One to One chat?