简体   繁体   English

从服务器向Android设备发送消息,反之亦然

[英]Send message from Server to Android device and vice versa

I want to implement a chat application. 我想实现一个聊天应用程序。 But I have a few questions, which I could not solve by searching the internet. 但是我有几个问题,我无法通过搜索互联网解决。

My requests are: 我的要求是:

  • Of course I can address each device individually from my server (makes sense for a chat app) 当然,我可以从服务器单独寻址每个设备(对于聊天应用程序很有意义)
  • I can create a time delay between sending and receiving a message 我可以在发送和接收消息之间创建时间延迟
  • The application should not require a registration (this is not a MUST, but would be nice) 该应用程序不需要注册(这不是必须的,但是会很好)

I wonder if GCM (Google Cloud Messaging) is the appropriate solution for me. 我想知道GCM(Google Cloud Messaging)是否适合我。 I have not yet worked with it, so I would like to have some help. 我尚未使用它,因此我希望获得一些帮助。 Will I run into troubles with this? 我会遇到麻烦吗? And most important: Is a registration required? 最重要的是:是否需要注册?

You will run into troubles surely, GCM is not for creating chat applications . 您肯定会遇到麻烦, GCM不是用于创建聊天应用程序的 You will need this XMPP .GCM is kind of thing used for broadcasting messages,which does not even guarantee the delivery of messages instantaneously ie real time which you will be requiring. 您将需要此XMPP .GCM是一种用于广播消息的东西,它甚至不能保证即时发送消息,即您需要的实时消息。

SEE THIS TOO: Android and XMPP: Currently available solutions 请参见: Android和XMPP:当前可用的解决方案

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从活动向服务发送消息,反之亦然 - Send message from Activity to Service and vice versa 在不使用应用程序服务器的情况下将一个Android设备之间的消息推送到另一设备,反之亦然 - push message between one android device to another and vice versa without using app server 将推送通知从Android发送到iOS,反之亦然? - Send push-notification from Android to iOS and vice versa? 我可以将通知从Android发送到iOS,反之亦然吗? - May I send notification from Android to iOS or vice versa? 使用 Twilio 从 arduino 向 Android 应用发送短信,反之亦然 - Send SMS from arduino to Android App Using Twilio and Vice Versa 我们可以将消息从“ Android设备”发送到“ GCM”服务器吗? - Can we send the message from **Android Device** to **GCM** server? 如何将文件夹中的选定文件从Android设备同步到Google云端硬盘,反之亦然 - How to sync selected files in a folder from Android device to Google Drive and vice versa 在没有互联网连接的情况下从安卓设备向服务器发送消息 - Send message to a server from android device without internet connection 如何在Android中将任何应用程序从后台移到前台(反之亦然)时发送通知 - How to send notification when any application moves from background to foreground and vice versa in Android 将图像数组从android发送到Rest Web Service(使用Java),反之亦然 - send array of images from android to rest web service(using java) and vice versa
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM