Group chat control method, device, electronic device and storage medium
By generating and managing group chat session H5 page resources through the group chat server, the problem of excessive terminal dependence is solved and unified group chat services are implemented among terminals.
Patent Information
- Application Number
- CN202311696992.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2043-12-11
AI Technical Summary
In the existing technology, the group chat function is too dependent on the terminal, and there are differences in the group chat functions and page interactions of different terminal brands, resulting in the inability to provide a unified and complete group chat service.
The group chat server receives the terminal's group chat creation request, generates the group chat session H5 page resource, and sends the group invitation message through the message protocol to realize the creation and management of group chats between terminals, including identity authentication and the display of the group chat session page.
It enables common terminals to obtain unified and complete group chat services, solves the problem of excessive dependence of group chat functions on terminals, and provides a unified solution.
Smart Images

Figure CN117714999B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technologies, and in particular to a group chat control method, device, electronic device, and storage medium. Background Art
[0002] In the related art, the group chat function is a one-to-many communication mode, involving detailed and complex group management functions, strong social attributes, and complex business processes. Due to its complex functions, it relies heavily on terminals. In addition, the terminal has never supported the fifth generation (5th generation, 5G) messages, and has been upgraded to support 5G message terminal-to-terminal (Person To Person, P2P) and application-to-terminal (Application To Person, A2P) functions, but there is no terminal that supports standard 5G message group chat. In addition, even if the terminal can support the 5G message group chat function in the future, there will be problems such as different group chat functions and different page interactions for different terminal brands. Therefore, how to solve the excessive dependence of the group chat function on the terminal and provide a unified and complete group chat service is an urgent problem to be solved. Summary of the Invention
[0003] The present disclosure provides a group chat control method, device, electronic device and storage medium.
[0004] In a first aspect, the present disclosure provides a group chat control method, which is executed by a group chat server, including: receiving a group chat creation request message sent by a first terminal through a first message protocol when a first terminal determines on a group homepage Hypertext Markup Language H5 page that a group chat needs to be created with a second terminal, wherein the group chat creation request message is used to request the creation of a group chat between the first terminal and the second terminal; generating a group chat session H5 page resource for the group chat according to the group chat creation request message; sending a group invitation message to the second terminal through a second message protocol according to the group chat session H5 page resource, wherein the group invitation message carries a group chat session uniform resource locator URL, which is used to invite the second terminal to join the group chat; receiving a feedback message sent by the second terminal, wherein the feedback message is used to indicate whether the second terminal agrees to join the group chat; and sending a group creation notification message to the first terminal according to the feedback message, wherein the group creation notification message is used to indicate whether the second terminal agrees to join the group chat.
[0005] In some embodiments, the above method also includes: sending a first message carrying the group chat session URL to the first terminal based on the group chat session H5 page resource; receiving a first request message for accessing the group chat session URL sent by the first terminal through a first message protocol; sending the group chat session H5 page resource to the first terminal, wherein the group chat session H5 page resource is used by the first terminal to render and display the group chat session H5 page.
[0006] In some embodiments, the above method also includes: receiving a second request message for accessing the group chat session URL sent by the second terminal through the first message protocol; performing identity authentication on the second terminal based on the second request message; determining that the identity authentication is passed, sending a group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used by the second terminal to render and display the group chat session H5 page.
[0007] In some embodiments, the above method also includes: receiving the group chat chatbot information determined by the first terminal when it is in the second message protocol connection state, and determining the group chat homepage H5 page that needs to be accessed based on the group chat chatbot information, and sending a group homepage access request based on the first message protocol through the browser or web view webview; according to the group homepage access request, performing identity authentication on the first terminal; determining that the identity authentication is passed, sending the group chat homepage H5 page resource to the first terminal, wherein the group chat homepage H5 page resource is used by the first terminal to render and display the group chat homepage H5 page.
[0008] In some embodiments, the above method further includes: pre-allocating a group identifier for the group chat according to the group chat creation request message; and when the feedback message is used to indicate that the second terminal agrees to join the group chat, determining that the group chat creation is successful and the group identifier is effective.
[0009] In some embodiments, the above method also includes: receiving a first group chat message of a group chat sent by a first terminal through a first message protocol, and sending the first group chat message to other terminals in the group chat except the first terminal; and / or receiving a second group chat message of a group chat sent by the first terminal through the first message protocol, determining that the second terminal in the group chat except the first terminal is in a non-first message protocol connection state, storing the second group chat message, and after determining that the second terminal has restored the first message protocol connection state, sending the second group chat message to the second terminal.
[0010] In some embodiments, after determining that the second terminal has restored the first message protocol connection state, sending a second group chat message to the second terminal includes: sending a group chat new message notification to the second terminal through the second message protocol, wherein the group chat new message notification carries the second group chat message and the group chat session URL; receiving a third request message for accessing the group chat session URL sent by the second terminal through the first message protocol, and determining that the second terminal has restored the first protocol connection state; sending a group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used for the second terminal to render and display the group chat session H5 page; receiving an offline message acquisition request sent by the second terminal; and sending the second group chat message to the second terminal according to the offline message acquisition request.
[0011] In some embodiments, the above method also includes: receiving a query group list message sent by the first terminal through the first message protocol; sending a group list H5 page resource to the first terminal based on the query group list message, wherein the group list H5 page resource is used by the first terminal to render and display the group list H5 page.
[0012] In some embodiments, the above method also includes: determining a stored group offline message of at least one existing group chat based on a query group list message; receiving a fourth request message for accessing a group chat session URL of a specific group sent by the first terminal through a first message protocol, wherein the specific group is any one of the existing group chats; sending a group chat session H5 page resource of the specific group to the first terminal; receiving a group offline message acquisition request of the specific group sent by the first terminal; and sending a group offline message of the specific group to the first terminal based on the group offline message acquisition request.
[0013] In some embodiments, the method further includes: receiving a group management access message sent by the first terminal via a first message protocol, wherein the group management access message is used to request an access operation to the group chat in which the first terminal is located;
[0014] According to the group management access message, a group management H5 page resource is sent to the first terminal; a group management operation message is received from the first terminal through the first message protocol, wherein the group management operation message is used to request a specified group management operation for the group chat; according to the group management operation message, the specified group management operation is performed; and a group management operation feedback message is sent to the first terminal.
[0015] In some embodiments, the above method also includes: sending a group event notification message to other terminals in the group chat that are in a first message protocol connection state except the first terminal through a first message protocol, wherein the group event notification message is used to indicate the result of executing a specified group management operation; and / or sending a group event notification message to other terminals in the group chat that are in a non-first message protocol connection state except the first terminal through a second message protocol, wherein the group event notification message is used to indicate the result of executing a specified group management operation.
[0016] In a second aspect, the present disclosure provides a group chat control method, which is executed by a first terminal, including: the first terminal in a first message protocol connection state determines a second terminal on the group chat homepage H5 page that needs to create a group chat; sends a group chat creation request message to the group chat server through the first message protocol, wherein the group chat creation request message is used to request the creation of a group chat with the second terminal, and the group chat creation request message is used by the group chat server to generate a group chat session H5 page resource for the group chat; receives a group creation notification message sent by the group chat server, wherein the group creation notification message is used to indicate whether the second terminal agrees to join the group chat.
[0017] In some embodiments, the above method also includes: receiving a first message carrying the group chat session URL sent by the group chat server based on the group chat session H5 page resource; sending a first request message to the group chat server to access the group chat session URL through a first message protocol; receiving the group chat session H5 page resource sent by the group chat server; and rendering and displaying the group chat session H5 page based on the group chat session H5 page resource.
[0018] In some embodiments, the above method also includes: the first terminal in the second message protocol connection state determines the group chat chatbot information; based on the group chat chatbot information, determines the group chat homepage H5 page that needs to be accessed; sends a group homepage access request based on the first message protocol to the group chat server through a browser or webview; receives the group chat homepage H5 page resource sent by the group chat server when it determines that the identity authentication of the first terminal is passed; based on the group chat homepage H5 page resource, renders and displays the group chat homepage H5 page.
[0019] In some embodiments, the above method further includes: sending a first group chat message of the group chat to the group chat server through a first message protocol, wherein the first group chat message is used by the group chat server to forward to other terminals in the group chat except the first terminal.
[0020] In some embodiments, the above method also includes: sending a query group list message to the group chat server through the first message protocol, wherein the query group list message is used by the group chat server to determine the stored group offline message of at least one existing group chat; receiving the group list H5 page resource sent by the group chat server based on the query group list message; and rendering and displaying the group list H5 page based on the group list H5 page resource.
[0021] In some embodiments, the above method also includes: sending a fourth request message for accessing the group chat session URL of a specific group to the group chat server through the first message protocol, wherein the specific group is any one of the existing group chats; receiving the group chat session H5 page resource of the specific group sent by the group chat server; sending a group offline message acquisition request for the specific group to the group chat server; and receiving the group offline message of the specific group sent by the group chat server based on the group offline message acquisition request.
[0022] In some embodiments, the above method also includes: sending a group management access message to the group chat server through the first message protocol, wherein the group management access message is used to request an access operation on the group chat where the first terminal is located; receiving the group management H5 page resource sent by the group chat server according to the group management access message; rendering and displaying the group management H5 page of the group chat according to the group management H5 page resource; determining the specified group management operation to be performed; sending a group management operation message to the group chat server through the first message protocol, wherein the group management operation message is used to request a specified group management operation on the group chat; receiving the group management operation feedback message sent by the group chat server.
[0023] In a third aspect, the present disclosure provides a group chat control method, which is executed by a second terminal, including: receiving a group invitation message sent by a group chat server through a second message protocol, wherein the group invitation message carries a group chat session URL, which is used to invite the second terminal to join the group chat, and the group invitation message is sent by the group chat server when it receives a group chat creation request message sent by the first terminal and generates a group chat session H5 page resource for the group chat, and the group chat creation request message is used to request the creation of a group chat between the second terminal; sending a feedback message to the group chat server, wherein the feedback message is used to indicate whether the second terminal agrees to join the group chat.
[0024] In some embodiments, the above method also includes: sending a second request message for accessing the group chat session URL to the group chat server through the first message protocol; receiving the group chat session H5 page resource sent by the group chat server based on the second request message, determining that the identity authentication of the second terminal is passed; and rendering and displaying the group chat session H5 page according to the group chat session H5 page resource.
[0025] In some embodiments, the above method also includes: receiving a first group chat message sent by the group chat server through the first message protocol, wherein the first group chat message is received by the group chat server from the first terminal; and / or receiving a second group chat message sent through the first message protocol after the group chat server determines that the second terminal has restored the first message protocol connection state, wherein the second group chat message is received and stored by the group chat server from the first terminal when the second terminal is in a non-first message protocol connection state.
[0026] In some embodiments, receiving a second group chat message sent through the first message protocol after the group chat server determines that the second terminal has restored the connection state of the first message protocol includes: receiving a new group chat message notification sent by the group chat server through the second message protocol, wherein the new group chat message notification carries the second group chat message and the group chat session URL; sending a third request message for accessing the group chat session URL to the group chat server through the first message protocol, wherein the third request message is used by the group chat server to determine that the second terminal has restored the connection state of the first message protocol; receiving a group chat session H5 page resource sent by the group chat server; rendering and displaying the group chat session H5 page according to the group chat session H5 page resource; determining that offline message retrieval is required, and sending an offline message retrieval request to the group chat server; and receiving the second group chat message sent by the group chat server.
[0027] In a fourth aspect, the present disclosure provides a communication device, including: a transceiver module, for receiving a group chat creation request message sent by a first terminal through a first message protocol when a first terminal determines on a group homepage Hypertext Markup Language H5 page that a group chat needs to be created with a second terminal, wherein the group chat creation request message is used to request the creation of a group chat between the first terminal and the second terminal; a processing module, for generating a group chat session H5 page resource of the group chat according to the group chat creation request message; the transceiver module is also used to send a group invitation message to the second terminal through a second message protocol according to the group chat session H5 page resource, wherein the group invitation message carries a group chat session uniform resource locator URL, which is used to invite the second terminal to join the group chat; the transceiver module is also used to receive a feedback message sent by the second terminal, wherein the feedback message is used to indicate whether the second terminal agrees to join the group chat; the transceiver module is also used to send a group creation notification message to the first terminal according to the feedback message, wherein the group creation notification message is used to indicate whether the second terminal agrees to join the group chat.
[0028] In a fifth aspect, the present disclosure provides a communication device, including: a processing module, used for a first terminal in a first message protocol connection state to determine a second terminal on the group chat homepage H5 page where a group chat needs to be created; a transceiver module, used to send a group chat creation request message to a group chat server through the first message protocol, wherein the group chat creation request message is used to request the creation of a group chat with the second terminal, and the group chat creation request message is used by the group chat server to generate a group chat session H5 page resource for the group chat; the transceiver module is also used to receive a group creation notification message sent by the group chat server, wherein the group creation notification message is used to indicate whether the second terminal agrees to join the group chat.
[0029] In a sixth aspect, the present disclosure provides a communication device, including: a transceiver module, used to receive a group invitation message sent by a group chat server through a second message protocol, wherein the group invitation message carries a group chat session URL, and is used to invite a second terminal to join the group chat. The group invitation message is sent by the group chat server when it receives a group chat creation request message sent by the first terminal and generates a group chat session H5 page resource for the group chat. The group chat creation request message is used to request the creation of a group chat with the second terminal; the transceiver module is also used to send a feedback message to the group chat server, wherein the feedback message is used to indicate whether the second terminal agrees to join the group chat.
[0030] In the seventh aspect, the present disclosure provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the group chat control method described in the first aspect, second aspect or third aspect of the embodiments of the present disclosure.
[0031] In an eighth aspect, the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the group chat control method described in the first, second or third aspect of the embodiments of the present disclosure.
[0032] In a ninth aspect, the present disclosure provides a computer program product, comprising a computer program, which, when executed by a processor, implements the group chat control method described in the first, second or third aspect of the embodiments of the present disclosure.
[0033] The technical solutions provided by the embodiments of the present disclosure bring at least the following beneficial effects:
[0034] In an embodiment of the present disclosure, when a first terminal determines on the H5 page of the group homepage that a group chat needs to be created with a second terminal, a group chat creation request message is received by the group chat server through a first message protocol, wherein the group chat creation request message is used to request the creation of a group chat with the second terminal; based on the group chat creation request message, a group chat session H5 page resource of the group chat is generated; based on the group chat session H5 page resource, a group invitation message is sent to the second terminal through a second message protocol, wherein the group invitation message carries a group chat session uniform resource locator URL, which is used to invite the second terminal to join the group chat; a feedback message sent by the second terminal is received, wherein the feedback message is used to indicate whether the second terminal agrees to join the group chat; based on the feedback message, a group creation notification message is sent to the first terminal, wherein the group creation notification message is used to indicate whether the second terminal agrees to join the group chat. In this way, the problem of excessive dependence of the group chat function on the terminal can be solved, and a unified and complete group chat service can be obtained by an ordinary terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0036] Figure 1 1 is a schematic structural diagram of a group chat communication system according to an exemplary embodiment;
[0037] Figure 2 is a structural diagram of a group chat communication system according to another exemplary embodiment;
[0038] Figure 3 is a schematic diagram of a group chat page according to an exemplary embodiment;
[0039] Figure 4 is a flow chart of a group chat control method according to an exemplary embodiment;
[0040] Figure 5 is a flow chart of a group chat control method according to another exemplary embodiment;
[0041] Figure 6 is a flow chart of a group chat control method according to another exemplary embodiment;
[0042] Figure 7 is a flow chart of a group chat control method according to another exemplary embodiment;
[0043] Figure 8 is a flow chart of a group chat control method according to another exemplary embodiment;
[0044] Figure 9 is a flow chart of a group chat control method according to another exemplary embodiment;
[0045] Figure 10 is a flow chart of a group chat control method according to another exemplary embodiment;
[0046] Figure 11 is a flow chart of a group chat control method according to another exemplary embodiment;
[0047] Figure 12 is a structural diagram of a communication device according to an exemplary embodiment;
[0048] Figure 13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.
[0049] The above drawings illustrate specific embodiments of the present disclosure, which will be described in more detail below. These drawings and textual descriptions are not intended to limit the scope of the present disclosure in any way, but rather to illustrate the concepts of the present disclosure to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION
[0050] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
[0051] The following detailed description of the technical solution of the present disclosure and how the technical solution of the present disclosure solves the above-mentioned technical problems is provided with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The embodiments of the present disclosure will be described below in conjunction with the accompanying drawings.
[0052] In related technologies, terminals have evolved from not supporting 5G messaging to supporting 5G messaging P2P and A2P functions. However, there are still no terminals that support standard 5G messaging group chats. Even if terminals can support 5G messaging group chats in the future, there will still be problems such as different group chat functions and different page interactions between different terminal brands. Therefore, how to solve the excessive dependence of group chat functions on terminals and provide a unified and complete group chat service is an urgent problem that needs to be solved.
[0053] Based on this, the embodiments of the present disclosure provide a group chat control method, device, electronic device, and storage medium, wherein the method includes: receiving a group chat creation request message sent by a first terminal through a first message protocol when a first terminal determines that a second terminal needs to create a group chat on a group homepage Hypertext Markup Language 5 (HTML5 or H5) page, wherein the group chat creation request message is used to request the creation of a group chat between the first terminal and the second terminal; generating a group chat session H5 page resource for the group chat according to the group chat creation request message; sending a group invitation message to the second terminal through a second message protocol according to the group chat session H5 page resource, wherein the group invitation message carries a group chat session URL for inviting the second terminal to join the group chat; receiving a feedback message sent by the second terminal, wherein the feedback message is used to indicate whether the second terminal agrees to join the group chat; and sending a group creation notification message to the first terminal according to the feedback message, wherein the group creation notification message is used to indicate whether the second terminal agrees to join the group chat. In this way, the problem of excessive dependence of the group chat function on the terminal can be solved, and a unified and complete group chat service can be obtained by ordinary terminals.
[0054] First combine Figure 1 , the group chat communication system provided by the embodiment of the present disclosure is described.
[0055] Figure 1 The figure is a schematic structural diagram of a group chat communication system according to an exemplary embodiment.
[0056] like Figure 1 As shown, the group chat communication system 10 includes: a group chat server 11, a 5G message center (5th generation message center, 5GMC) 12, an access module 13 and a terminal 14.
[0057] Rich media messaging, based on the GSMA's (Global Mobile System Alliance) Rich Communication Suite (RCS), boasts rich media, interactivity, lightweight applications, and intelligent capabilities, making it a common choice for carriers as they evolve their SMS messaging solutions. 5G messaging, built on the RSC framework, has already enabled commercial use of P2P rich media messaging and Person-to-Application (P2A / A2P) chatbot messaging.
[0058] In addition to the above-mentioned P2P, A2P / P2A services, 5G messages based on RCS also have group chat services. The system architecture of the 5G message group chat function is as follows: Figure 1As shown, it mainly includes a group chat server 11, a 5GMC 12, an access module 13 (such as an Internet Protocol (IP) multimedia subsystem (IMS)) and a terminal 14. The network elements / modules use the Session Initiation Protocol (SIP) to interact with each other to implement group management, such as creating a group, inviting members, adding / removing members, modifying avatars / names, disbanding a group, group event notifications, etc., as well as the transmission of group chat messages.
[0059] Figure 2 The figure is a schematic structural diagram of a group chat communication system according to another exemplary embodiment.
[0060] like Figure 2 As shown, the group chat communication system 100 includes: a group chat server 101 and a terminal 102.
[0061] The group chat server 101 includes a group chat application server (GCAS), a message as a platform (MaaP) access module, and an H5 server. The GCAS is responsible for group management business logic processing, group detail information storage, and group message construction and distribution. The MaaP access module is responsible for connecting to the 5G messaging MaaP platform, connecting the group chat service to the 5G messaging MaaP via a chatbot, and converting group chat service messages into standard 5G messages and sending them to the terminal 102 via MaaP. The H5 server is responsible for access client identity authentication, providing group chat management and message interaction-related H5 page resources, interacting with the terminal 102, and storing offline messages.
[0062] Terminal 102 can be a 5G messaging terminal with a built-in webview, providing users with functions such as searching for group chat chatbots, receiving group invitation message cards in the form of standard 5G messages, accessing H5 servers, and calling the terminal's underlying Generic Bootstrapping Architecture (GBA) capabilities to complete authentication, group management operations, and group chat message sending and receiving.
[0063] The group chat server 101 provides a group chat Hypertext Markup Language 5 (HTML5 or H5) page for the terminal 102 to perform group chat interaction operations, including the group homepage, group management, and group chat sessions, all of which are performed through the H5 page. The group chat server 101 is connected to the 5G message MaaP as a group chat chatbot application, and a fixed menu button of the group chat chatbot is configured as the group chat homepage entrance.
[0064] Terminal 102 (e.g., a standard 5G messaging terminal) can provide the initiator user with a function of searching for a group chat chatbot and provide a chatbot conversation page, such as Figure 3 As shown, the initiating user can click the group chat homepage button in the fixed menu of the chatbot session page, and the terminal 102 provides the initiating user with the group chat homepage H5 page through the built-in page view (webview) / browser.
[0065] When the terminal 102 determines that the initiating user has initiated the creation of a group chat through the H5 page of the group chat homepage, the group chat server 101 can generate an invitation message, encapsulate it into a standard 5G message chatbot card message, and send it to the invited user's terminal 102 through MaaP and 5GMC. The standard 5G message chatbot card message includes a picture, a group invitation prompt, and accept and reject buttons. If the terminal 102 determines that the invited user clicks the accept button, it is determined that the invited user agrees to join the group chat. On the contrary, if it is determined that the invited user clicks the reject button, it is determined that the invited user does not agree to join the group chat. Then, the terminal 102 transmits the feedback information of the invited user's acceptance or rejection to the group chat server 101 via 5GMC and MaaP, and the group chat server 101 notifies the initiating user and sends it to the initiating user's terminal 102.
[0066] It should be noted that the information interaction between the group chat server and the terminal is achieved through MaaP and 5GMC forwarding.
[0067] Figure 4 The figure is a flow chart of a group chat control method according to an exemplary embodiment.
[0068] like Figure 4 As shown, the group chat control method provided by the embodiment of the present disclosure is executed by the group chat server, including but not limited to the following steps:
[0069] S41, receiving a group chat creation request message sent by the first terminal through the first message protocol when the first terminal determines on the group chat homepage H5 page that a group chat with the second terminal needs to be created, wherein the group chat creation request message is used to request to create a group chat with the second terminal.
[0070] In the embodiment of the present disclosure, the first terminal may be the terminal of the initiator user who initiates the group chat creation. For example, user A wants to create a group chat with user B. User A initiates the group chat creation process with user B on his terminal. The first terminal may be user A's terminal.
[0071] In some embodiments, the first terminal is a terminal that supports 5G messages, or is a common terminal, or is a terminal that supports standard 5G message group chat.
[0072] In the embodiment of the present disclosure, Figure 3 As shown, the first terminal may provide a group chat homepage H5 page, and the initiating user may perform group chat creation operations on the group chat homepage H5 page provided by the first terminal.
[0073] In some embodiments, the browser or webview of the first terminal renders and displays the group chat homepage H5 page.
[0074] For example, the initiating user enters information about at least one invited user to create a group chat, such as the invited user's mobile phone number or unique identification code, on the group chat homepage H5 page of the first terminal. Based on the initiating user's operation, the first terminal then sends a group chat creation request to the group chat server. The group chat creation request message is used to request the creation of a group chat with the second terminal, which is the invited user's terminal.
[0075] In some embodiments, the first message protocol is used for sending and receiving H5 page messages.
[0076] In some embodiments, the second terminal is a terminal that supports 5G messages, or is an ordinary terminal, or is a terminal that supports standard 5G message group chat.
[0077] In the embodiment of the present disclosure, the group chat server receives the group chat creation request message sent by the first terminal, and can receive the group chat creation request message sent by the first terminal through the first message protocol, that is, through the H5 page (group chat homepage H5 page).
[0078] S42: Generate a group chat session H5 page resource for the group chat according to the group chat creation request message.
[0079] In the embodiment of the present disclosure, the group chat server receives the first group chat creation request message sent, and can determine the second terminal of the invited user based on the group chat creation request message sent by the first terminal, and then generate a group chat session H5 page resource for the group chat based on the group chat creation request message.
[0080] In some embodiments, the first terminal includes an RCS module and a webview (or browser), and the group chat server includes a GC AS, an H5 server (server) and a MaaP access module. After the H5 server of the group chat server receives the group chat creation request message sent by the webview (or browser) of the first terminal, it forwards it to the GC AS of the group chat server. The GC AS of the group chat server notifies the H5 server of the group chat server to generate the group chat session H5 page resources of the group chat according to the group chat creation request message.
[0081] In some embodiments, the group chat session H5 page resources include static resources, such as group avatars, group names, group chat windows, etc.
[0082] In some embodiments, the group chat session H5 page resources include hypertext markup language (HTML), cascading style sheets (CSS), and scripting language (JavaScript) codes. The terminal's browser or webview will render these codes and display the group chat session H5 page to the user.
[0083] S43: Send a group invitation message to the second terminal through the second message protocol according to the group chat session H5 page resource, wherein the group invitation message carries the group chat session URL, which is used to invite the second terminal to join the group chat.
[0084] In the disclosed embodiment, when the group chat server generates a group chat session H5 page resource of the group chat according to the group chat creation request message, it can further send a group invitation message to the second terminal according to the group chat session H5 page resource.
[0085] In some embodiments, the group chat server encapsulates the group invitation message into a standard 5G message card format defined by the MaaP interface, and sends it to the second terminal through MaaP and 5GMC.
[0086] In some embodiments, the second message protocol is used for sending and receiving standard 5G messages.
[0087] In some embodiments, the GC AS of the group chat server notifies the H5 server of the group chat server to generate a group chat session H5 page resource for the group chat based on the group chat creation request message. The H5 server of the group chat server generates a group chat session H5 page resource for the group chat and a group chat session uniform resource locator (Uniform Resource Locator, URL) pointing to the group chat session H5 page based on the notification of the GCAS of the group chat server. Then, the group chat session URL of the group chat session H5 page is fed back to the GC AS of the group chat server, so that the GC AS of the group chat server generates a group invitation message according to the group chat session URL of the group chat session H5 page, and forwards it to the MaaP access module of the group chat server. The MaaP access module of the group chat server encapsulates the group invitation message into the standard 5G message card format defined by the MaaP interface, and sends it to the second terminal through MaaP and 5GMC.
[0088] For example, the group invitation message is a standard 5G message chatbot card, which contains an official 5G message group chat picture, a group invitation prompt (such as A invites you to join group xx), and accept and reject buttons. The accept and reject buttons are set with feedback information (postpack) and the action of jumping to the group chat session URL.
[0089] In some embodiments, the group chat server sends a group invitation message to the second terminal. The group invitation message is used to invite the second terminal to join the group chat. The invited user can use the second terminal to perform related operations, such as agreeing to join the group chat, or refusing to join the group chat, viewing the group chat homepage information, etc.
[0090] S44: Receive a feedback message sent by the second terminal, where the feedback message is used to indicate whether the second terminal agrees to join the group chat.
[0091] In the embodiment of the present disclosure, the invited user uses the second terminal to perform relevant operations, and the second terminal determines whether to agree to join the group chat or refuse to join the group chat.
[0092] Based on this, the second terminal may send a feedback message to the group chat server, where the feedback message is used to indicate that the second terminal agrees to join the group chat, or the feedback message is used to indicate that the second terminal refuses to join the group chat.
[0093] In some embodiments, the second terminal sends a feedback message to the group chat server through the second message protocol or the first message protocol.
[0094] In some embodiments, the second terminal sends a feedback message to the group chat server through MaaP and 5GMC.
[0095] In some embodiments, the second terminal sends a feedback message to the MaaP access module of the group chat server through MaaP and 5GMC, and the MaaP access module of the group chat server forwards the feedback message to the GC AS of the group chat server. After receiving the feedback message, the GC AS of the group chat server determines whether the second terminal agrees to join the group chat.
[0096] In some embodiments, the GC AS of the group chat server determines that the second terminal agrees to join the group chat, and determines that the group chat creation is successful, or the GC AS of the group chat server determines that the second terminal refuses to join the group chat, and determines that the group chat creation fails.
[0097] In some embodiments, the group chat server pre-allocates a group identifier for the group chat according to the group chat creation request message; and when the feedback message indicates that the second terminal agrees to join the group chat, it is determined that the group chat creation is successful and the group identifier is effective.
[0098] In the embodiment of the present disclosure, the group chat server pre-allocates a group ID for the group chat according to the group chat creation request message, and can determine that the group chat creation is successful and the group ID is effective when the feedback message is used to indicate that the second terminal agrees to join the group chat.
[0099] In some embodiments, when the feedback message is used to indicate that the second terminal refuses to join the group chat, the group chat server determines that the group chat creation fails and the group identifier is invalid.
[0100] In some embodiments, if the group chat server (GC AS of the group chat server) does not receive a feedback message from the second terminal within a specified time period, it can determine that the second terminal refuses to join the group chat, determines that the group chat creation fails, and the group identifier is invalid.
[0101] In some embodiments, the starting time of the specified time period is the time when the group chat server sends the group invitation message to the second terminal. The length of the specified time period is set as needed, and the embodiment of the present disclosure does not impose specific restrictions on this.
[0102] S45: Send a group establishment notification message to the first terminal according to the feedback message, wherein the group establishment notification message is used to indicate whether the second terminal agrees to join the group chat.
[0103] In the embodiment of the present disclosure, the group chat server can determine whether the second terminal agrees to join the group chat based on the feedback message, and based on this, the group chat server can send a group creation notification message to the first terminal, and the group creation notification message is used to indicate whether the second terminal agrees to join the group chat.
[0104] In some embodiments, the group chat server sends a group creation notification message to the first terminal through the first message protocol or the second message protocol.
[0105] In some embodiments, the group chat server sends a group creation notification message to the first terminal, where the group creation notification message is used to indicate that the second terminal agrees to join the group chat, or the group chat server sends a group creation notification message to the first terminal, where the group creation notification message is used to indicate that the second terminal refuses to join the group chat.
[0106] In some embodiments, the GC AS of the group chat server sends a group creation notification message to the H5 server of the group chat server through the first message protocol, and the H5 server of the group chat server forwards the group creation notification message to the first terminal.
[0107] In some embodiments, when the group chat server generates a group chat session H5 page resource for the group chat, it sends a first message carrying the group chat session URL to the first terminal based on the group chat session H5 page resource; receives a first request message sent by the first terminal to access the group chat session URL; and sends the group chat session H5 page resource to the first terminal, wherein the group chat session H5 page resource is used by the first terminal to render and display the group chat session H5 page.
[0108] In the embodiment of the present disclosure, the group chat server sends a first message carrying the URL of the group chat session to the first terminal through the first message protocol; receives a first request message for accessing the URL of the group chat session sent by the first terminal through the first message protocol; and sends a group chat session H5 page resource to the first terminal through the first message protocol, wherein the group chat session H5 page resource is used by the first terminal to render and display the group chat session H5 page. Thus, after the first terminal receives the group chat session H5 page resource, it can render and display the group chat session H5 page, such as Figure 3 As shown, the initiator user can access the group chat session H5 page on the first terminal.
[0109] It is understandable that after the first terminal receives the group chat session H5 page resource, it renders and displays the group chat session H5 page. Since the second terminal has not been invited to join the group chat at this time, a prompt waiting for members to join can be displayed on the group chat session H5 page.
[0110] In some embodiments, the H5 server of the group chat server sends a first message carrying the group chat session URL to the first terminal through the first message protocol; the H5 server of the group chat server receives a first request message for accessing the group chat session URL sent by the first terminal through the first message protocol; the H5 server of the group chat server sends a group chat session H5 page resource to the first terminal through the first message protocol, wherein the group chat session H5 page resource is used by the first terminal to render and display the group chat session H5 page.
[0111] In some embodiments, when the group chat server generates a group chat session H5 page resource for the group chat and sends a group creation notification message to the first terminal to indicate that the second terminal agrees to join the group chat, the group chat server sends a first message carrying the group chat session URL to the first terminal based on the group chat session H5 page resource; and receives a first request message for accessing the group chat session URL sent by the first terminal; and then sends the group chat session H5 page resource to the first terminal, wherein the group chat session H5 page resource is used by the first terminal to render and display the group chat session H5 page.
[0112] It can be understood that after the first terminal receives the group chat session H5 page resource, it renders and displays the group chat session H5 page. If it receives a group creation notification message sent by the group chat server, and the group creation notification message indicates that the second terminal agrees to join the group chat, then the second terminal has agreed to join the group chat. The initiating user can view the members who have joined the group chat on the group chat session H5 page, and send and receive group chat sessions, etc.
[0113] In some embodiments, the webview or browser of the first terminal renders and displays the group chat session H5 page.
[0114] In some embodiments, the group chat server receives a second request message for accessing the group chat session URL sent by the second terminal through the first message protocol; performs identity authentication on the second terminal based on the second request message; determines that the identity authentication is successful, and sends a group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used by the second terminal to render and display the group chat session H5 page.
[0115] In the embodiment of the present disclosure, the second terminal sends a feedback message to the group chat server. The feedback message is used to indicate that the second terminal agrees to join the group chat. In this case, the second terminal can call up the webview embedded in the 5G message and send a second request message to the group chat server to access the URL of the group chat session. After the group chat server receives the second request message sent by the second terminal, it can authenticate the identity of the second terminal. When it is determined that the identity authentication is passed, it can send the group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used by the second terminal to render and display the group chat session H5 page. Therefore, after the second terminal receives the group chat session H5 page resource, it can render and display the group chat session H5 page, such as Figure 3 As shown, the invited user can access the group chat session H5 page on the second terminal to send and receive group chat sessions, and view members who have joined the group chat.
[0116] In some embodiments, the H5 server of the group chat server receives a second request message sent by the second terminal to access the group chat session URL; the H5 server of the group chat server authenticates the second terminal based on the second request message; the H5 server of the group chat server queries the GCAS of the group chat server whether the second terminal has joined the group. If the GCAS of the group chat server feedbacks that the second terminal has joined the group, the H5 server of the group chat server sends the group chat session H5 page resource to the second terminal.
[0117] In some embodiments, the group chat server sends the group chat session H5 page resource to the second terminal via the first message protocol.
[0118] In some embodiments, the webview or browser of the second terminal renders and displays the group chat session H5 page.
[0119] In some embodiments, the group chat server receives the group chat chatbot information determined by the first terminal when the first terminal is in the second message protocol connection state, and determines the group chat homepage H5 page that needs to be accessed based on the group chat chatbot information, and sends a group homepage access request based on the first message protocol through the browser or web view webview; according to the group homepage access request, the first terminal is authenticated; after determining that the identity authentication is passed, the group chat homepage H5 page resource is sent to the first terminal, wherein the group chat homepage H5 page resource is used by the first terminal to render and display the group chat homepage H5 page.
[0120] In the embodiment of the present disclosure, Figure 3 As shown, the initiating user can search for the group chat chatbot on the first terminal. When the first terminal is in the second message protocol connection state, it determines the group chat chatbot information from MaaP and renders and displays the group chat chatbot page. The fixed menu in the group chat chatbot page includes a group chat homepage button. When the initiating user enters the group chat chatbot page on the first terminal and clicks the group chat homepage button in the fixed menu, the first terminal can determine the group chat homepage H5 page that needs to be accessed, call up the webview or browser, and send a group homepage access request based on the first message protocol to the group chat server through the browser or webview.
[0121] In the embodiment of the present disclosure, the group chat server receives a group homepage access request sent by the first terminal through the first message protocol, and can perform identity authentication on the first terminal. If the identity authentication is passed, the group chat homepage H5 page resource is sent to the first terminal.
[0122] In some embodiments, the H5 server of the group chat server receives a group homepage access request sent by the first terminal through a first message protocol, and can perform identity authentication on the first terminal. When the identity authentication is passed, the group chat homepage H5 page resource is sent to the first terminal through the first message protocol.
[0123] In some embodiments, the H5 server of the group chat server receives the group homepage access request sent by the first terminal, and performs identity authentication on the first terminal using a standard-defined GBA authentication mechanism.
[0124] In the embodiment of the present disclosure, after the first terminal receives the group chat homepage H5 page resource, it can render and display the group chat homepage H5 page, so that the initiating user can access the group chat homepage H5 page on the first terminal and perform group chat creation operations on the group chat homepage H5 page.
[0125] In some embodiments, the group chat homepage H5 page resources include HTML, CSS and JavaScript codes, and the browser (or webview) of the first terminal will render and display the group chat homepage H5 page to the user according to these codes.
[0126] In some embodiments, the group chat server receives a first group chat message of a group chat sent by a first terminal through a first message protocol, and sends the first group chat message to other terminals in the group chat except the first terminal; and / or receives a second group chat message of a group chat sent by the first terminal through the first message protocol, determines that the second terminal in the group chat except the first terminal is in a non-first message protocol connection state, stores the second group chat message, and after determining that the second terminal has restored the first message protocol connection state, sends the second group chat message to the second terminal.
[0127] In the embodiment of the present disclosure, when it is determined that the group chat is successfully created, that is, the first terminal of the initiating user and the second terminal of the invited user both enter the group chat, the first terminal can send a first group chat message to the group chat through the first message protocol. The group chat server receives the first group chat message sent by the first terminal and can send the first group chat message to other terminals in the group chat except the first terminal.
[0128] It can be understood that the group chat is created successfully, that is, the first terminal of the initiating user and the second terminal of the invited user both enter the group chat. If the first terminal is in the H5 online state (that is, the webview of the first terminal establishes a connection with the H5 server of the group chat server, and the first terminal is in the first message protocol connection state), the initiating user can enter the chat message in the group chat session H5 page of the first terminal, and the first terminal sends the first group chat message to the group chat server (the H5 server of the group chat server). After the group chat server (the H5 server of the group chat server) receives the first group chat message, it can send the first group chat message to the second terminal in the H5 online state (that is, the webview of the second terminal establishes a connection with the H5server of the group chat server, and the second terminal is in the first message protocol connection state).
[0129] In an embodiment of the present disclosure, if the second terminal is in an H5 offline state (that is, the webview of the second terminal loses connection with the H5 server of the group chat server, and the second terminal is in a non-first message protocol connection state), the group chat server (the H5 server of the group chat server) receives the second group chat message of the group chat sent by the first terminal. When it is determined that the second terminal other than the first terminal in the group chat is in a non-first message protocol connection state (that is, in an H5 offline state), the second group chat message can be stored, and after determining that the second terminal has restored the first message protocol connection state (that is, is in an H5 online state), the second group chat message is sent to the second terminal.
[0130] In some embodiments, the first terminal sends the first group chat message and / or the second group chat message to the group chat server (H5 server of the group chat server) through the first message protocol, and the group chat server (H5 server of the group chat server) sends the first group chat message and / or the second group chat message to the second terminal through the first message protocol.
[0131] In some embodiments, the group chat server receives a third group chat message of the group chat sent by the second terminal, and sends the third group chat message to other terminals in the group chat except the second terminal; and / or receives a fourth group chat message of the group chat sent by the second terminal, determines that the first terminal in the group chat except the second terminal is offline, stores the fourth group chat message, and sends the fourth group chat message to the first terminal after determining that the first terminal is back online.
[0132] It should be noted that, for the relevant description of the group chat server receiving the third group chat message and / or the fourth group chat message of the group chat sent by the second terminal, please refer to the relevant description of the group chat server receiving the first group chat message and / or the second group chat message of the group chat sent by the first terminal, which will not be repeated here.
[0133] In some embodiments, after the group chat server determines that the second terminal has restored the first message protocol connection state, it sends a second group chat message to the second terminal, including: sending a group chat new message notification to the second terminal through the second message protocol, wherein the group chat new message notification carries the second group chat message and the group chat session URL; receiving a third request message for accessing the group chat session URL sent by the second terminal through the first message protocol, and determining that the second terminal has restored the first protocol connection state; sending a group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used for the second terminal to render and display the group chat session H5 page; receiving an offline message acquisition request sent by the second terminal; and sending the second group chat message to the second terminal according to the offline message acquisition request.
[0134] In the embodiment of the present disclosure, the group chat server (the H5 server of the group chat server) determines that the second terminal is in a non-first message protocol connection state (that is, in an H5 offline state), and can send a group chat new message notification carrying the second group chat message and the group chat session URL to the second terminal through the second message protocol. Therefore, after receiving the group chat new message notification, the second terminal can send a third request message for accessing the group chat session URL to the group chat server (the H5 server of the group chat server) through the first message protocol. Upon receiving the third request message for accessing the group chat session URL sent by the second terminal, the group chat server (the H5 server of the group chat server) can determine that the second terminal has restored the first message protocol connection state (that is, is in an H5 online state).
[0135] In the disclosed embodiment, the group chat server (the H5 server of the group chat server) determines that the second terminal has restored the first message protocol connection state and can send a group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used by the second terminal to render and display the group chat session H5 page. As a result, the user of the second terminal can perform an offline message pull operation on the group chat session H5 page. The second terminal sends an offline message retrieval request to the group chat server (the H5 server of the group chat server). The group chat server (the H5 server of the group chat server) can send a second group chat message to the second terminal based on the offline message retrieval request sent by the second terminal.
[0136] In some embodiments, the second terminal sends a third access group chat session URL to the group chat server (H5 server of the group chat server) through the first message protocol, the group chat server (H5 server of the group chat server) sends the group chat session H5 page resource to the second terminal through the first message protocol, the second terminal sends an offline message acquisition request to the group chat server (H5 server of the group chat server) through the first message protocol, and the group chat server (H5 server of the group chat server) sends a second group chat message to the second terminal through the first message protocol.
[0137] In some embodiments, when the group chat server determines that the second terminal other than the first terminal in the group chat is in a non-first message protocol connection state (i.e., H5 offline state), it sends a group chat new message notification to the second terminal through the second message protocol. The second terminal receives the group chat new message notification. The group chat new message notification includes a view details button. The user of the second terminal can click the view details button, call up the webview or browser to access the group chat session URL, enter the group chat session H5 page, and perform offline message pull operations on the group chat session H5 page.
[0138] In some embodiments, when the H5 server of the group chat server determines that the second terminal other than the first terminal in the group chat is in a non-first message protocol connection state (i.e., H5 offline state), it feeds back the user offline information to the GC AS of the group chat server, and the GC AS of the group chat server generates a new group chat message notification, encapsulates it into a standard 5G message chatbot card, and the card includes a view details button, which is sent to the second terminal through the second message protocol. The user of the second terminal can click the view details button, call up the webview or browser to access the group chat session URL, enter the group chat session H5 page, and perform an offline message pull operation on the group chat session H5 page, so that the second terminal sends an offline message acquisition request to the H5 server of the group chat server. The H5 server of the group chat server can send a second group chat message to the second terminal based on the offline message acquisition request sent by the second terminal.
[0139] It should be noted that the second group chat message may include one or more chat messages, and the embodiment of the present disclosure does not impose any specific limitation on this.
[0140] In some embodiments, the group chat server receives a query group list message sent by the first terminal via a first message protocol; based on the query group list message, the server sends a group list H5 page resource to the first terminal, wherein the group list H5 page resource is used by the first terminal to render and display the group list H5 page.
[0141] In the embodiment of the present disclosure, the user of the first terminal can access the group chat homepage H5 page of the first terminal (browser or webview rendering display of the first terminal), and select query group list on the group chat homepage H5 page, so that the first terminal can send a query group list message to the group chat server.
[0142] Among them, when the group chat server receives the query group list message sent by the first terminal, it can send the group list H5 page resource to the first terminal, so that the first terminal (the browser or webview of the first terminal) can receive the group list H5 page resource and render and display the group list H5 page according to the group list H5 page resource.
[0143] In some embodiments, the first terminal sends a group list query message to the H5 server of the group chat server, the H5 server of the group chat server sends a group list query message to the GC AS of the group chat server, the GC AS of the group chat server feeds back the group list to the H5 server of the group chat server, the H5 server of the group chat server obtains the number of offline messages for each group in the group list, generates a group list H5 page resource, and sends it to the first terminal.
[0144] In some embodiments, the group chat server sends a group list H5 page resource to the first terminal via a first message protocol.
[0145] In some embodiments, the group list H5 page resources include HTML, CSS, and JavaScript codes, and the browser (or webview) of the first terminal will render and display the group list H5 page to the user according to these codes.
[0146] In some embodiments, the group chat server determines a stored group offline message of at least one existing group chat based on a query group list message sent by the first terminal; receives a fourth request message for accessing a group chat session URL of a specific group sent by the first terminal through a first message protocol, wherein the specific group is any one of the existing group chats; sends an H5 page resource of a group chat session of the specific group to the first terminal; receives a group offline message acquisition request of the specific group sent by the first terminal; and sends a group offline message of the specific group to the first terminal based on the group offline message acquisition request.
[0147] In an embodiment of the present disclosure, the group chat server receives a query group list message sent by the first terminal, and can determine the stored group offline messages of one or more existing group chats. Upon receiving the access group chat session URL of the specific group sent by the first terminal, the group chat session H5 page resource of the specific group is sent to the first terminal. The first terminal can render and display the group chat session H5 page of the specific group based on the group chat session H5 page resource of the specific group, so that the user of the first terminal can access the group chat session H5 page of the specific group and perform offline message pull operations. The first terminal can send a group offline message acquisition request for the specific group to the group chat server. The group chat server can send a group offline message of the specific group to the first terminal based on the group offline message acquisition request for the specific group sent by the first terminal.
[0148] In some embodiments, the H5 server of the group chat server receives a query group list message sent by the first terminal (the browser or webview of the first terminal) to determine a stored group offline message of at least one existing group chat; the H5 server of the group chat server receives a fourth request message for accessing the group chat session URL of a specific group sent by the first terminal (the browser or webview of the first terminal), where the specific group is any one of the existing group chats; the H5 server of the group chat server sends the group chat session H5 page resource of the specific group to the first terminal (the browser or webview of the first terminal); the H5 server of the group chat server receives a group offline message acquisition request for the specific group sent by the first terminal (the browser or webview of the first terminal); the H5 server of the group chat server sends the group offline message of the specific group to the first terminal (the browser or webview of the first terminal) based on the group offline message acquisition request.
[0149] In some embodiments, the user of the first terminal can save important group chats in a group list to quickly and easily enter the group chat.
[0150] In some embodiments, the group chat server receives a group list query message sent by the second terminal; based on the group list query message, the group list H5 page resource is sent to the second terminal, wherein the group list H5 page resource is used by the first terminal to render and display the group list H5 page.
[0151] In some embodiments, the group list H5 page resources include HTML, CSS, and JavaScript codes, and the browser (or webview) of the second terminal will render and display the group list H5 page to the user according to these codes.
[0152] In some embodiments, the group chat server determines the stored group offline message of at least one existing group chat based on the query group list message sent by the second terminal; receives the access group chat session URL of the specific group sent by the second terminal, wherein the specific group is any one of the existing group chats; sends the group chat session H5 page resource of the specific group to the second terminal; receives the group offline message acquisition request of the specific group sent by the second terminal; and sends the group offline message of the specific group to the second terminal based on the group offline message acquisition request.
[0153] It should be noted that, for the related description of the second terminal sending the group list query message to the group chat server, reference may be made to the related description of the first terminal sending the group list query message to the group chat server, which will not be repeated here.
[0154] In some embodiments, the group chat server receives a group management access message sent by the first terminal through the first message protocol, wherein the group management access message is used to request an access operation to the group chat where the first terminal is located; according to the group management access message, a group management H5 page resource is sent to the first terminal; a group management operation message is received from the first terminal through the first message protocol, wherein the group management operation message is used to request a specified group management operation to the group chat; according to the group management operation message, a specified group management operation is executed; and a group management operation feedback message is sent to the first terminal.
[0155] In the embodiment of the present disclosure, Figure 3 As shown, the first terminal can provide a group chat session H5 page. The user of the first terminal can perform the operation of accessing the group management page on the group chat session H5 page, so that the first terminal sends a group management access message to the group chat server. After the group chat server receives the group management access message sent by the first terminal, it can send the group management H5 page resource to the first terminal according to the group management access message. The first terminal can render and display the group management H5 page according to the group management H5 page resource. The user of the first terminal can perform specified group management operations on the group management H5 page, so that the first terminal sends a group management operation message to the group chat server. The group chat server can perform the specified group management operation according to the group management operation message and send a group management operation feedback message to the first terminal.
[0156] Exemplarily, the designated group management operations may include modifying group-related information, setting a do-not-disturb message setting, modifying the group name, publishing a group announcement, inviting new members, deleting members, and the like.
[0157] In some embodiments, the H5 server of the group chat server receives a group management access message sent by the first terminal (the browser or webview of the first terminal), and sends a group management H5 page resource to the first terminal (the browser or webview of the first terminal) based on the group management access message. The H5 server of the group chat server receives a group management operation message sent by the first terminal (the browser or webview of the first terminal), and the H5 server of the group chat server forwards the group management operation message to the GC AS of the group chat server. The GC AS of the group chat server performs the specified group management operation based on the group management operation message, and sends a group management operation feedback message to the H5 server of the group chat server. The H5 server of the group chat server sends a group management operation feedback message to the first terminal.
[0158] In some embodiments, the group chat server sends a group event notification message to other terminals in the group chat that are in a first message protocol connection state except the first terminal through a first message protocol, wherein the group event notification message is used to indicate the result of executing a specified group management operation; and / or sends a group event notification message to other terminals in the group chat that are in a non-first message protocol connection state except the first terminal through a second message protocol, wherein the group event notification message is used to indicate the result of executing a specified group management operation.
[0159] It is understandable that the user of the first terminal performs a specified group management operation on the group chat, and needs to notify other terminals in the group chat except the first terminal.
[0160] In the embodiment of the present disclosure, the group chat server may send a group event notification message to other terminals in the group chat except the first terminal, where the group event notification message is used to indicate the result of executing the specified group management operation.
[0161] Exemplarily, the designated group management operation performed by the user of the first terminal is to modify the group name of the group chat. After modifying the group name, the group chat server can send a group event notification message to other terminals in the group chat except the first terminal. The group event notification message indicates the modified group name of the group chat, thereby notifying other terminals in the group chat except the first terminal that the group name of the group chat has changed.
[0162] By implementing the embodiments of the present disclosure, the problem of excessive dependence of the group chat function on the terminal can be solved, and a unified and complete group chat service can be obtained by ordinary terminals, which can improve the user experience.
[0163] Figure 5 The figure is a flow chart of a group chat control method according to another exemplary embodiment.
[0164] like Figure 5As shown, the group chat control method provided by the embodiment of the present disclosure is executed by the first terminal, including but not limited to the following steps:
[0165] S51, the first terminal in the first message protocol connection state determines on the group chat homepage H5 page that a second terminal needs to create a group chat.
[0166] In the embodiment of the present disclosure, the first terminal can provide a group chat homepage H5 page, and the initiator user of the first terminal can fill in the information of the second terminal of one or more invited users who need to create a group chat on the group chat homepage H5 page of the first terminal, so that the first terminal determines the one or more second terminals for which a group chat needs to be created.
[0167] In some embodiments, the first terminal is a terminal that supports 5G messages, or is a common terminal, or is a terminal that supports standard 5G message group chat.
[0168] In some embodiments, the second terminal is a terminal that supports 5G messages, or is an ordinary terminal, or is a terminal that supports standard 5G message group chat.
[0169] In some embodiments, the browser or webview of the first terminal renders and displays the group chat homepage H5 page.
[0170] In some embodiments, the first message protocol is used for sending and receiving H5 page messages.
[0171] In some embodiments, the first terminal determines the group chat chatbot information; determines the group chat homepage H5 page that needs to be accessed based on the group chat chatbot information; sends a group homepage access request to the group chat server through a browser or webview; receives the group chat homepage H5 page resource sent by the group chat server when the identity authentication of the first terminal is determined to be passed; renders and displays the group chat homepage H5 page based on the group chat homepage H5 page resource.
[0172] In the disclosed embodiment, the initiator user can search for the group chat chatbot on the first terminal, the first terminal determines the group chat chatbot information from the MaaP, renders and displays the group chat chatbot page, the fixed menu in the group chat chatbot page includes a group chat homepage button, the initiator user enters the group chat chatbot page on the first terminal, clicks the group chat homepage button in the fixed menu, the first terminal determines the group chat homepage H5 page that needs to be accessed, calls up the webview or browser, and sends a group homepage access request to the group chat server through the browser or webview.
[0173] In the disclosed embodiment, the group chat server receives a group homepage access request sent by the first terminal and can perform identity authentication on the first terminal. If the identity authentication is successful, the group chat homepage H5 page resource is sent to the first terminal.
[0174] In some embodiments, the H5 server of the group chat server receives a group homepage access request sent by the first terminal through MaaP and 5GMC, and can perform identity authentication on the first terminal. If the identity authentication is passed, the group chat homepage H5 page resource is sent to the first terminal through MaaP and 5GMC.
[0175] In some embodiments, the H5 server of the group chat server receives the group homepage access request sent by the first terminal, and performs identity authentication on the first terminal using a standard-defined GBA authentication mechanism.
[0176] In the embodiment of the present disclosure, after the first terminal receives the group chat homepage H5 page resource, it can render and display the group chat homepage H5 page, so that the initiating user can access the group chat homepage H5 page on the first terminal and perform group chat creation operations on the group chat homepage H5 page.
[0177] S52: Send a group chat creation request message to the group chat server through the first message protocol, wherein the group chat creation request message is used to request the creation of a group chat with the second terminal, and the group chat creation request message is used by the group chat server to generate a group chat session H5 page resource for the group chat.
[0178] In the embodiment of the present disclosure, when the first terminal determines that a second terminal needs to be established for a group chat, the first terminal sends a group chat creation request message to the group chat server, requesting to establish a group chat between the second terminals.
[0179] When the group chat server receives the group chat creation request message sent by the first terminal, it can generate a group chat session H5 page resource of the group chat according to the group chat creation request message.
[0180] In the embodiment of the present disclosure, the first terminal sends a group chat creation request message to the group chat server, and the group chat creation request message may be sent to the group chat server through a first message protocol.
[0181] For example, the initiating user enters information about at least one invited user to create a group chat, such as the invited user's mobile phone number or unique identification code, on the group chat homepage H5 page of the first terminal. Based on the initiating user's operation, the first terminal then sends a group chat creation request to the group chat server. The group chat creation request message is used to request the creation of a group chat with the second terminal, which is the invited user's terminal.
[0182] S53: Receive a group creation notification message sent by the group chat server, where the group creation notification message is used to indicate whether the second terminal agrees to join the group chat.
[0183] In the embodiment of the present disclosure, when the first terminal sends a group chat creation request message to the group chat server to request to create a group chat with the second terminal, the first terminal can receive a group creation notification message sent by the group chat server.
[0184] In some embodiments, the group establishment notification message is used to indicate that the second terminal agrees to join the group chat, or the group establishment notification message is used to indicate that the second terminal refuses to join the group chat.
[0185] In some embodiments, the first terminal receives a group creation notification message sent by the group chat server through a first message protocol.
[0186] In some embodiments, the first terminal receives a first message carrying the group chat session URL sent by the group chat server based on the group chat session H5 page resource; sends a first request message to the group chat server to access the group chat session URL through a first message protocol; receives the group chat session H5 page resource sent by the group chat server; and renders and displays the group chat session H5 page based on the group chat session H5 page resource.
[0187] In the disclosed embodiment, a first terminal receives a first group chat session URL sent by a group chat server via a first message protocol; sends a first access group chat session URL to the group chat server via the first message protocol; and receives a group chat session H5 page resource sent by the group chat server via the first message protocol. The group chat session H5 page resource is used by the first terminal to render and display the group chat session H5 page. Thus, after receiving the group chat session H5 page resource, the first terminal can render and display the group chat session H5 page, and the initiating user can access the group chat session H5 page on the first terminal.
[0188] It is understandable that after the first terminal receives the group chat session H5 page resource, it renders and displays the group chat session H5 page. Since the second terminal has not been invited to join the group chat at this time, a prompt waiting for members to join can be displayed on the group chat session H5 page.
[0189] It can be understood that after the first terminal receives the group chat session H5 page resource, it renders and displays the group chat session H5 page. If it receives a group creation notification message sent by the group chat server, and the group creation notification message indicates that the second terminal agrees to join the group chat, then the second terminal has agreed to join the group chat. The initiating user can view the members who have joined the group chat on the group chat session H5 page, and send and receive group chat sessions, etc.
[0190] In some embodiments, the webview or browser of the first terminal renders and displays the group chat session H5 page.
[0191] In some embodiments, the group chat session H5 page resources include HTML, CSS, and JavaScript codes, and the browser (or webview) of the first terminal will render these codes to display the group chat session H5 page to the initiating user.
[0192] In some embodiments, the first terminal sends a first group chat message of the group chat to the group chat server through a first message protocol, wherein the first group chat message is used by the group chat server to forward to other terminals in the group chat except the first terminal.
[0193] In the embodiment of the present disclosure, when it is determined that the group chat is successfully created, that is, the first terminal of the initiating user and the second terminal of the invited user both enter the group chat, the first terminal can send a first group chat message to the group chat through the first message protocol. The group chat server receives the first group chat message sent by the first terminal and can send the first group chat message to other terminals in the group chat except the first terminal.
[0194] In some embodiments, the first terminal sends a query group list message to the group chat server through a first message protocol, wherein the query group list message is used by the group chat server to determine the stored group offline message of at least one existing group chat; the group list H5 page resource sent by the group chat server according to the query group list message is received; and the group list H5 page is rendered and displayed according to the group list H5 page resource.
[0195] In the embodiment of the present disclosure, the user of the first terminal can access the group chat homepage H5 page of the first terminal (browser or webview rendering display of the first terminal), and select query group list on the group chat homepage H5 page, so that the first terminal can send a query group list message to the group chat server through the first message protocol.
[0196] In some embodiments, the first terminal receives a group list H5 page resource sent by the group chat server through the first message protocol according to the group list query message.
[0197] Among them, when the group chat server receives the query group list message sent by the first terminal, it can send the group list H5 page resource to the first terminal, so that the first terminal (the browser or webview of the first terminal) can receive the group list H5 page resource and render and display the group list H5 page according to the group list H5 page resource.
[0198] In some embodiments, the first terminal sends a fourth request message for accessing the group chat session URL of a specific group to the group chat server through the first message protocol, where the specific group is any one of the existing group chats; receives the group chat session H5 page resource of the specific group sent by the group chat server; sends a group offline message acquisition request for the specific group to the group chat server; and receives the group offline message of the specific group sent by the group chat server based on the group offline message acquisition request.
[0199] In an embodiment of the present disclosure, the first terminal can send an access group chat session URL of a specific group to the group chat server, where the specific group is any one of the existing group chats. Since the group chat server stores the group offline messages of the existing group chats, the group chat server can send the group chat session H5 page resource of the specific group to the first terminal after receiving the access group chat session URL of the specific group sent by the first terminal. The first terminal can render and display the group chat session H5 page of the specific group based on the group chat session H5 page resource of the specific group, so that the user of the first terminal can access the group chat session H5 page of the specific group and perform offline message pull operations. The first terminal can send a group offline message acquisition request for the specific group to the group chat server. The group chat server can send the group offline message of the specific group to the first terminal based on the group offline message acquisition request for the specific group sent by the first terminal, so that the user of the first terminal can view the group offline message of the specific group.
[0200] In some embodiments, the first terminal receives the H5 page resource of the group chat session of a specific group sent by the group chat server through the first message protocol, and then sends a group offline message acquisition request of the specific group to the group chat server through the first message protocol, and then receives the group offline message of the specific group sent by the group chat server through the first message protocol according to the group offline message acquisition request.
[0201] In some embodiments, the first terminal sends a group management access message to the group chat server through the first message protocol, wherein the group management access message is used to request an access operation to the group chat where the first terminal is located; receives the group management H5 page resource sent by the group chat server according to the group management access message; renders and displays the group management H5 page of the group chat according to the group management H5 page resource; determines the specified group management operation to be performed; sends a group management operation message to the group chat server through the first message protocol, wherein the group management operation message is used to request a specified group management operation to be performed on the group chat; receives the group management operation feedback message sent by the group chat server.
[0202] In an embodiment of the present disclosure, the first terminal can provide a group chat session H5 page. The user of the first terminal can perform an operation to access the group management page on the group chat session H5 page, so that the first terminal sends a group management access message to the group chat server. After the group chat server receives the group management access message sent by the first terminal, it can send a group management H5 page resource to the first terminal according to the group management access message. The first terminal can render and display the group management H5 page according to the group management H5 page resource. The user of the first terminal can perform a specified group management operation on the group management H5 page, so that the first terminal sends a group management operation message to the group chat server. The group chat server can perform the specified group management operation according to the group management operation message and send a group management operation feedback message to the first terminal.
[0203] Exemplarily, the designated group management operations may include modifying group-related information, setting a do-not-disturb message setting, modifying the group name, publishing a group announcement, inviting new members, deleting members, and the like.
[0204] In some embodiments, the first terminal receives a group management H5 page resource sent by the group chat server through the first message protocol according to the group management access message.
[0205] In some embodiments, the first terminal receives a group management operation feedback message sent by the group chat server through a first message protocol.
[0206] It should be noted that, for the relevant description of the group chat control method executed by the first terminal in the embodiment of the present disclosure, reference can be made to the relevant description of the group chat control method executed by the group chat server in the above embodiment, which will not be repeated here.
[0207] By implementing the embodiments of the present disclosure, the problem of excessive dependence of the group chat function on the terminal can be solved, and a unified and complete group chat service can be obtained by ordinary terminals, which can improve the user experience.
[0208] Figure 6 The figure is a flow chart of a group chat control method according to another exemplary embodiment.
[0209] like Figure 6 As shown, the group chat control method provided by the embodiment of the present disclosure is executed by the second terminal, including but not limited to the following steps:
[0210] S61, receiving a group invite message sent by the group chat server through the second message protocol, wherein the group invite message carries the group chat session URL and is used to invite the second terminal to join the group chat. The group invite message is sent by the group chat server after receiving the group chat creation request message sent by the first terminal and generating a group chat session H5 page resource for the group chat. The group chat creation request message is used to request to establish a group chat with the second terminal.
[0211] In the embodiment of the present disclosure, the second terminal receives a group invitation message sent by the group chat server, where the group invitation message is used to invite the second terminal to join the group chat.
[0212] The group invitation message is sent by the group chat server after receiving the group chat creation request message sent by the first terminal and generating the group chat session H5 page resource for the group chat. The group chat creation request message is used to request the creation of a group chat with the second terminal.
[0213] In the embodiment of the present disclosure, the first terminal may be the terminal of the initiator user who initiates the group chat creation. For example, user A wants to create a group chat with user B. User A initiates the group chat creation process with user B on his terminal. The first terminal may be user A's terminal, and the second terminal may be user B's terminal.
[0214] In some embodiments, the first terminal is a terminal that supports 5G messages, or is a common terminal, or is a terminal that supports standard 5G message group chat.
[0215] In some embodiments, the second terminal is a terminal that supports 5G messages, or is an ordinary terminal, or is a terminal that supports standard 5G message group chat.
[0216] In some embodiments, the second message protocol is used for sending and receiving standard 5G messages.
[0217] In some embodiments, the group chat server encapsulates the group invitation message into a standard 5G message card format defined by the MaaP interface, and sends it to the second terminal through MaaP and 5GMC.
[0218] In some embodiments, the GC AS of the group chat server notifies the H5 server of the group chat server to generate a group chat session H5 page resource for the group chat based on the group chat creation request message. The H5 server of the group chat server generates a group chat session H5 page resource for the group chat and a group chat session uniform resource locator (Uniform Resource Locator, URL) pointing to the group chat session H5 page based on the notification of the GCAS of the group chat server. Then, the group chat session URL of the group chat session H5 page is fed back to the GC AS of the group chat server, so that the GC AS of the group chat server generates a group invitation message according to the group chat session URL of the group chat session H5 page, and forwards it to the MaaP access module of the group chat server. The MaaP access module of the group chat server encapsulates the group invitation message into the standard 5G message card format defined by the MaaP interface, and sends it to the second terminal through MaaP and 5GMC.
[0219] For example, the group invitation message is a standard 5G message chatbot card, which contains an official 5G message group chat picture, a group invitation prompt (such as A invites you to join group xx), and accept and reject buttons. The accept and reject buttons are set with feedback information (postpack) and the action of jumping to the group chat session URL.
[0220] In some embodiments, the group chat server sends a group invitation message to the second terminal. The group invitation message is used to invite the second terminal to join the group chat. The invited user can use the second terminal to perform related operations, such as agreeing to join the group chat, or refusing to join the group chat, viewing the group chat homepage information, etc.
[0221] S62: Send a feedback message to the group chat server, where the feedback message is used to indicate whether the second terminal agrees to join the group chat.
[0222] In the embodiment of the present disclosure, the invited user uses the second terminal to perform relevant operations, and the second terminal determines whether to agree to join the group chat or refuse to join the group chat.
[0223] Based on this, the second terminal may send a feedback message to the group chat server, where the feedback message is used to indicate that the second terminal agrees to join the group chat, or the feedback message is used to indicate that the second terminal refuses to join the group chat.
[0224] In some embodiments, the second terminal sends a feedback message to the group chat server through a second message protocol.
[0225] In some embodiments, the second terminal sends a feedback message to the group chat server through MaaP and 5GMC.
[0226] In some embodiments, the second terminal sends a feedback message to the MaaP access module of the group chat server through MaaP and 5GMC, and the MaaP access module of the group chat server forwards the feedback message to the GC AS of the group chat server. After receiving the feedback message, the GC AS of the group chat server determines whether the second terminal agrees to join the group chat.
[0227] In some embodiments, the GC AS of the group chat server determines that the second terminal agrees to join the group chat, and determines that the group chat creation is successful, or the GC AS of the group chat server determines that the second terminal refuses to join the group chat, and determines that the group chat creation fails.
[0228] In some embodiments, the second terminal sends a second request message for accessing the group chat session URL to the group chat server through the first message protocol; the receiving group chat server determines that the identity authentication of the second terminal is passed based on the second request message, and sends the group chat session H5 page resource; based on the group chat session H5 page resource, the group chat session H5 page is rendered and displayed.
[0229] In the embodiment of the present disclosure, the second terminal sends a feedback message to the group chat server. The feedback message is used to indicate that the second terminal agrees to join the group chat. The second terminal can call up the webview embedded in the 5G message and send a second request message to the group chat server to access the URL of the group chat session. After the group chat server receives the second request message sent by the second terminal, it can authenticate the identity of the second terminal. When it is determined that the identity authentication is passed, it can send the group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used for the second terminal to render and display the group chat session H5 page. Thus, after the second terminal receives the group chat session H5 page resource, it can render and display the group chat session H5 page. The invited user can access the group chat session H5 page on the second terminal for sending and receiving group chat sessions, as well as viewing members who have joined the group chat.
[0230] In some embodiments, the second terminal receives the group chat session H5 page resource sent by the group chat server through the first message protocol.
[0231] In some embodiments, the webview or browser of the second terminal renders and displays the group chat session H5 page.
[0232] In some embodiments, the second terminal receives a first group chat message sent by the group chat server through the first message protocol, wherein the first group chat message is received by the group chat server from the first terminal; and / or receives a second group chat message sent through the first message protocol after the group chat server determines that the second terminal has restored the first message protocol connection, wherein the second group chat message is received and stored by the group chat server from the first terminal when the second terminal is in a connection other than the first message protocol.
[0233] In the embodiment of the present disclosure, when it is determined that the group chat is successfully created, that is, the first terminal of the initiating user and the second terminal of the invited user both enter the group chat, the first terminal can send a first group chat message of the group chat through the first message protocol. The group chat server receives the first group chat message sent by the first terminal and can send the first group chat message to other terminals in the group chat except the first terminal, such as the second terminal, so that the second terminal receives the first group chat message sent by the group chat server.
[0234] It can be understood that the group chat is created successfully, that is, the first terminal of the initiating user and the second terminal of the invited user both enter the group chat. If the first terminal is in the H5 online state (that is, the webview of the first terminal establishes a connection with the H5 server of the group chat server, and the first terminal is in the first message protocol connection state), the initiating user can enter the chat message in the group chat session H5 page of the first terminal, and the first terminal sends the first group chat message to the group chat server (the H5 server of the group chat server). After the group chat server (the H5 server of the group chat server) receives the first group chat message, it can send the first group chat message to the second terminal in the H5 online state (that is, the webview of the second terminal establishes a connection with the H5server of the group chat server, and the first terminal is in the first message protocol connection state).
[0235] In an embodiment of the present disclosure, if the second terminal is in an H5 offline state (that is, the webview of the second terminal loses connection with the H5 server of the group chat server, and the second terminal is in a non-first message protocol connection state), the group chat server (the H5 server of the group chat server) receives the second group chat message of the group chat sent by the first terminal. When it is determined that the second terminal other than the first terminal in the group chat is in a non-first message protocol connection state (that is, in an H5 offline state), the second group chat message can be stored, and after determining that the second terminal has restored the first message protocol connection state (that is, is in an H5 online state), the second group chat message is sent to the second terminal.
[0236] In some embodiments, the second terminal receives the second group chat message sent by the group chat server through the first message protocol after the group chat server determines that the second terminal has restored the connection state of the first message protocol, including: receiving a new group chat message notification sent by the group chat server through the second message protocol, wherein the new group chat message notification carries the second group chat message and the group chat session URL; sending a third request message for accessing the group chat session URL to the group chat server through the first message protocol, wherein the third request message is used by the group chat server to determine that the second terminal has restored the connection state of the first message protocol; receiving a group chat session H5 page resource sent by the group chat server; rendering and displaying the group chat session H5 page according to the group chat session H5 page resource; determining that offline message retrieval is required, and sending an offline message retrieval request to the group chat server; and receiving the second group chat message sent by the group chat server.
[0237] In the embodiment of the present disclosure, the group chat server (the H5 server of the group chat server) determines that the second terminal is in a non-first message protocol connection state (that is, in an H5 offline state), and can send a group chat new message notification carrying the second group chat message and the group chat session URL to the second terminal through the second message protocol. Therefore, after receiving the group chat new message notification, the second terminal can send a third request message for accessing the group chat session URL to the group chat server (the H5 server of the group chat server) through the first message protocol. Upon receiving the third request message sent by the second terminal, the group chat server (the H5 server of the group chat server) can determine that the second terminal has restored the first message protocol connection state (that is, is in the H5 online state).
[0238] In the disclosed embodiment, the group chat server (the H5 server of the group chat server) determines that the second terminal has restored the first message protocol connection state and can send a group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used by the second terminal to render and display the group chat session H5 page. As a result, the user of the second terminal can perform an offline message pull operation on the group chat session H5 page. The second terminal sends an offline message retrieval request to the group chat server (the H5 server of the group chat server). The group chat server (the H5 server of the group chat server) can send a second group chat message to the second terminal based on the offline message retrieval request sent by the second terminal.
[0239] In some embodiments, the second terminal receives the group chat session H5 page resource sent by the group chat server through the first message protocol.
[0240] In some embodiments, the second terminal determines that offline message acquisition is required, and sends an offline message acquisition request to the group chat server through the first message protocol.
[0241] In some embodiments, the second terminal receives a second group chat message sent by the group chat server through the first message protocol.
[0242] It should be noted that, for the relevant description of the group chat control method executed by the second terminal in the embodiment of the present disclosure, reference can be made to the relevant description of the group chat control method executed by the group chat server and / or the first terminal in the above embodiment, which will not be repeated here.
[0243] By implementing the embodiments of the present disclosure, the problem of excessive dependence of the group chat function on the terminal can be solved, and a unified and complete group chat service can be obtained by ordinary terminals, which can improve the user experience.
[0244] To facilitate understanding of the embodiments of the present disclosure, the following exemplary embodiments are provided.
[0245] In an exemplary embodiment, Figure 7As shown, the first terminal is taken as user A's 5G message terminal as an example for explanation.
[0246] 1. User A searches for a group chat chatbot on a 5G messaging terminal (see the first terminal in the above embodiment, the same below).
[0247] 2. MaaP returns group chatbot information to the 5G messaging terminal.
[0248] 3. User A enters the group chat chatbot page and clicks the group chat homepage button in the fixed menu.
[0249] 4. The 5G message terminal calls up the webview.
[0250] 5. Access the group chat homepage H5 page through webview (see the above embodiment, the first terminal sends a group homepage access request to the group chat server).
[0251] 6. The H5 Server authenticates user A. Preferably, the 5G messaging terminal and the H5 Server use the standard-defined GBA authentication mechanism for identity authentication.
[0252] 7. After authentication is passed, the H5 Server returns the H5 page resources of the group chat homepage to the 5G messaging terminal.
[0253] 8. The webview of the 5G messaging terminal renders and displays the H5 page of the group chat homepage; user A clicks "Create Group Chat" on the H5 page of the group chat homepage, enters the mobile phone numbers of the initial group members B and / or C, and then initiates a group chat creation request.
[0254] 9. The webview of the 5G message terminal sends the group chat creation request message to the H5 Server (see the above embodiment, the first terminal sends a group chat creation request message to the group chat server).
[0255] 10. The H5 Server forwards the group chat creation request message to the GC AS.
[0256] 11. GC AS accepts the group chat creation request message and pre-allocates a group ID. The group ID is a number that is extended by a few digits in the group chat chatbot ID and is unique across the entire network.
[0257] 12. GC AS notifies the H5 server to generate the group chat session H5 page resources, including static resources such as group avatar, group name, group chat window, etc.
[0258] 13. The H5 Server generates a group chat session H5 page resource and a group chat session URL pointing to the group chat session H5 page.
[0259] 14. The H5 Server returns the group chat session URL to user A's 5G messaging terminal (see the above embodiment, where the group chat server sends the first group chat session URL to the first terminal).
[0260] 15. The webview of user A's 5G messaging terminal automatically accesses the group chat session URL (see the above embodiment, the first terminal sends a first access group chat session URL to the group chat server).
[0261] 16. The H5 Server returns the group chat session H5 page resource to the 5G messaging terminal of user A (see the above embodiment, the group chat server sends the group chat session H5 page resource to the first terminal).
[0262] 17. The webview of user A's 5G messaging terminal renders and displays the group chat session H5 page. Since the invited user has not joined at this time, the page displays a prompt waiting for members to join.
[0263] In another exemplary embodiment, Figure 8 As shown above, Figure 7 The group creation process shown is illustrated by taking the first terminal as user A's 5G message terminal and the second terminal as user B / C's 5G message terminal as an example.
[0264] 1. GC AS accepts the request to create a group from user A’s 5G messaging terminal and pre-allocates the group ID (same as Figure 7 11).
[0265] 2. The H5 Server generates the group chat session H5 page resource and the URL pointing to the page.
[0266] 3. The H5 Server sends the URL of the group chat session H5 page to the GC AS;
[0267] 4. GC AS constructs a group invitation message for user B / C 5G message terminal and forwards it to the MaaP access module.
[0268] 5. The MaaP access module encapsulates the group invitation message into the standard 5G message card format defined by the MaaP interface. The group invitation message is a standard 5G message chatbot card, which contains an official 5G message group chat picture, a group invitation prompt (such as A invites you to join group xx), and accept and reject buttons. The accept and reject buttons are set with feedback information (postpack) and the action of jumping to the group chat session URL.
[0269] 6. The MaaP access module sends a 5G message card group invitation message to MaaP.
[0270] 7. MaaP forwards the 5G message card group invitation message to 5GMC.
[0271] 8. The 5GMC sends a 5G message card group invitation to the user B / C 5G message terminal (see the above embodiment, the group chat server sends a group invitation message to the second terminal).
[0272] 9. User B / C clicks the Accept button.
[0273] 10. User B / C 5G message terminal sends a feedback message to 5GMC.
[0274] 11. User B / C's 5G messaging terminal activates the built-in webview and accesses the group chat session page URL.
[0275] 12. 5GMC forwards the feedback information of user B / C 5G message terminal to MaaP (see the above embodiment, the second terminal sends a feedback message to the group chat server).
[0276] 13. Maap forwards the feedback message to the MaaP access module.
[0277] 14. The MaaP access module forwards the feedback message from user B / C 5G message terminal to GC AS.
[0278] 15. When GC AS receives the feedback message sent by user B / C 5G message terminal accepting the group chat, the group chat is officially created successfully and the group ID officially takes effect.
[0279] 16. GC AS adds the group user to the database and notifies H5 Server user B / C 5G messaging terminal to join the group chat.
[0280] 17. The H5 Server sends a group event notification message to user A's 5G messaging terminal, notifying user B / C's 5G messaging terminal of joining the group (see the above embodiment, where the group chat server sends a group creation notification message to the first terminal). (Note: If, within a certain waiting time, all invited users do not respond or refuse to join the group, the group chat creation fails, the pre-assigned group ID becomes invalid, and the GC AS notifies user A's 5G messaging terminal of the group creation failure.)
[0281] 18. After user B / C's 5G message terminal calls up the webview embedded in the 5G message, it accesses the group chat session URL (see the above embodiment, the second terminal sends a second access group chat session URL to the group chat server).
[0282] 19. The H5 server receives the access request from user B / C's 5G messaging terminal and interacts with the client to complete login identity authentication.
[0283] 20. The H5 Server queries whether the GC AS user B / C 5G messaging terminal has joined the group.
[0284] 21. GC AS reports that user B / C 5G messaging terminal has joined the group.
[0285] 22. The H5 Server returns the group chat session H5 page resource to the user B / C 5G messaging terminal (see the above embodiment, the group chat server sends the group chat session H5 page resource to the second terminal).
[0286] 23. The webview of user B / C's 5G messaging terminal renders and displays the group chat session H5 page.
[0287] It should be noted that the execution order of step 11 and any one of steps 12 to 17 can be interchanged, that is, step 11 can be executed after any one of steps 12 to 17.
[0288] In yet another exemplary embodiment, Figure 9 As shown, the first terminal is user B's 5G message terminal and the second terminal is user A's 5G message terminal as an example for explanation.
[0289] User B's 5G messaging terminal, which is H5 online (i.e., the webview is connected to the H5 server), can enter a chat message on the group chat session page and send it to the H5 Server (see the above embodiment, the first terminal sends the first group chat message to the group chat server), and the H5 Server forwards it to other H5 online users in the group chat (see the above embodiment, the group chat server sends the first group chat message to the second terminal), and at the same time, stores messages for offline users.
[0290] Among them, after the offline user re-accesses the H5 Server, the offline message is pulled again (see the above embodiment, the group chat server receives the third access group chat session URL sent by the second terminal, determines that the second terminal has resumed the online state; sends the group chat session H5 page resource to the second terminal; receives the offline message acquisition request sent by the second terminal; and sends the second group chat message to the second terminal according to the offline message acquisition request).
[0291] Optionally, when the H5 server detects that the user's H5 is offline (the H5 server has lost connection with the user's webview), it reports the user offline to the GC AS. The GC AS generates a group message notification, encapsulating it as a standard 5G messaging chatbot card with a View Details button. The card is then sent to the user terminal via MaaP and 5GMC. The user clicks the View Details button, which launches the webview / browser to access the group chat session URL and enter the chat page.
[0292] In yet another exemplary embodiment, Figure 10 As shown, the first terminal is taken as user A's 5G message terminal as an example for explanation.
[0293] When user A's 5G message terminal accesses the group homepage, the H5 Server queries the GC AS for the list information (group avatar, group name, number of people, etc.) of all groups created or joined by the user, and integrates information such as the number of offline messages of each group during the user's offline period to form a complete group homepage H5 resource, which is returned to user A's 5G message terminal. The user clicks on a group chat, which jumps to the group chat session URL and proceeds to the group conversation page (see the above embodiment, the group chat server receives the query group list message sent by the first terminal; based on the query group list message, sends the group list H5 page resource to the first terminal) (see the above embodiment, the group chat server determines the stored group offline message of at least one existing group chat based on the query group list message; receives the access group chat session URL of a specific group sent by the first terminal, wherein the specific group is any one of the existing group chats; sends the group chat session H5 page resource of the specific group to the first terminal; receives the group offline message acquisition request of the specific group sent by the first terminal; based on the group offline message acquisition request, sends the group offline message of the specific group to the first terminal.).
[0294] Preferably, users can save important group chats to the information list for quick and easy access to the group chat.
[0295] In yet another exemplary embodiment, Figure 11 As shown, the first terminal is user A's 5G message terminal, and the other terminals in the group chat except the first terminal are user B / C's 5G message terminals.
[0296] The group chat session page provides an entrance to group management, and the user clicks to enter the group management page. On the group management page, users can add / remove group members, modify the group name, publish group announcements, set message do not disturb, and other operations. (See the above embodiment, the group chat server receives a group management access message sent by the first terminal, wherein the group management access message is used to request access to the group chat where the first terminal is located; according to the group management access message, the group management H5 page resource is sent to the first terminal; the group management operation message sent by the first terminal is received, wherein the group management operation message is used to request a specified group management operation for the group chat; according to the group management operation message, the specified group management operation is executed; a group management operation feedback message is sent to the first terminal; a group event notification message is sent to other terminals in the group chat except the first terminal, wherein the group event notification message is used to indicate the result of executing the specified group management operation).
[0297] In the disclosed embodiment, the 5G messaging group chat server is connected to the MaaP platform as a group chat chatbot application. A fixed menu button of the group chat chatbot is configured as the entrance to the group chat homepage. When a terminal clicks the fixed menu button, a webview / browser is launched to access the group chat homepage provided by the group chat server's H5 server, allowing operations such as creating a group and querying the group list. From the group chat homepage, users can further jump to the group chat session, group management, and other pages for related group chat interactions.
[0298] In the disclosed embodiment, the initiating user searches for the group chat chatbot through a standard 5G message terminal and enters the chatbot session page, and clicks the group chat homepage button in the fixed menu, that is, accesses the group chat homepage H5 page through the webview / browser. When the user initiates the creation of a group on the group chat homepage H5 page, the group chat server generates an invitation message, encapsulates it into a standard 5G message chatbot card message, and sends it to the invited user through MaaP and 5GMC. The card message contains a picture, a group invitation prompt, and accept and reject buttons. The invited user clicks the accept button to join the group chat, and clicks reject to not join the group chat. At the same time, the terminal transmits the user's acceptance or rejection feedback information to the group chat server via 5GMC and MaaP, and the group chat server then notifies the initiator.
[0299] In the embodiment of the present disclosure, when the group chat server accepts a group creation request, it pre-allocates a group ID, and the H5 server allocates H5 page resources for the group chat session, including group avatars, group names, group chat windows, etc., and returns the URL of the H5 page of the group chat session to the user terminal. The webview / browser of the user terminal automatically jumps to the group chat H5 page according to the URL of the group chat session.
[0300] In the disclosed embodiment, GC AS constructs a group invitation message for user B / C and sends it to the invited user through 5G message MaaP and 5GMC. The group invitation message is a standard 5G message chatbot card, which contains an official 5G message group chat picture, a group invitation prompt (such as A invites you to join group xx), and accept and reject buttons. The accept and reject buttons are set with feedback information (postpack) and the action of jumping to the group chat session URL.
[0301] In this disclosed embodiment, group services are connected to MaaP via chatbot, and group management and group chat messaging services are HTML5-based. Terminals can perform complex group management and group chat messaging through a webview / browser. Compared to the RCS standard group chat solution, the development of new group-related functions, optimization of interaction methods, and business innovation proposed in this disclosed embodiment only need to be implemented on the group chat server side, without requiring upgrades to the 5G messaging infrastructure or terminals. This allows for rapid deployment and supports the development and iteration of services.
[0302] Figure 12 The figure is a structural diagram of a communication device according to an exemplary embodiment.
[0303] like Figure 12 As shown, the communication device 1 includes a transceiver module 1A and a processing module 1B.
[0304] In some embodiments, the communication device 1 is applied to a group chat server, wherein:
[0305] The transceiver module 1A is used to receive a group chat creation request message sent by the first terminal through the first message protocol when the first terminal determines on the group homepage Hypertext Markup Language H5 page that a second terminal needs to be established for group chat, wherein the group chat creation request message is used to request to establish a group chat with the second terminal.
[0306] The processing module 1B is configured to generate a group chat session H5 page resource for the group chat according to the group chat creation request message.
[0307] The transceiver module 1A is further configured to send a group invitation message to the second terminal via a second message protocol based on the group chat session H5 page resource, wherein the group invitation message carries a group chat session uniform resource locator URL, for inviting the second terminal to join the group chat.
[0308] The transceiver module 1A is further configured to receive a feedback message sent by the second terminal, wherein the feedback message is used to indicate whether the second terminal agrees to join the group chat.
[0309] The transceiver module 1A is further configured to send a group establishment notification message to the first terminal according to the feedback message, wherein the group establishment notification message is used to indicate whether the second terminal agrees to join the group chat.
[0310] Optionally, the transceiver module 1A is also used to send a first message carrying the group chat session URL to the first terminal based on the group chat session H5 page resource; receive a first request message for accessing the group chat session URL sent by the first terminal through the first message protocol; and send the group chat session H5 page resource to the first terminal, wherein the group chat session H5 page resource is used by the first terminal to render and display the group chat session H5 page.
[0311] Optionally, the transceiver module 1A is further configured to receive a second request message for accessing the group chat session URL, which is sent by the second terminal through the first message protocol.
[0312] The processing module 1B is further configured to perform identity authentication on the second terminal according to the second request message.
[0313] The transceiver module 1A is further configured to determine whether the identity authentication is successful and send a group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used by the second terminal to render and display the group chat session H5 page.
[0314] Optionally, the transceiver module 1A is also used to receive the group chat chatbot information determined by the first terminal when it is in the second message protocol connection state, and determine the group chat homepage H5 page that needs to be accessed based on the group chat chatbot information, and send a group homepage access request based on the first message protocol through the browser or web view webview.
[0315] The processing module 1B is further configured to perform identity authentication on the first terminal according to the group homepage access request.
[0316] Optionally, the transceiver module 1A is further used to determine that the identity authentication is passed and send the group chat homepage H5 page resource to the first terminal, wherein the group chat homepage H5 page resource is used by the first terminal to render and display the group chat homepage H5 page.
[0317] Optionally, the processing module 1B is further configured to pre-allocate a group identifier for the group chat according to the group chat creation request message; and when the feedback message indicates that the second terminal agrees to join the group chat, determine that the group chat creation is successful and the group identifier is effective.
[0318] Optionally, the transceiver module 1A is also used to receive a first group chat message of a group chat sent by the first terminal through the first message protocol, and send the first group chat message to other terminals in the group chat except the first terminal; and / or receive a second group chat message of a group chat sent by the first terminal through the first message protocol, determine that the second terminal in the group chat except the first terminal is in a non-first message protocol connection state, store the second group chat message, and send the second group chat message to the second terminal after determining that the second terminal has restored the first message protocol connection state.
[0319] Optionally, the transceiver module 1A is also used to send a group chat new message notification to the second terminal through a second message protocol, wherein the group chat new message notification carries the second group chat message and the group chat session URL; receive a third request message for accessing the group chat session URL sent by the second terminal through the first message protocol, and determine that the second terminal has restored the first protocol connection state; send a group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used for the second terminal to render and display the group chat session H5 page; receive an offline message acquisition request sent by the second terminal; and send a second group chat message to the second terminal according to the offline message acquisition request.
[0320] Optionally, the transceiver module 1A is also used to receive a query group list message sent by the first terminal through the first message protocol; according to the query group list message, a group list H5 page resource is sent to the first terminal, wherein the group list H5 page resource is used for the first terminal to render and display the group list H5 page.
[0321] Optionally, the processing module 1B is further configured to determine, based on the query group list message, a stored group offline message of at least one existing group chat.
[0322] The transceiver module 1A is further configured to receive a fourth request message for accessing a group chat session URL of a specific group sent by the first terminal via the first message protocol, wherein the specific group is any one of the existing group chats.
[0323] The transceiver module 1A is further configured to send the group chat session H5 page resource of the specific group to the first terminal.
[0324] The transceiver module 1A is further configured to receive a group offline message acquisition request of a specific group sent by the first terminal.
[0325] The transceiver module 1A is further configured to send a group offline message of a specific group to the first terminal according to the group offline message acquisition request.
[0326] Optionally, the transceiver module 1A is further configured to receive a group management access message sent by the first terminal via the first message protocol, wherein the group management access message is used to request an access operation to the group chat in which the first terminal is located.
[0327] The transceiver module 1A is further configured to send a group management H5 page resource to the first terminal according to the group management access message.
[0328] The transceiver module 1A is further configured to receive a group management operation message sent by the first terminal via the first message protocol, wherein the group management operation message is used to request a specified group management operation to be performed on the group chat.
[0329] The processing module 1B is further configured to execute a specified group management operation according to the group management operation message.
[0330] The transceiver module 1A is further configured to send a group management operation feedback message to the first terminal.
[0331] Optionally, the transceiver module 1A is also used to send a group event notification message to other terminals in the group chat that are in a first message protocol connection state except the first terminal through a first message protocol, wherein the group event notification message is used to indicate the result of executing a specified group management operation; and / or send a group event notification message to other terminals in the group chat that are in a non-first message protocol connection state except the first terminal through a second message protocol, wherein the group event notification message is used to indicate the result of executing a specified group management operation.
[0332] In some other embodiments, the communication device 1 is applied to a first terminal, wherein:
[0333] The processing module 1B is configured to enable a first terminal in a first message protocol connection state to determine, on the group chat homepage H5 page, a second terminal that needs to create a group chat.
[0334] The transceiver module 1A is used to send a group chat creation request message to the group chat server through the first message protocol, wherein the group chat creation request message is used to request the creation of a group chat between the second terminal, and the group chat creation request message is used by the group chat server to generate a group chat session H5 page resource for the group chat.
[0335] The transceiver module 1A is further configured to receive a group establishment notification message sent by the group chat server, wherein the group establishment notification message is used to indicate whether the second terminal agrees to join the group chat.
[0336] Optionally, the transceiver module 1A is also used to receive a first message carrying the group chat session URL sent by the group chat server based on the group chat session H5 page resource; send a first request message for accessing the group chat session URL to the group chat server through the first message protocol; and receive the group chat session H5 page resource sent by the group chat server.
[0337] The processing module 1B is further configured to render and display the group chat session H5 page based on the group chat session H5 page resources.
[0338] Optionally, the processing module 1B is further configured to enable the first terminal in the second message protocol connection state to determine group chatbot information; and determine a group chat homepage H5 page to be accessed based on the group chatbot information.
[0339] The transceiver module 1A is also used to send a group homepage access request based on the first message protocol to the group chat server through a browser or webview; and receive the group chat homepage H5 page resource sent by the group chat server when the group chat server determines that the identity authentication of the first terminal is passed.
[0340] The processing module 1B is further used to render and display the group chat homepage H5 page based on the group chat homepage H5 page resources.
[0341] Optionally, the transceiver module 1A is further configured to send a first group chat message of the group chat to the group chat server through a first message protocol, wherein the first group chat message is used by the group chat server to forward to other terminals in the group chat except the first terminal.
[0342] Optionally, the transceiver module 1A is also used to send a query group list message to the group chat server through the first message protocol, wherein the query group list message is used by the group chat server to determine the stored group offline message of at least one existing group chat; and receive the group list H5 page resource sent by the group chat server based on the query group list message.
[0343] The processing module 1B is further configured to render and display the group list H5 page based on the group list H5 page resources.
[0344] Optionally, the transceiver module 1A is also used to send a fourth request message for accessing the group chat session URL of a specific group to the group chat server through the first message protocol, where the specific group is any one of the existing group chats; receive the group chat session H5 page resource of the specific group sent by the group chat server; send a group offline message acquisition request for the specific group to the group chat server; and receive the group offline message of the specific group sent by the group chat server based on the group offline message acquisition request.
[0345] Optionally, the transceiver module 1A is also used to send a group management access message to the group chat server through the first message protocol, wherein the group management access message is used to request an access operation to the group chat where the first terminal is located; and receive the group management H5 page resources sent by the group chat server based on the group management access message.
[0346] The processing module 1B is further used to render and display the group management H5 page for group chat based on the group management H5 page resources; and determine the designated group management operation to be executed.
[0347] The transceiver module 1A is further configured to send a group management operation message to the group chat server via a first message protocol, wherein the group management operation message is used to request a specified group management operation for the group chat; and receive a group management operation feedback message sent by the group chat server.
[0348] In some further embodiments, the communication device 1 is applied to a second terminal, wherein:
[0349] The transceiver module 1A is used to receive a group invitation message sent by the group chat server through the second message protocol, wherein the group invitation message carries the group chat session URL and is used to invite the second terminal to join the group chat. The group invitation message is sent by the group chat server after receiving the group chat creation request message sent by the first terminal and generating the group chat session H5 page resource for the group chat. The group chat creation request message is used to request the creation of a group chat between the second terminal; and send a feedback message to the group chat server, wherein the feedback message is used to indicate whether the second terminal agrees to join the group chat.
[0350] Optionally, the transceiver module 1A is further used to send a second request message for accessing the group chat session URL to the group chat server through the first message protocol; the receiving group chat server determines that the second terminal identity authentication is passed based on the second request message, and sends the group chat session H5 page resource.
[0351] The processing module 1B is used to render and display the group chat session H5 page according to the group chat session H5 page resources.
[0352] Optionally, the transceiver module 1A is also used to receive a first group chat message sent by the group chat server through the first message protocol, wherein the first group chat message is received by the group chat server from the first terminal; and / or receive a second group chat message sent through the first message protocol after the group chat server determines that the second terminal has restored the first message protocol connection state, wherein the second group chat message is received and stored by the group chat server from the first terminal when the second terminal is in a non-first message protocol connection state.
[0353] Optionally, the transceiver module 1A is also used to receive a new group chat message notification sent by the group chat server through the second message protocol, wherein the new group chat message notification carries the second group chat message and the group chat session URL; send a third request message for accessing the group chat session URL to the group chat server through the first message protocol, wherein the third request message is used by the group chat server to determine whether the second terminal has restored the first message protocol connection status; and receive the group chat session H5 page resources sent by the group chat server.
[0354] The processing module 1B is used to render and display the group chat session H5 page according to the group chat session H5 page resources.
[0355] The transceiver module 1A is further configured to determine that offline message acquisition is required, send an offline message acquisition request to the group chat server, and receive a second group chat message sent by the group chat server.
[0356] It should be noted that, in the above embodiments, the description of the group chat control method embodiment is also applicable to the communication device and will not be repeated here.
[0357] It should also be noted that the beneficial effects achieved by the communication device are the same as those achieved by the group chat control method in the above embodiment, and will not be repeated here.
[0358] According to an embodiment of the present disclosure, an electronic device is further provided, comprising: a processor; and a memory for storing instructions executable by the processor, wherein the processor is configured to: implement the group chat control method disclosed in the embodiment of the present disclosure.
[0359] In order to implement the above embodiment, the embodiment of the present disclosure further proposes a storage medium.
[0360] When the instructions in the storage medium are executed by the processor, the processor is enabled to execute the group chat control method disclosed in the embodiment of the present disclosure.
[0361] In order to implement the above embodiments, the embodiments of the present disclosure also provide a computer program product.
[0362] When the computer program product is executed by a processor of an electronic device, the electronic device is enabled to execute the group chat control method disclosed in the embodiment of the present disclosure.
[0363] Figure 13 The figure is a structural block diagram of an electronic device according to an exemplary embodiment. Figure 13 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0364] like Figure 13 As shown, the electronic device 1000 includes a processor 111, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 112 or a program loaded from a memory 116 to a random access memory (RAM) 113. Various programs and data required for the operation of the electronic device 1000 are also stored in the RAM 113. The processor 111, the ROM 112, and the RAM 113 are connected to each other via a bus 114. An input / output (I / O) interface 115 is also connected to the bus 114.
[0365] The following components are connected to the I / O interface 115: a memory 116 including a hard disk, etc.; and a communication part 117 including a network interface card such as a local area network (LAN) card, a modem, etc., which performs communication processing via a network such as the Internet; a drive 118 is also connected to the I / O interface 115 as needed.
[0366] In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, an embodiment of the present disclosure includes a computer program carried on a computer-readable medium, the computer program including program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 117. When the computer program is executed by the processor 111, the above-mentioned functions defined in the method of the present disclosure are performed.
[0367] In an exemplary embodiment, a storage medium including instructions is further provided, such as a memory including instructions, and the instructions can be executed by the processor 111 of the electronic device 1000 to perform the above method. Alternatively, the storage medium can be a non-transitory computer-readable storage medium, for example, a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0368] In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical cable, RF, etc., or any suitable combination of the foregoing.
[0369] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0370] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A group chat control method, characterized in that: The method is executed by the group chat server and includes: receiving a group chat creation request message sent by a first terminal through a first messaging protocol when the first terminal determines on a group homepage Hypertext Markup Language (H5) page that a second terminal needs to establish a group chat, wherein the group chat creation request message is used to request the establishment of a group chat with the second terminal, and the first messaging protocol is used for sending and receiving H5 page messages; Generate a group chat session H5 page resource for the group chat according to the group chat creation request message; Sending a group invitation message to the second terminal through a second message protocol according to the group chat session H5 page resource, wherein the group invitation message carries a group chat session uniform resource locator (URL) for inviting the second terminal to join the group chat, and the second message protocol is used for sending and receiving standard 5G messages; receiving a feedback message sent by the second terminal, wherein the feedback message is used to indicate whether the second terminal agrees to join the group chat; Sending a group establishment notification message to the first terminal according to the feedback message, wherein the group establishment notification message is used to indicate whether the second terminal agrees to join the group chat; The method further comprises: Receiving a group homepage access request based on the first message protocol sent through a browser or web view webview when the first terminal determines the group chat chatbot information when the first terminal is in the second message protocol connection state and determines, based on the group chat chatbot information, the group chat homepage H5 page to be accessed; Performing identity authentication on the first terminal according to the group homepage access request; Determine that the identity authentication is successful, and send a group chat homepage H5 page resource to the first terminal, wherein the group chat homepage H5 page resource is used by the first terminal to render and display the group chat homepage H5 page.
2. The method according to claim 1, wherein The method further comprises: According to the group chat session H5 page resource, sending a first message carrying the group chat session URL to the first terminal; Receiving a first request message for accessing a group chat session URL sent by the first terminal through a first message protocol; The group chat session H5 page resource is sent to the first terminal, wherein the group chat session H5 page resource is used by the first terminal to render and display the group chat session H5 page.
3. The method according to claim 1, wherein The method further comprises: receiving a second request message for accessing the group chat session URL sent by the second terminal through the first message protocol; Performing identity authentication on the second terminal according to the second request message; Determine that the identity authentication is successful, and send the group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used by the second terminal to render and display the group chat session H5 page.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: pre-allocating a group identifier for the group chat according to the group chat creation request message; and In a case where the feedback message is used to indicate that the second terminal agrees to join the group chat, it is determined that the group chat is created successfully and the group identifier is valid.
5. The method according to any one of claims 1 to 3, characterized in that The method further comprises: receiving a first group chat message of the group chat sent by the first terminal through a first message protocol, and sending the first group chat message to other terminals in the group chat except the first terminal; and / or receiving a second group chat message of the group chat sent by the first terminal through a first message protocol, determining that a second terminal other than the first terminal in the group chat is in a non-first message protocol connection state, storing the second group chat message, and after determining that the second terminal has restored the first message protocol connection state, sending the second group chat message to the second terminal.
6. The method according to claim 5, wherein After determining that the second terminal has restored the first message protocol connection state, sending the second group chat message to the second terminal includes: Sending a group chat new message notification to the second terminal through a second message protocol, wherein the group chat new message notification carries the second group chat message and the group chat session URL; receiving a third request message for accessing the group chat session URL sent by the second terminal through the first message protocol, and determining that the second terminal has restored the first protocol connection state; Sending the group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used by the second terminal to render and display the group chat session H5 page; receiving an offline message acquisition request sent by the second terminal; Send the second group chat message to the second terminal according to the offline message acquisition request.
7. The method according to any one of claims 1 to 3, characterized in that The method further comprises: receiving a query group list message sent by the first terminal through a first message protocol; According to the group list query message, a group list H5 page resource is sent to the first terminal, wherein the group list H5 page resource is used by the first terminal to render and display the group list H5 page.
8. The method according to claim 7, wherein The method further comprises: Determining, according to the query group list message, a stored group offline message of at least one existing group chat; receiving a fourth request message for accessing a group chat session URL of a specific group sent by the first terminal through a first message protocol, wherein the specific group is any one of the existing group chats; Sending the group chat session H5 page resource of the specific group to the first terminal; receiving a group offline message acquisition request of the specific group sent by the first terminal; The group offline message of the specific group is sent to the first terminal according to the group offline message acquisition request.
9. The method according to any one of claims 1 to 3, characterized in that The method further comprises: receiving a group management access message sent by the first terminal through a first message protocol, wherein the group management access message is used to request an access operation to the group chat in which the first terminal is located; Sending a group management H5 page resource to the first terminal according to the group management access message; receiving a group management operation message sent by the first terminal through a first message protocol, wherein the group management operation message is used to request a specified group management operation to be performed on the group chat; Executing the specified group management operation according to the group management operation message; Sending a group management operation feedback message to the first terminal.
10. The method according to claim 9, wherein The method further comprises: Sending a group event notification message to other terminals in the group chat that are in a first messaging protocol connection state except the first terminal via a first messaging protocol, wherein the group event notification message is used to indicate a result of performing the specified group management operation; and / or A group event notification message is sent to other terminals in the group chat that are not in the first messaging protocol connection state except the first terminal through a second messaging protocol, wherein the group event notification message is used to indicate a result of executing the specified group management operation.
11. A group chat control method, characterized in that: The method is performed by a first terminal and includes: The first terminal in the first message protocol connection state determines, on the group chat homepage H5 page, that a second terminal for group chat needs to be created; Sending a group chat creation request message to the group chat server through a first message protocol, wherein the group chat creation request message is used to request the creation of a group chat with the second terminal, and the group chat creation request message is used by the group chat server to generate a group chat session H5 page resource for the group chat, wherein the first message protocol is used for sending and receiving H5 page messages; receiving a group creation notification message sent by the group chat server, wherein the group creation notification message is used to indicate whether the second terminal agrees to join the group chat; The method further comprises: The first terminal in the second message protocol connection state determines group chatbot information; Determine the group chat homepage H5 page that needs to be accessed based on the group chat chatbot information; Sending a group homepage access request based on the first message protocol to the group chat server through a browser or webview; receiving a group chat homepage H5 page resource sent by the group chat server when the group chat server determines that the identity authentication of the first terminal is passed; According to the H5 page resource of the group chat homepage, the H5 page of the group chat homepage is rendered and displayed.
12. The method according to claim 11, wherein The method further comprises: Receiving a first message carrying a group chat session URL sent by the group chat server according to the group chat session H5 page resource; Sending a first request message for accessing the group chat session URL to the group chat server through a first message protocol; Receiving the group chat session H5 page resource sent by the group chat server; Render and display the group chat session H5 page according to the group chat session H5 page resource.
13. The method according to claim 11 or 12, wherein: The method further comprises: A first group chat message of the group chat is sent to the group chat server through a first message protocol, wherein the first group chat message is used by the group chat server to forward to other terminals in the group chat except the first terminal.
14. The method according to claim 11 or 12, wherein: The method further comprises: Sending a query group list message to the group chat server through a first message protocol, wherein the query group list message is used by the group chat server to determine a stored group offline message of at least one existing group chat; Receiving a group list H5 page resource sent by the group chat server according to the group list query message; The group list H5 page is rendered and displayed according to the group list H5 page resource.
15. The method according to claim 14, wherein The method further comprises: Sending a fourth request message for accessing the group chat session URL of a specific group to the group chat server through the first message protocol, wherein the specific group is any one of the existing group chats; Receiving the group chat session H5 page resource of the specific group sent by the group chat server; Sending a request for obtaining offline messages of the specific group to the group chat server; Receive the group offline message of the specific group sent by the group chat server according to the group offline message acquisition request.
16. The method according to claim 12, wherein The method further comprises: Sending a group management access message to the group chat server through a first message protocol, wherein the group management access message is used to request an access operation to the group chat where the first terminal is located; Receiving the group management H5 page resource sent by the group chat server according to the group management access message; Render and display the group management H5 page of the group chat based on the group management H5 page resource; Determine the designated group management operation to be performed; Sending a group management operation message to the group chat server through a first message protocol, wherein the group management operation message is used to request the specified group management operation to be performed on the group chat; Receive a group management operation feedback message sent by the group chat server.
17. A group chat control method, characterized in that: The method is performed by the second terminal and includes: Receiving a group invitation message sent by the group chat server through a second message protocol, wherein the group invitation message carries a group chat session URL and is used to invite the second terminal to join the group chat. The group invitation message is sent by the group chat server after receiving a group chat creation request message sent by the first terminal and generating a group chat session H5 page resource for the group chat. The group chat creation request message is used to request the creation of a group chat with the second terminal. The second message protocol is used for sending and receiving standard 5G messages; Sending a feedback message to the group chat server, wherein the feedback message is used to indicate whether the second terminal agrees to join the group chat; The method further comprises: The first terminal in the second message protocol connection state determines group chatbot information; Determine the group chat homepage H5 page that needs to be accessed based on the group chat chatbot information; Sending a group homepage access request based on the first message protocol to the group chat server through a browser or webview; receiving a group chat homepage H5 page resource sent by the group chat server when the group chat server determines that the identity authentication of the first terminal is passed; According to the H5 page resource of the group chat homepage, the H5 page of the group chat homepage is rendered and displayed.
18. The method according to claim 17, wherein The method further comprises: Sending a second request message for accessing the group chat session URL to the group chat server through the first message protocol; receiving the group chat session H5 page resource sent by the group chat server based on the second request message and determining that the identity authentication of the second terminal is passed; Render and display the group chat session H5 page according to the group chat session H5 page resource.
19. The method according to claim 17 or 18, wherein: The method further comprises: receiving a first group chat message sent by the group chat server through a first message protocol, wherein the first group chat message is received by the group chat server from the first terminal; and / or receiving a second group chat message sent by the group chat server through the first messaging protocol after determining that the second terminal has restored the first messaging protocol connection state, wherein the second group chat message is received and stored by the group chat server from the first terminal when the second terminal is in a non-first messaging protocol connection state.
20. The method according to claim 19, wherein The receiving, after the group chat server determines that the second terminal has restored the connection state of the first message protocol, a second group chat message sent through the first message protocol, includes: Receiving a new group chat message notification sent by the group chat server through the second messaging protocol, wherein the new group chat message notification carries the second group chat message and the group chat session URL; Sending a third request message for accessing the group chat session URL to the group chat server through the first message protocol, wherein the third request message is used by the group chat server to determine that the second terminal has restored the first message protocol connection state; Receiving the group chat session H5 page resource sent by the group chat server; Render and display the group chat session H5 page based on the group chat session H5 page resource; Determining that offline message acquisition is required, sending an offline message acquisition request to the group chat server; Receive the second group chat message sent by the group chat server.
21. A communication device, comprising: a transceiver module, configured to receive a group chat creation request message sent via a first messaging protocol when a first terminal determines, on a group homepage Hypertext Markup Language (H5) page, that a second terminal is required to establish a group chat, wherein the group chat creation request message is used to request the establishment of a group chat with the second terminal, and the first messaging protocol is used for sending and receiving H5 page messages; A processing module, configured to generate a group chat session H5 page resource for the group chat according to the group chat creation request message; The transceiver module is further configured to send a group invitation message to the second terminal through a second message protocol based on the group chat session H5 page resource, wherein the group invitation message carries a group chat session uniform resource locator (URL) for inviting the second terminal to join the group chat, and the second message protocol is used for sending and receiving standard 5G messages; The transceiver module is further configured to receive a feedback message sent by the second terminal, wherein the feedback message is used to indicate whether the second terminal agrees to join the group chat; The transceiver module is further configured to send a group establishment notification message to the first terminal according to the feedback message, wherein the group establishment notification message is used to indicate whether the second terminal agrees to join the group chat; The device is also used for: Receiving a group homepage access request based on the first message protocol sent through a browser or web view webview when the first terminal determines the group chat chatbot information when the first terminal is in the second message protocol connection state and determines, based on the group chat chatbot information, the group chat homepage H5 page to be accessed; Performing identity authentication on the first terminal according to the group homepage access request; Determine that the identity authentication is successful, and send a group chat homepage H5 page resource to the first terminal, wherein the group chat homepage H5 page resource is used by the first terminal to render and display the group chat homepage H5 page.
22. A communication device, comprising: A processing module, configured to determine, on the group chat homepage H5 page, by a first terminal in a first message protocol connection state, a second terminal for which a group chat needs to be created; a transceiver module, configured to send a group chat creation request message to the group chat server via a first message protocol, wherein the group chat creation request message is used to request the creation of a group chat with the second terminal, and the group chat creation request message is used by the group chat server to generate an H5 page resource for the group chat session, wherein the first message protocol is used for sending and receiving H5 page messages; The transceiver module is further configured to receive a group establishment notification message sent by the group chat server, wherein the group establishment notification message is used to indicate whether the second terminal agrees to join the group chat; The device is also used for: The first terminal in the second message protocol connection state determines group chatbot information; Determine the group chat homepage H5 page that needs to be accessed based on the group chat chatbot information; Sending a group homepage access request based on the first message protocol to the group chat server through a browser or webview; receiving a group chat homepage H5 page resource sent by the group chat server when the group chat server determines that the identity authentication of the first terminal is passed; According to the H5 page resource of the group chat homepage, the H5 page of the group chat homepage is rendered and displayed.
23. A communication device, comprising: a transceiver module, configured to receive a group invite message sent by a group chat server through a second message protocol, wherein the group invite message carries a group chat session URL and is used to invite a second terminal to join the group chat. The group invite message is sent by the group chat server upon receiving a group chat creation request message sent by a first terminal and generating a group chat session H5 page resource for the group chat. The group chat creation request message is used to request the creation of a group chat with the second terminal. The second message protocol is used for sending and receiving standard 5G messages. The transceiver module is further configured to send a feedback message to the group chat server, wherein the feedback message is used to indicate whether the second terminal agrees to join the group chat; The device is also used for: The first terminal in the second message protocol connection state determines group chatbot information; Determine the group chat homepage H5 page that needs to be accessed based on the group chat chatbot information; Sending a group homepage access request based on the first message protocol to the group chat server through a browser or webview; receiving a group chat homepage H5 page resource sent by the group chat server when the group chat server determines that the identity authentication of the first terminal is passed; According to the H5 page resource of the group chat homepage, the H5 page of the group chat homepage is rendered and displayed.
24. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method according to any one of claims 1 to 20 is implemented.
25. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 20 is implemented.
Citation Information
Patent Citations
Group communication method and device
CN104753877A
Chat connection establishment method using url, server and program
JP6277458B1