DEV Community

Oliver​
Oliver​

Posted on

Implementation of Third-Party User Interaction Based on Instant Messaging System

Nowadays, many types of third-party apps such as games, shopping, travel, and enterprise applications have the need for communication between users within the app. Currently, there are two main methods, but both have obvious flaws:

First, the third-party app itself develops and provides in-app messaging services.
However, message interaction is not the core business of such apps; developing and maintaining a messaging system independently will significantly increase the cost for developers. At the same time, most third-party apps have low user usage frequency, and users do not log in frequently, leading to messages often failing to be received and viewed in a timely manner, which affects interaction efficiency.

Second, users actively leave their instant messaging accounts or QR codes on third-party apps, allowing other users to jump to instant messaging tools for communication.
Although this method can solve the problem of timely message delivery, both parties cannot directly identify each other's real identities in the third-party app within the instant messaging tool. They can only confirm each other's identities in the app through manual explanation, which is not only cumbersome to operate but also lacks reliability, making it easy to have identity impersonation and misidentification.

To solve the above pain points, this paper proposes a technical concept for realizing third-party user interaction based on an instant messaging system, enabling users to communicate timely through commonly used instant messaging tools (such as WhatsApp, Telegram, Messenger, WeChat, Viber) while automatically identifying each other's identities in the third-party app, achieving a balance of security, efficiency and convenience.

I. Specific Implementation Process

1. User Initiates Instant Messaging Operation
The user initiates a request to send a message, establish a conversation, or add a friend to the instant messaging server through the instant messaging client, and clearly specifies that the operation is associated with a certain third-party app. The identifier of the third-party app can be automatically imported through the app link jump, without the need for manual input by the user.
2. Instant Messaging Server Identifies Objects and Associated Applications
After receiving the user's request, the instant messaging server automatically completes two identification tasks: first, determining the sender and receiver of the current instant messaging operation; second, clarifying the third-party app corresponding to the request, realizing the association between the instant messaging operation and the third-party application.
3. Instant Messaging Server Obtains and Displays Third-Party App Identity Information
The instant messaging server binds the user's instant messaging account with the corresponding third-party app account through an account association mechanism, then automatically obtains the sender's identity information (such as user nickname, avatar, etc.) in the third-party app, and synchronously sends this information to the receiver.
In the instant messaging chat interface, the receiver can directly and clearly see which third-party app the other party is from and the other party's specific identity in the app, without the need for additional inquiries or confirmation.
At the same time, the instant messaging server can also synchronously send the receiver's identity information in the third-party app to the sender, realizing two-way identity recognition between both parties; in addition, it can also synchronously display basic information such as the name and icon of the third-party app, further avoiding identity confusion and improving the interaction experience.

II. Advantages of the Scheme

1. Reduce the development cost of third-party apps: Third-party apps do not need to develop and maintain their own message interaction systems, and can directly rely on the existing instant messaging system to realize user interaction, greatly saving development, operation and server resources.
2. More timely message delivery: With the help of high-user-activity and high-frequency instant messaging tools such as WhatsApp, messages can reach users quickly, completely solving the problem of delayed reception of in-app messages in third-party apps.
3. Real and identifiable identity: There is no need for users to manually note or prove their identities. The system automatically synchronizes and displays the real identity information in the third-party app, effectively avoiding problems such as identity impersonation and misidentification, and improving the security and credibility of interaction.
4. Simple and convenient to use: Users can initiate chats and add friends with one click, without manually copying accounts or scanning QR codes, simplifying the operation process and greatly improving the user interaction experience.

In summary, this scheme enables user interaction of third-party apps to not only leverage the advantages of high reach and high activity of instant messaging tools but also realize clear recognition of cross-platform identities. While significantly reducing the development and operation costs of third-party apps, it effectively improves the security, timeliness and convenience of user interaction.

Top comments (0)