I am making a chat-app using the XMPP protocol and ejabberd as XMPP server. I want to build a push notification functionality for the app. The app is similar to WhatsApp. I came to know three different techniques on FCM to deliver push notifications:
- Registration token
- Device group messaging
I am confused which technique should I go for. Although I have studied the latency and throughput. The first one is great for throughput, as mentioned in Google's documentation. But I am unable to decide whether my app should focus more on latency or throughput.