Delivering upstream messages via XMPP on Firebase Cloud Messaging misconceptions

僤鯓⒐⒋嵵緔 提交于 2019-12-04 10:44:00

Device to device messaging is not supported by FCM. Upstream messages are designed to go from your mobile device through CCS to your XMPP app server. Once your XMPP app server receives the message it can decide to send a downstream message through CCS to a mobile device. The XMPP communication with stanzas is done between CCS and your XMPP app server.

FCM cloud service is good for PUSH notifications downstream from a corporation system, or a bank system, etc. Otherwise, to do the job of upstream message, you need your own XMPP application server (usually on public IP), I don't see any way around it. The FCM cloud service will just forward all the messages received to it without even reading them; it will be the application server duty, to route all the messages to the correct mobile device, always by recalling the FCM cloud service. I guess it would be easier without FCM service in the middle, just using your own XMPP server at some public IP, and the mobile device app should work like an XMPP client.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!