如何在不托管服务器的情况下不使用FCM来发送一对一的上游消息? [英] How to send one-to-one upstream messaging using not not using FCM without hosting a server?
问题描述
通过Firebase Cloud Messaging将消息从一台设备直接发送到另一台不支持的设备. -Frank van Pufflenen- 2016年6月23日
那是很早以前的事,文档中没有任何更新.但是:
- 有什么变化吗?
- Firebase是唯一的选择吗?是否还有其他应用服务器(如Firebase和关闭的 Parse )?
- 我不想为此找到/购买服务器.但是Firebase Server SDK是否适合于此?
- 这可以使用GCM来实现吗?
发生了很多变化.
但是:
-
从一台设备向另一台设备发送消息仍然需要使用服务器密钥,这意味着您将需要一台受信任的服务器.
-
建议服务在Stack Overflow上不在这里.
-
Firebase Server SDK在受信任的服务器上使用.
-
否,只有通过使用受信任的服务器的Google Cloud Messaging才能将设备发送到设备消息.
有关发送下游消息的体系结构,请参见我的回答:如何使用Firebase Messaging发送一对一消息. /p>
Sending messages from one device directly to another device it not supported through Firebase Cloud Messaging. -- Frank van Pufflenen - JUNE 23 2016
That was quite some time ago, and there aren't any updates in the docs. However:
- Has there been any changes?
- Is Firebase the only option? Are there any other app servers (Like Firebase and the shut-down Parse)?
- I don't want to find/buy a server just for this. But is the Firebase Server SDK suitable for this?
- Can this be implemented using GCM?
There have been lots of changes.
But:
Sending a message from one device to another still requires the use of a server key, which means you will need a trusted server.
Recommending services is off-topic here on Stack Overflow.
The Firebase Server SDK is for use on a trusted server.
No, sending device to device messages was only possible with Google Cloud Messaging by using a trusted server.
Also see my answer here for the architecture of sending downstream messages: How to send one to one message using Firebase Messaging.
这篇关于如何在不托管服务器的情况下不使用FCM来发送一对一的上游消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!