android即时通讯功能开发思路?
PHPz
PHPz 2017-04-17 13:07:14
0
7
752

现在开发的应用需要一个即时通讯模块,需求要求有文本、图片、语音的通讯功能。

请问有经验的同志,即时通讯功能大体是一个什么样的开发思路呢?比如:最基础的即时通讯需要用到哪些技术?android或者java中是否已经存在即时通讯方面的框架?也就是说,如果是你开发这个功能的话,你的一个大体开发思路是怎么样的呢?

本人仅仅会一些java基础,并没有多少网络编程基础,最好说的具体、浅显一些,感激不尽!

PHPz
PHPz

学习是最好的投资!

reply all(7)
阿神

Nowadays, many developer service providers have instant messaging functions. I will list some similar functions of my SegmentFault partners. You can make some reference through their ideas

  1. LeanCloud: https://leancloud.cn/features/message.html
  2. Environmental information: http://www.easemob.com/hx/demo.html
  3. Rongyun: http://www.rongcloud.cn/downloads
PHPzhong

That’s true. All the things mentioned above can be used immediately.
If you want to play more deeply by yourself, you can simply use the pushed SDK and the problem of maintaining long links will be solved. You only need to implement the specific business logic code.
To be more technical, use web socket or mqtt, etc. These can also maintain long connections, but it will be more troublesome. For example, disconnection and reconnection, these situations need to be considered.

Peter_Zhu

Use XMPP protocol or sip protocol. Currently there are many protocol stacks based on these two protocols. xmpp is a purely IM-oriented protocol. A complete instant messaging service must not only meet the functions required for instant messaging, but also There also needs to be certain expansions, such as friend management, group messaging, conference rooms, push messages for online and offline friends. As for the pictures, audio and video you mentioned, they are considered media information in instant messaging.

小葫芦

Just use Rongyun or Huanxin, it is also very convenient to manage

洪涛

Xinmaotong has a complete set of solutions and free integrated interfaces. It is very convenient to use.
http://www.semot.com/im/

洪涛

To save trouble, there are now a lot of cloud IM, but it only saves trouble in the early stage, and the later operation is not something you can decide by yourself. So just add a painless IM function, you can use cloud IM. In the long run, of course everyone wants to have their own IM technology, but it is not easy to develop it completely by yourself, but it is also more workload. Very big.

Open source China has an open source lightweight mobile instant messaging technology framework: http://git.oschina.net/jackjiang/MobileIMSDK,
The documentation is also relatively complete: http://www.52im.net /forum-89-1.html, it may be worth knowing. It is a good thing for people who are learning IM development.

迷茫

It is recommended to directly connect to the third-party IM cloud service. With the development of technology, it is no longer popular to reinvent the wheel, because the structure of the wheel is becoming more and more complex, and the requirements for functional and non-functional indicators are getting higher and higher; but our users will no longer wait for us. While we are still drawing the drawings of wheels, our competitors may have already built their cars and beat us to the Chang'an Avenue. If the IM function is required and the technical support is in place, you can directly call the NetEase Yunxin IM SDK and API to quickly realize the IM function http://netease.im/im

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template