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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With