Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FCM - Difference between Downstream Message and Upstream Message

Tags:

I have been studying materials related to Web push notification from FCM Messenger. While I came across downstream message and upstream message, apparently HTTP server only allows downstream message while XMPP server allows upstream message.

I have trouble understanding the difference between downstream and upstream message and the details are not well explained on FCM. I tried to search online but I have no luck. Please do help me as I am new to coding.

like image 259
James Lee Avatar asked Oct 11 '16 14:10

James Lee


People also ask

What are upstream messages in Firebase?

An upstream message is a message that originates on the client app and is passed up through to the Firebase messaging cloud. Upstream messaging requires the presence of an app server connected directly to the Firebase Cloud Connection Server (CCS) using the XMPP protocol.

What is difference between FCM and GCM?

FCM is a cloud platform that provides messages and push notifications for operating systems- ios and Android, and websites as well. Google Cloud Messaging is a messaging service that enables the message transfer from server to clients apps.

What is payload in FCM?

Firebase Cloud Messaging (FCM) is a messaging solution that lets you reliably send messages at no cost to both Android & iOS devices. Using FCM, you can send data payloads (via a message) to a device for a specific application. Each message can transfer a payload of up to 4KB to a client.


1 Answers

To put it on Layman's terms, Downstream Messaging is when you are sending a push notification from your App Server towards the Client App. However for FCM's case, you may send a downstream message without an App Server or by sending a usual curl request by making use of the Firebase Console.

While Upstream Messaging is the reverse, the Client App is sending a message towards your App Server. For this, the App Server is a requirement.

Do keep in mind that the FCM server is still in the flow (the middle man) that handles the queuing of your messages for both downstream and upstream.

like image 192
AL. Avatar answered Sep 29 '22 08:09

AL.