Hyphenate Docs

Start Chatting with Hyphenate!

Welcome to the Hyphenate docs portal. Here you'll find comprehensive guides and technical documentation to help you integrate Hyphenate In-App Chat.

Get Started

Create a Group Chat

When creating a group, you have the choice of creating the group from the client SDK and having Hyphenate store all of the group info, or creating it from your app server and storing all group info there.

Solution 1: Create from client SDK and store group info on Hyphenate server

  • Data maintained by the Hyphenate server: groupID, owner, member, maxUser.
  • Other data maintained by the app server.

Create a group using the appropriate Hyphenate client SDK, then save all the group data (GroupID, Group profile photo, group name, label, etc.) to your application server.

Solution 2: Create from application server, and store the group information on the app server

In this case, the group data is created and maintained by the app server.

Solutions Comparison

Pros and Cons of Solution 2

  • Pros: There is no need to access multiple servers when the mobile client user is creating a group. All the data is saved on the client server, which makes the data easier to maintain than saving in multiple servers.

  • Cons: 'Join' and 'leave' requests can only be achieved by a command message. Solution II is less convenient than directly calling the Hyphenate API as described in Solution I. If we use the Hyphenate client SDK to add or remove users, it might lead to data inconsistency between the client server and the Hyphenate server.

Next Section: User Account Sign Up and Login

Create a Group Chat


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.