Android Question Chat! MQTT or FBM?

aidymp

Well-Known Member
Licensed User
Longtime User
Hi, I have a VPS, and Mosquitto running fine on it, but I have seen people saying they use Firebase for chat? I thought it was just notifications, but i obviously forgot that we have a service that, receives and displays the message! The chat (style) app will only be used by around 30 people but i want ultimate reliability as i am hoping to sell the app to my employer or charge a usage fee. Im just wondering what I should go with?

Im wanting to send group, and single messages.

MQTT or FBM, and why?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You mean FCM, not FBM.

MQTT and FCM are not exactly comparable. You should probably use both. Send a push message when there is a new message and the app is not online. Once it is online use MQTT for the actual chat.

The advantage of FCM is that the app will be started when a message is received. Once your app is running and connected then MQTT is better as it gives you more control with less restrictions.
 
Upvote 0
Top