ZEGO Instant Messaging (ZIM) is an all-platform messaging service featuring massive concurrency, ultra-low latency, and reliable delivery. ZIM is applicable to large-scale live streaming, voice chatroom, customer service, and other scenarios. This topic describes how to migrate data from other communication services to ZIM.
Force upgrade forces the upgrade from app 1.0 to 2.0 after data is synchronized to the ZIM server. The procedure is as follows:
This step is the prerequisite for importing other data. In the app backend, call the Batch register users
method of the ZIM server to import all existing accounts to the ZIM backend.
In the app backend, call the Modify user information
method of the ZIM server to import existing user information to the ZIM backend.
In ZIM, the friend list and blocklist are not exclusive. Two users can be friends of each other and block each other at the same time.
Call the Batch add friends
method to import the friend list to the ZIM backend.
Call the Batch block users
method to import the blocklist to the ZIM backend.
Call the Import one-to-one messages
method to import one-to-one messages to the ZIM backend.
The procedure is as follows:
Create a group
method to import existing group information and group members to the ZIM backend.Add group members
or Remove group members
method for adjustment.Import group messages
method to import historical group messages.This section describes how to import user data from multiple apps to the ZIM backend.
If the information of a user exists in two apps, you need to merge and import the information, because an import will be overwritten by the next import.
If user A and user B are friends in app 1, and user A and user C are friends in app 2, no special operation is required.
If user A and user B are friends in both app 1 and app 2, import the information only once, as a repeated import will fail.
If one-to-one messages between user A and user B exist in both app 1 and app 2, messages will be merged into one conversation after the import. We recommend that you merge messages in two apps and store them in one app only.
One group will not exist in two apps, and you do not need to merge group data. f