A page processing method, apparatus, and related device

CN116841685BActive Publication Date: 2026-09-22TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310990160.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-20
Publication Date
2026-09-22
Estimated Expiration
2039-05-20

AI Technical Summary

Technical Problem

[0005]上述可知,若终端设备在非通信页面中接收到新消息时,首先需要关闭当前页面,再打开通信页面才能向用户展示消息内容,导致向用户传递信息的效率降低

Benefits of technology

[0033]本发明实施例通过显示属于第一进程的目标页面,当接收到属于第二进程的会话消息时,在目标页面上显示未读消息提醒标识;响应针对所述未读消息提醒标识的点击操作,创建包含会话消息的会话消息页面窗口,在目标页面上显示该会话消息。上述可知,相比关闭当前显示页面,再打开会话消息所在的页面向用户展示消息内容,直接在当前显示页面上创建并显示包含消息内容的窗口,无需退出当前显示页面,可以降低终端与用户的交互次数,提高终端向用户展示消息内容的效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116841685B_ABST
    Figure CN116841685B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a page processing method and device and related equipment. The method comprises: displaying a target page belonging to a first process; the target page is a foreground display page; when a session message belonging to a second process is received, displaying an unread message reminder mark on the target page; in response to a trigger operation on the unread message reminder mark, creating a session message window according to the session message, and displaying the session message window on the target page. The present application can improve the efficiency of a terminal in showing message content to a user.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of Chinese Patent Application No. 201910419822.6, filed with the Chinese Patent Office on May 20, 2019, entitled "A Page Processing Method, Apparatus and Related Equipment", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This invention relates to the field of computer technology, and in particular to a page processing method, apparatus, and related equipment. Background Technology

[0003] In today's fast-paced life and work environment, users often switch between multiple functions when using mobile smart devices. For example, while reading news, if a user receives a new message, they need to view and reply to it.

[0004] If the currently displayed page is a news page, and the device receives a new message, it will vibrate to notify the user. To view the new message, the user must close the current news page and open the communication page containing the new message. The user can then view the message's content and reply to it on the communication page.

[0005] As mentioned above, if a terminal device receives a new message while it is not on a communication page, it must first close the current page and then open the communication page before it can display the message content to the user, which reduces the efficiency of transmitting information to the user. Summary of the Invention

[0006] This invention provides a page processing method, apparatus, and related devices that can improve the efficiency of displaying message content to users from a terminal.

[0007] One embodiment of the present invention provides a page processing method, including: Display the target page belonging to the first process; the target page is the foreground display page. When a session message belonging to the second process is received, an unread message notification icon is displayed on the target page; In response to the triggered operation for the unread message notification identifier, a session message window is created based on the session message and displayed on the target page.

[0008] The step of displaying an unread message notification icon on the target page when a session message belonging to the second process is received includes: When a session message belonging to the second process is received, and the session message has a display priority, the sending user's avatar corresponding to the session message is obtained in the second process, and the number of the session messages is obtained as the number of unread messages; Based on the cross-process synchronization service, the process status information of the first process is synchronized to the second process; the process status information includes the foreground running status; If the second process is running in the foreground and the session message is an unread message, then based on the cross-process synchronization service, the number of unread messages and the sending user's avatar are synchronized to the first process; In the first process, the unread message reminder icon is generated based on the number of unread messages and the sender's avatar, and the unread message reminder icon is displayed on the target page.

[0009] This also includes: In the second process, a message digest of the session message is obtained, and a message list page is created based on the message digest; the message list page includes a message list page window; the message list page window includes the message digest; The message list page is pushed onto the task stack corresponding to the first process and activated to display the message list page on the target page. In response to a trigger operation on the message list page window, perform the step of creating a session message window based on the session message.

[0010] The step of creating a session message window based on the session message and displaying the session message window on the target page includes: In the second process, a session message page is created; the session message page includes a session message page window; the session message page window contains the session messages; The session message page window is designated as the session message window; The session message page is pushed onto the task stack and activated to display the session message page window on the target page.

[0011] The session message page also includes a session message page close indicator; the message list page also includes a message list page close indicator; and the target page also includes a target page close indicator. The method further includes: In response to trigger operations for the closed flag of the session message page, the closed flag of the message list page, and the closed flag of the target page, the session message page, the message list page, and the target page are closed.

[0012] The conversation message page, the message list page, and the target page all belong to the task stack; the conversation message page is located at the top of the task stack, the message list page is adjacent to the conversation message page, and the target page is adjacent to the message list page. Closing the session message page, the message list page, and the target page includes: Pop the session message page from the task stack to close the session message page; Pop the message list page from the task stack to close the message list page; The target page is popped from the task stack to close the target page.

[0013] The session message page also includes a session message page collapse indicator; The method further includes: In response to a trigger operation on the page collapse indicator of the session message, obtain the avatar of the sending user corresponding to the session message; Close the session message page, generate a floating window for the sending user's avatar based on the sending user's avatar, and display the floating window for the sending user's avatar on the target page; In response to a trigger operation on the floating window containing the sending user's avatar, a message display page is created and displayed on the target page; the message display page includes an avatar page window; the avatar page window includes the sending user's avatar. In response to a trigger operation on the avatar page window, perform business behavior operations associated with the message display page.

[0014] The response, triggered by the avatar page window, executes business behavior operations associated with the message display page, including: The system responds to a first swipe operation on the avatar page window; the first swipe operation corresponds to a first swipe distance and a first swipe direction. When the first sliding distance and the first sliding direction meet the page deletion conditions, the message display page is closed.

[0015] The avatar page window includes a first avatar page window and a second avatar page window; the message display page also includes the conversation message page window. The response is a trigger operation on the avatar page window, executing business behavior operations associated with the message display page, including: Responding to a second swipe operation from the first avatar page window to the second avatar page window; the second swipe operation corresponds to a second swipe distance; When the second sliding distance meets the group generation condition, a message group page window is created based on the first user object corresponding to the first avatar page window and the second user object corresponding to the second avatar page window, and the conversation message page window is switched to the message group page window on the message display page; the message group page window includes the first user object and the second user object.

[0016] This also includes: The response is a third swipe operation on the floating window containing the user's avatar; the third swipe operation corresponds to a third swipe distance and a third swipe direction; When the third sliding distance and the third sliding direction meet the conditions for displaying the user avatar list, a floating window for the user avatar list is created on the target page according to the sent user avatar; the floating window for the user avatar list contains the sent user avatar.

[0017] The step of creating a session message window based on the session message and displaying the session message window on the target page includes: Detect the number of characters contained in the session message; If the number of characters is less than or equal to the number threshold, a first session message floating window is created in the second process, the first session message floating window is determined as the session message window, and the first session message floating window is displayed on the target page; the first session message floating window is a floating window that statically displays the session message; If the number of characters is greater than the number threshold, a second session message floating window is created in the second process, the second session message floating window is determined as the session message window, and the second session message floating window is displayed on the target page; the second session message floating window is a floating window that dynamically displays the session message.

[0018] The session messages include a first message and a second message; the first message belongs to a third user object, the second message belongs to a fourth user object, and the timestamp of the first message is less than the timestamp of the second message. The method further includes: In response to a trigger operation on the session message window, an auxiliary page is created; the auxiliary page includes a first message page window, a third avatar page window, and a fourth avatar page window; the first message page window contains the first message; the third avatar page window includes the user avatar corresponding to the third user object; the fourth avatar page window includes the user avatar corresponding to the fourth user object. The auxiliary page is displayed on the target page; In response to a swipe operation from the third avatar page window to the fourth avatar page window on the auxiliary page, a second message page window containing the second message is created, and the first message page window is switched to the second message page window on the auxiliary page.

[0019] Another aspect of the present invention provides a page processing apparatus, comprising: The first display module is used to display the target page belonging to the first process; the target page is the foreground display page. The second display module is used to display an unread message reminder icon on the target page when a session message belonging to the second process is received; A response module is used to respond to trigger operations for the unread message notification identifier; The first creation module is used to create a session message window based on the session message and display the session message window on the target page.

[0020] The second display module includes: The acquisition unit is configured to, when receiving the session message belonging to the second process and the session message having a display priority, acquire the avatar of the sending user corresponding to the session message in the second process, and acquire the number of the session messages as the number of unread messages; A synchronization unit is used to synchronize the process status information of the first process to the second process based on a cross-process synchronization service; the process status information includes the foreground running status. The synchronization unit is further configured to, if the second process is in a foreground running state and the session message is an unread message type, synchronize the number of unread messages and the sending user avatar to the first process based on the cross-process synchronization service. The synchronization unit is further configured to generate the unread message reminder identifier based on the number of unread messages and the avatar of the sending user in the first process, and display the unread message reminder identifier on the target page.

[0021] This also includes: The acquisition module is used to acquire a message digest of the session message in the second process, and create a message list page based on the message digest; the message list page includes a message list page window; the message list page window includes the message digest; The acquisition module is further configured to push the message list page onto the task stack corresponding to the first process and activate the message list page to display the message list page on the target page; The notification module is used to respond to a trigger operation on the message list page window and notify the first creation module to execute the corresponding steps.

[0022] The first creation module includes: A first creation unit is configured to create a session message page in the second process; the session message page includes a session message page window; the session message page window contains the session message; The first creation unit is further configured to determine the session message page window as the session message window; The push unit is used to push the session message page onto the task stack and activate the session message page so as to display the session message page window on the target page.

[0023] The session message page also includes a session message page close indicator; the message list page also includes a message list page close indicator; and the target page also includes a target page close indicator. The device further includes: The response module is also configured to respond to trigger operations for the closed flag of the session message page, trigger operations for the closed flag of the message list page, and trigger operations for the closed flag of the target page; The close module is used to close the session message page, the message list page, and the target page.

[0024] The conversation message page, the message list page, and the target page all belong to the task stack; the conversation message page is located at the top of the task stack, the message list page is adjacent to the conversation message page, and the target page is adjacent to the message list page. The shutdown module includes: The first pop unit is used to pop the session message page from the task stack to close the session message page; The second pop unit is used to pop the message list page from the task stack to close the message list page; The second pop unit is further configured to pop the target page from the task stack to close the target page.

[0025] The session message page also includes a session message page collapse indicator; The device further includes: The response module is also used to respond to the trigger operation of the folding identifier of the session message page and obtain the avatar of the sending user corresponding to the session message; The generation module is used to close the session message page, generate a floating window of the sending user's avatar based on the sending user's avatar, and display the floating window of the sending user's avatar on the target page; The generation module is further configured to respond to a trigger operation on the floating window of the sending user's avatar, create a message display page, and display the message display page on the target page; the message display page includes an avatar page window; the avatar page window includes the sending user's avatar; The business behavior operation module is used to respond to the trigger operation on the avatar page window and execute the business behavior operation associated with the message display page.

[0026] The business behavior operation module includes: A first response unit is configured to respond to a first swipe operation on the avatar page window; the first swipe operation corresponds to a first swipe distance and a first swipe direction. The closing unit is used to close the message display page when the first sliding distance and the first sliding direction meet the page deletion conditions.

[0027] The avatar page window includes a first avatar page window and a second avatar page window; the message display page also includes the conversation message page window. The business behavior operation module includes: The second response unit is used to respond to a second swiping operation from the first avatar page window to the second avatar page window; the second swiping operation corresponds to a second swiping distance. The second creation unit is configured to, when the second sliding distance meets the group generation conditions, create a message group page window based on the first user object corresponding to the first avatar page window and the second user object corresponding to the second avatar page window, and switch the conversation message page window to the message group page window on the message display page; the message group page window includes the first user object and the second user object.

[0028] This also includes: The response module is also configured to respond to a third sliding operation on the floating window containing the sending user's avatar; the third sliding operation corresponds to a third sliding distance and a third sliding direction; The second creation module is used to create a floating window for a user avatar list on the target page when the third sliding distance and the third sliding direction meet the conditions for displaying the user avatar list; the floating window for the user avatar list contains the user avatar.

[0029] The first creation module includes: A detection unit is used to detect the number of characters contained in the session message; The determining unit is configured to, if the number of characters is less than or equal to a number threshold, create a first session message floating window in the second process, determine the first session message floating window as the session message window, and display the first session message floating window on the target page; the first session message floating window is a floating window that statically displays the session message; The determining unit is further configured to, if the number of characters is greater than the number threshold, create a second session message floating window in the second process, determine the second session message floating window as the session message window, and display the second session message floating window on the target page; the second session message floating window is a floating window that dynamically displays the session message.

[0030] The session messages include a first message and a second message; the first message belongs to a third user object, the second message belongs to a fourth user object, and the timestamp of the first message is less than the timestamp of the second message. The device further includes: The response module is further configured to respond to a trigger operation on the session message window and create an auxiliary page; the auxiliary page includes a first message page window, a third avatar page window, and a fourth avatar page window; the first message page window contains the first message; the third avatar page window includes the user avatar corresponding to the third user object; the fourth avatar page window includes the user avatar corresponding to the fourth user object. A third display module is used to display the auxiliary page on the target page; The response module is further configured to respond to a swipe operation from the third avatar page window to the fourth avatar page window on the auxiliary page, create a second message page window containing the second message, and switch the first message page window to the second message page window on the auxiliary page.

[0031] Another embodiment of the present invention provides an electronic device, including: a processor and a memory; The processor is connected to a memory, wherein the memory is used to store program code, and the processor is used to call the program code to execute the method as described in one aspect of the embodiments of the present invention.

[0032] Another aspect of the present invention provides a computer storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor, perform the method as described in one aspect of the present invention.

[0033] This invention, in its embodiments, displays a target page belonging to a first process. When a session message belonging to a second process is received, an unread message notification is displayed on the target page. In response to a click on the unread message notification, a session message page window containing the session message is created and displayed on the target page. As can be seen, compared to closing the currently displayed page and then reopening the page containing the session message to show the message content to the user, directly creating and displaying a window containing the message content on the current display page, without needing to exit the current display page, reduces the number of interactions between the terminal and the user, and improves the efficiency of the terminal in displaying message content to the user. Attached Figure Description

[0034] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0035] Figure 1 This is a schematic diagram of a page processing scenario provided by an embodiment of the present invention; Figure 2a This is a flowchart illustrating a page processing method provided in an embodiment of the present invention; Figure 2b This is a schematic diagram illustrating how to determine an unread message notification identifier according to an embodiment of the present invention; Figure 2c This is a schematic diagram of a message list page provided in an embodiment of the present invention; Figure 2d This is a schematic diagram illustrating a return to a second process provided by an embodiment of the present invention; Figure 2e This is a schematic diagram of a method for determining a session message page according to an embodiment of the present invention; Figure 3a This is a flowchart illustrating another page processing method provided in an embodiment of the present invention; Figure 3b This is a schematic diagram of a message display page provided in an embodiment of the present invention; Figure 3c This is a schematic diagram of window switching provided in an embodiment of the present invention; Figure 3d This is a schematic diagram illustrating how to close a message display page according to an embodiment of the present invention; Figure 3e This is a schematic diagram illustrating how to close a page window according to an embodiment of the present invention; Figure 3f This is a schematic diagram of a message group creation page window provided in an embodiment of the present invention; Figure 3g This is a schematic diagram of a floating window for determining a user avatar list provided by an embodiment of the present invention; Figure 3h This is a schematic diagram of a floating window for a sliding user avatar list provided in an embodiment of the present invention; Figure 4a This is a flowchart illustrating another page processing method provided in an embodiment of the present invention; Figure 4b This is a schematic diagram of a session message window provided in an embodiment of the present invention; Figure 4c This is a schematic diagram of a page switching window provided in an embodiment of the present invention; Figure 4d This is an interactive diagram illustrating how to determine an unread message notification identifier according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of a page processing device provided in an embodiment of the present invention; Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0036] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0037] The terminal device is currently displaying the target page, which belongs to the first process. When the terminal device's second process receives a new message, it displays an unread message notification on the target page to remind the user of the unread message. Once the user triggers this notification, a message window appears on the target page, displaying the content of the new message. This allows the user to view the new message directly on the target page without returning to the main interface of the process that sent it.

[0038] The following example uses the process corresponding to the "World News" APP (Application) as the first process and the process corresponding to the "Messages" APP as the second process to illustrate how terminal devices can efficiently display message content to users.

[0039] Please see Figure 1 This is a schematic diagram illustrating a page processing scenario provided by an embodiment of the present invention. The page currently displayed on the terminal device is page 10a, that is, page 10a is the foreground display page. From Figure 1 As we can see, page 10a belongs to the process corresponding to the "Tianxia News" APP (referred to as the "Tianxia News" process). If the process corresponding to the "Messages" APP on the terminal device (referred to as the "Messages" process) receives a new message at this time, the "Messages" process will send a notification to the "Tianxia News" process that a new message exists.

[0040] After receiving the notification, the "World News" process displays an unread message notification icon 10b on page 10a. If the user clicks on the unread message notification icon 10b, the "Messages" process creates a message list page, which includes a message summary page window 10c and a transparent background page window 10d. The "Messages" process adds the created message list page to the task stack corresponding to the "World News" process. The system creates a corresponding task stack for any app when it is launched.

[0041] From the perspective of the underlying data processing of the terminal device, each page corresponds to an activity object instance. The aforementioned addition of the created message list page to the task stack corresponding to the "Tianxia News" process is equivalent to adding the activity object instance corresponding to the message list page to the task stack corresponding to the "Tianxia News" process. In other words, the message list page and the "Tianxia News" process share the task stack.

[0042] The message summary page window 10c can include the user avatar who sent the message and a summary of the message content, wherein the summary of the message content can be the first N characters of the message content, where N is an integer greater than or equal to 1.

[0043] Activate the activity object instance corresponding to the message list page (i.e., activate the message list page) to display the message list page. In other words, the message summary page window 10c and the transparent background page window 10d can be displayed on the target page.

[0044] Setting a transparent background page window 10d is to remind the user that the terminal device has not closed page 10a. This can help maintain the user's browsing status as much as possible. The size of the message summary page window 10c can be set as small as possible, while the size of the transparent background page window 10d can be set as large as possible. Of course, you can also choose not to create a transparent background page window 10d and instead let the message summary page window 10c fill the entire screen.

[0045] If a user clicks on the message summary page window 10c, the "Messages" process creates a message content page, which includes a message conversation page window 10e and a transparent background page window 10f. The "Messages" process adds the created message content page to the task stack corresponding to the "World News" process; that is, it adds the activity object instance corresponding to the created message content page to the task stack corresponding to the "World News" process. In other words, the message list page, the message content page, and the "World News" process share the same task stack. The message conversation page window 10e contains the message content of the new message.

[0046] Activate the activity object instance corresponding to the message content page to display the message content page on the target page, that is, to display the message conversation page window 10e on the target page. After the user views the message content in the message conversation page window 10e, they can edit and send reply messages in the message conversation page window 10e, where reply messages can be in text, image, or video format.

[0047] Subsequently, after the user closes the message content page and the message list page, page 10a will be displayed on the terminal device screen. The user can continue to browse page 10a. Since the user has already viewed the message content, the unread message notification indicator 10b will no longer exist on page 10a at this time.

[0048] in, Figure 1 The terminal devices can include mobile phones, tablets, laptops, PDAs, mobile internet devices (MIDs), etc.

[0049] Please see Figure 2a This is a flowchart illustrating a page processing method provided in an embodiment of the present invention, as shown below. Figure 2a As shown, the method may include: Step S101: Display the target page belonging to the first process; the target page is the foreground display page.

[0050] Specifically, the page currently displayed on the screen of the terminal device is called the target page (as mentioned above). Figure 1 (corresponding to page 10a in the embodiment), that is, the target page is the process currently running in the foreground (referred to as the first process, as described above). Figure 1 The display page of the "World News" process in the corresponding embodiment, for example, the first process can be a process created by a video application, or a process created by a reading application, etc.

[0051] For a terminal device, each page corresponds to an Activity object instance, which is stored in the task stack of the corresponding application. Since the target page being displayed at this time has its Activity object instance at the top of the task stack of the first process (which can be called the third activity object instance), the page that can respond to user actions is the page at the top of the task stack.

[0052] A process is an instance of a running program. If the program is an app, then the process is an instance of the running app. From the perspective of the terminal device's operating system, each running app corresponds to at least one process. Since each process occupies an independent space of memory, processes are independent of each other unless there are special tools. In other words, processes do not communicate with each other.

[0053] Step S102: When a session message belonging to the second process is received, an unread message reminder icon is displayed on the target page.

[0054] Specifically, when a terminal device receives a session message, and that session message belongs to a second process (as described above) Figure 1 When the "message" process in the corresponding embodiment is displayed, an unread message notification icon is displayed on the target page belonging to the first process (as described above). Figure 1 The unread message notification identifier 10b in the corresponding embodiment is used to remind the user of unread conversation messages. The unread message notification identifier can be a circle, a square, or a number, where the number can be the number of conversation messages received by the second process or the number of conversation messages belonging to the second process and of the unread message type.

[0055] From the perspective of the terminal device, displaying an unread message notification icon on the target page means that the first process adds a view object to the Activity object instance corresponding to the target page, and this view object corresponds to the unread message notification icon.

[0056] The application corresponding to the first process (referred to as the first application) and the application corresponding to the second process (referred to as the second application) can be two independent applications. The first application can also be an embedded application of the second application, meaning that the entry point to access the first application is in the second application. For example, the first application is a mini-program application.

[0057] Generally, two processes do not communicate with each other. This invention, to enable communication between two processes by displaying an unread message indicator on the target page of the first process after the second process receives a session message, provides a cross-process synchronization framework. This framework offers process synchronization services; by calling this framework, communication between the two processes becomes possible. The second process can synchronize information associated with the session message (e.g., the sender's avatar, the number of session messages, etc.) to the first process, and the first process can synchronize process status information, including foreground running status and background waiting status, to the second process.

[0058] The second process determines the number of received session messages as the number of unread messages. Based on the cross-process synchronization service, the first process synchronizes its process status information with the second process. If the first process's process status information indicates that it is running in the foreground and the session messages are of the unread message type, then based on the cross-process synchronization service, the second process synchronizes the aforementioned number of unread messages with the first process.

[0059] The first process can use the value corresponding to the number of unread messages as an unread message reminder indicator and display the unread message reminder indicator on the target page.

[0060] Optionally, if the received session message has a display priority, the second process retrieves the sender's avatar corresponding to the session message. Based on the cross-process synchronization service, the first process synchronizes process status information with the second process. If the first process's process status is in the foreground running state and the session message is an unread message, the second process synchronizes the aforementioned sender's avatar with the first process based on the cross-process synchronization service. The first process can use the sender's avatar as an unread message notification identifier and display this unread message notification identifier on the target page.

[0061] Optionally, if the received session message has a display priority, the second process retrieves the sender's avatar corresponding to the session message and the number of session messages, which are taken as the number of unread messages. Based on the cross-process synchronization service, the first process synchronizes process status information with the second process. If the first process's process status information indicates it is running in the foreground and the session message is an unread message, the second process synchronizes the aforementioned number of unread messages and the sender's avatar with the first process, based on the cross-process synchronization service. The first process can combine the value corresponding to the number of unread messages and the sender's avatar into an unread message reminder icon and display this icon on the target page.

[0062] The display priority of a session message is determined by the closeness between the sender and receiver. For example, if user A marks user B as a "special concern," it indicates a high level of closeness between them. In this case, when user A's terminal device receives a session message from user B, that message will have display priority. Alternatively, the closeness between user A and user B can also be determined based on their communication frequency.

[0063] It should be noted that if there are multiple session messages with display priority and multiple corresponding sending users, the avatar of the sending user corresponding to the earliest sent session message and the total number of all session messages can be combined to form the unread message reminder indicator.

[0064] Optionally, after the second process determines that the process status information of the first process is in the foreground running state, the second process filters the system notifications of the session message, that is, it does not pop up system notifications containing session messages on the target page.

[0065] Please see Figure 2b This is a schematic diagram illustrating how to determine an unread message notification identifier according to an embodiment of the present invention, such as... Figure 2b As shown, page 20a is the target page. When a session message has a display priority, the second process will obtain the sender's avatar and synchronize it with the first process based on the cross-process synchronization service. The first process will use the sender's avatar as an unread message notification identifier 20b and display this unread message notification identifier 20b on the target page.

[0066] Step S103: In response to the trigger operation for the unread message reminder icon, create a session message window based on the session message and display the session message window on the target page.

[0067] Specifically, a user can click the unread message notification icon, and the Activity component corresponding to the target page can respond to the click and notify the first process. Based on the cross-process synchronization service, the first process synchronizes the click operation information to the second process, and the second process obtains the message digest of the aforementioned session message, where the message digest can be the first N characters of the session message.

[0068] The second process creates a page window containing a message list (as described above). Figure 1 The message list page (as described above) in the corresponding embodiment's message summary page window 10c) Figure 1 (The message list page in the corresponding embodiment) The message list page window includes a message summary, the sender's avatar, the sender's nickname, etc. The size of the message list page can be the same as or different from the screen size.

[0069] Please see Figure 2c This is a schematic diagram of a message list page provided in an embodiment of the present invention. Figure 2c Page 30a in the diagram refers to the message list page 30a. If there are more than one conversation message, it can be seen that message list page 30a includes multiple message list page windows (e.g., message list page window 30c) and a transparent background page window 30b. The second process can arrange multiple message list page windows on the message list page according to the receipt timestamp of each conversation message. If a conversation message has a display priority, the message list page window corresponding to that conversation message can be located at the top of the message list page. Users can also swipe the message list page to scroll up and down to view message summaries from multiple message list page windows.

[0070] The second process can also create transparent background page windows on the message list page. Each page can be viewed as a combination of multiple page windows (also called views). A page can be seen as a container, and page windows can be seen as content added to the container. The existence of a page window depends on the page.

[0071] Optionally, the message list page may also include a history message list page window, which includes message summaries of historical messages, i.e., read messages. If a user subsequently clicks on this history message list page window to create a history message page, this history message page includes a history message page window, which contains historical messages, and is then displayed on the target page.

[0072] The second process stores the message list page in the task stack corresponding to the first process (i.e., pushes it onto the stack), at which point the message list page is at the top of the task stack. The message list page is then activated to be displayed on the target page.

[0073] Each message list page corresponds to an Activity object instance (which can be called a second activity object instance). The message list page window is the view within that Activity object instance. Pushing the message list onto the stack means storing the Activity object instance corresponding to the message list page in the task stack of the first process. At this point, the Activity object instance corresponding to the message list page is located at the top of the task stack. Activating the Activity object instance corresponding to the message list page located at the top of the task stack displays the message list page, that is, it displays the message list page window.

[0074] Optionally, the message list page may also include a back icon (which can also be understood as the view object in the Activity object instance corresponding to the message list page). If the user clicks the back icon, the terminal device closes the current message list page and switches the foreground process from the first process to the second process. That is, the process status information of the first process changes from the foreground running state to the background waiting state; correspondingly, the process status information of the second process changes from the background waiting state to the foreground running state, and at this time the main interface belonging to the second process is displayed on the screen of the terminal device.

[0075] Please see Figure 2d This is a schematic diagram illustrating a return to a second process according to an embodiment of the present invention. Page 40a is a target page 40a containing an unread message notification icon. When the user clicks the unread message notification icon, a message list page 40b is displayed on the screen. Figure 2d As can be seen, the message list page 40b includes multiple message list page windows and a return indicator 40d. When the user clicks the return indicator 40d, the second process corresponding to the session message is set as the foreground process, that is, the main interface 40c of the second process is displayed on the screen.

[0076] When a user clicks on the message list page window, a page window containing the session messages is created in the second process (as described above). Figure 1 The corresponding embodiment includes a conversation message page (10e) that comprises conversation messages. Similarly, the size of the conversation message page can be the same as or different from the screen size.

[0077] The second process stores the session message page in the task stack corresponding to the first process (i.e., pushes it onto the stack). At this point, the session message page is at the top of the task stack, which contains the session message page (at the top), followed by the message list page, and finally the target page. The session message page is then activated to display it on both the target page and the message list page.

[0078] From the perspective of the terminal device, when a user clicks on the message list page window, the second process creates an activity object instance (referred to as the first activity object instance). This first activity object instance corresponds to the session message page containing the session message page window. The second process adds the first activity object instance to the task stack corresponding to the first process. At this time, the task stack includes the third activity object instance, the second activity object instance, and the first activity object instance, with the first activity object instance at the top of the stack, followed by the second activity object instance, and then the third activity object instance.

[0079] Activate the first active object at the top of the stack to display the session message page on both the target page and the message list page; that is, display the session message page window within the session message page.

[0080] The second process can receive and send reply messages entered by the user in the conversation message page window. The reply messages can be text messages, images, or video messages, etc.

[0081] If both the message list page and the conversation message page occupy only a portion of the screen, the user can still see the target page while viewing conversation messages in the conversation message window within the conversation message page, or while viewing message summaries in the message list window within the message list page. In other words, the user can view conversation messages belonging to the second process without leaving the target page belonging to the first process.

[0082] The conversation message page also includes a conversation message page close indicator; the message list page also includes a message list page close indicator; and the target page also includes a target page close indicator. When it is necessary to close any of the aforementioned three pages, the conversation message page is popped from the task stack to close it; then the message list page is popped from the task stack to close it; and finally, the target page is popped from the task stack to close it.

[0083] From the perspective of active object instances, closing three pages means popping three active object instances from the stack. According to the last-in-first-out (LIFO) structure of the task stack, the first active object instance at the top of the stack must be popped first, then the second active object instance adjacent to the first active object instance is popped, and finally the third active object instance adjacent to the second active object instance is popped.

[0084] When a user clicks the close icon on the conversation message page, the terminal device will pop the first active object instance corresponding to the message conversation page from the task stack to close the conversation message page. When a user clicks the close icon on the message list page, the terminal device will pop the second active object instance corresponding to the message list page from the task stack to close the message list page. When a user clicks the close icon on the target page, from the perspective of the terminal device, it means popping the third-party activity object instance corresponding to the target page from the task stack to close the target page.

[0085] Optionally, if the received conversation message has a display priority and the unread message notification icon is generated based on the sender's avatar, if the user clicks on the unread message notification icon, the second process may not need to generate a message list page, but may directly generate a conversation message page containing a conversation message page window and display the conversation message page on the target page.

[0086] Please see Figure 2e This is a schematic diagram of determining a session message page provided in an embodiment of the present invention, such as... Figure 2e As shown, page 50a is the target page 50a containing the unread message notification icon, and the session messages have display priority. If the user clicks the unread message notification icon, the second process directly generates the session message page 50b, which includes the session message page window 50z.

[0087] As can be seen from the above, compared to closing the current display page and then reopening the page containing the conversation message to show the message content to the user, directly creating and displaying a window containing the message content on the current display page without exiting the current display page can reduce the number of interactions between the terminal and the user and improve the efficiency of the terminal in displaying message content to the user.

[0088] Please see Figure 3a This is a flowchart illustrating another page processing method provided in an embodiment of the present invention, such as... Figure 3a As shown, the method may include: Step S201: Display the target page belonging to the first process; the target page is the foreground display page.

[0089] Step S202: When a session message belonging to the second process is received, an unread message reminder icon is displayed on the target page.

[0090] Step S203: In response to the trigger operation for the unread message notification identifier, create a session message window based on the session message and display the session message window on the target page.

[0091] The specific implementation process of steps S201-S203 can be found above. Figure 2a The corresponding steps S101-S103 in the embodiment.

[0092] Step S204: In response to the trigger operation for the folding identifier of the session message page, obtain the avatar of the sending user corresponding to the session message.

[0093] Specifically, the conversation message page may also include a conversation message page collapse icon. When the user clicks the collapse icon, the second process obtains the sender's avatar of the user who sent the conversation message.

[0094] Step S205: Close the session message page, generate a floating window for the sending user's avatar based on the sending user's avatar, and display the floating window for the sending user's avatar on the target page.

[0095] Specifically, the session message page is closed (i.e., the session message page is popped from the task stack), the second process generates a floating window containing the sending user's avatar (called the sending user avatar floating window), and displays the sending user avatar floating window on the target page.

[0096] It should be noted that, in the operating system, the floating window is independent of the Activity object. As long as the second process obtains the floating window display permission of the first process, it can place the floating window on the screen, that is, it can display the user's avatar floating window on the target page.

[0097] Optionally, if the currently sending user's avatar floating window is displayed on the target page, and a new session message is received at this time (the new message belongs to the user corresponding to the sending user's avatar floating window), the second process can set the number of new session messages on the sending user's avatar floating window to notify the user that there is a new message.

[0098] Optionally, if the currently sending user's avatar floating window is displayed on the target page, and a new session message is received at this time (this new message does not belong to the user corresponding to the sending user's avatar floating window), the second process can create another floating window (called an auxiliary floating window). The auxiliary floating window contains the user's avatar of the user who sent the new session message. The auxiliary floating window is then displayed on the target page.

[0099] Step S206: In response to the trigger operation for the floating window of the sending user's avatar, create a message display page and display the message display page on the target page; the message display page includes an avatar page window; the avatar page window includes the sending user's avatar.

[0100] Specifically, when a user clicks to send a floating window containing their avatar, the second process creates a message display page that includes the avatar's page window. This message display page is then displayed on the target page, and it can also include a separate message display page window. Essentially, after collapsing the chat message page, a floating window is generated; clicking the floating window then brings up the chat message page again.

[0101] The profile picture page window contains the user's profile picture, and the message display page window contains the conversation messages. The message display page window is identical in appearance to the aforementioned conversation message page window, only located on a different page. In short, the message display page differs from the conversation message page by simply having an additional profile picture page window.

[0102] The principles for creating and displaying the message display page are the same as those for creating and displaying the session message page, and will not be elaborated further here.

[0103] Please see Figure 3b This is a schematic diagram of determining a message display page according to an embodiment of the present invention. Page 50c is a conversation message page 50c, and this page includes a conversation message page collapse indicator 50d. When the user clicks the conversation message page collapse indicator 50d, the conversation message page 50c is closed, and the target page 50e is displayed on the screen of the terminal device. The second process creates a floating window 50f for sending user avatars and displays the floating window 50f for sending user avatars on the target page 50e. When the user clicks the floating window 50f for sending user avatars, the second process creates a message display page 50g, from which... Figure 3b As can be seen, the message display page 50g includes the message display page window 50h and the avatar page window 50k. If the second process receives the new session message for the sending user corresponding to the avatar page window 50k before the user clicks the floating window 50f to send the user's avatar, the number of the aforementioned new session messages can be set around the avatar page window 50k.

[0104] Optionally, the avatar page window includes a first avatar page window and a second avatar page window. Correspondingly, the message display page window includes a first message display page window matching the first avatar page window and a second message display page window matching the second avatar page window. Currently, the message display page displays the first avatar page window, the second avatar page window, and the first message display page window. If the user slides the second avatar page window toward the first avatar page window, the second process switches the first message display page window to the second message display page window. At this time, the message display page displays the second avatar page window, the second message display page window, and the first avatar page window. In other words, on the message display page, the user can switch the corresponding message display page window by sliding the avatar page window.

[0105] Please see Figure 3cThis is a schematic diagram of window switching provided by an embodiment of the present invention. Page 50m is the target page, and the target page includes a floating window 50p for sending user avatars. When the user clicks the floating window 50p for sending user avatars, a second process creates a message display page 50n. At this time, the message display page 50n includes a first avatar page window 50r, a first message display page window 50q, and a second avatar page window 50t. When the user slides the second avatar page window 50t, correspondingly, in the message display page 50n, the first message display page window 50q is switched to the second avatar page window 50s corresponding to the second avatar page window 50t.

[0106] Step S207: In response to the trigger operation on the avatar page window, execute the business behavior operation associated with the message display page.

[0107] Specifically, users can perform a swipe operation on the avatar page window (referred to as the first swipe operation). The swipe distance corresponding to this first swipe operation is called the first swipe distance, and the swipe direction is called the first swipe direction. When the first swipe distance and the first swipe direction meet the preset page deletion conditions, the message display page is closed.

[0108] Please see Figure 3d This is a schematic diagram illustrating the closing of a message display page according to an embodiment of the present invention. Page 50u is the message display page 50u, which includes an avatar page window 50v and a message display page window 50w. When a user performs a first swipe operation on the avatar page window 50v, the swipe distance and direction corresponding to the first swipe operation meet the preset page deletion conditions, thus closing the message display page 50u. At this time, the target page 50x is displayed on the screen.

[0109] Optionally, the avatar page window includes a first avatar page window and a second avatar page window. Correspondingly, the message display page window includes a first message display page window matching the first avatar page window and a second message display page window matching the second avatar page window. If the current message display page displays the first avatar page window, the second avatar page window, and the first message display page window, the user can perform a swipe operation on the first avatar page window. When the swipe distance and swipe direction generated by the above swipe operation meet the preset window deletion conditions, the first avatar page window and the first message display page window in the message display page are closed, and the second avatar page window and the second message display page window are displayed in the message display page accordingly.

[0110] Please see Figure 3eThis is a schematic diagram of closing a page window according to an embodiment of the present invention. Page 60a is a message display page 60a, which includes a first avatar page window 60b, a first message display page window 60c, and a second avatar page window 60d. When the user slides the first avatar page window 60b, and the sliding distance and direction generated by the sliding meet the preset window deletion conditions, the first avatar page window 60b and the first message display page window 60c in the message display page 60a are closed. The second avatar page window 60d, which is adjacent to the first avatar page window 60b, and the corresponding second message display page window 60e are displayed on the message display page 60a.

[0111] The avatar page window includes a first avatar page window and a second avatar page window. Users can slide from the first avatar page window to the second avatar page window (called the second slide operation), and the second slide operation corresponds to a second slide distance.

[0112] When the second sliding distance meets the group generation condition, a message group page window is created on the message display page based on the first user object corresponding to the first avatar page window and the second user object corresponding to the second avatar page window (creating a message group page window here can be understood as adding a view object in the Activity object instance corresponding to the message display page), and the message group page window is displayed on the message display page. The message group page window includes the first user object and the second user object.

[0113] Please see Figure 3f This is a schematic diagram of creating a message group page window according to an embodiment of the present invention. Page 60f is a message display page 60f, which includes a first avatar page window 60g and a second avatar page window 60j. The user performs a second swipe operation from the first avatar page window 60g to the second avatar page window 60j. When the second swipe distance generated by the second swipe operation meets the group generation conditions, the first process can copy the first avatar page window 60g and the second avatar page window 60j to the top of the message display page 60f to indicate the selected user object to the user. When the user clicks the "Create Now" button, a message group page window 60h is created on the message display page 60f based on the first user object corresponding to the first avatar page window 60g and the second user object corresponding to the second avatar page window 60j, and is then displayed. The message group page window includes the first user object and the second user object.

[0114] Optionally, in addition to clicking the floating window for sending user avatars, users can also perform a swipe operation on the floating window for sending user avatars (referred to as a third swipe operation). The third swipe operation corresponds to a third swipe distance and a third swipe direction.

[0115] When the third swipe distance and the third swipe direction meet the conditions for displaying the user avatar list, the second process generates a floating window for the user avatar list and displays the floating window on the target page. The floating window for the user avatar list includes the user avatar to be sent.

[0116] If multiple user avatars are sent, the floating window containing the user avatar list will include all the user avatars sent.

[0117] Please see Figure 3g This is a schematic diagram of determining a floating window for a user avatar list according to an embodiment of the present invention. Page 60k is the target page 60k, and the target page 60k contains a floating window 60m for sending user avatars. When a user slides to send a user avatar in the floating window 60m, and the third sliding distance and the third sliding direction satisfy the display conditions of the user avatar list, a floating window 60n for a user avatar list is generated, and the floating window 60n for a user avatar list contains all the user avatars sent in the floating window 60m.

[0118] In response to a swipe action on the target page (e.g., swiping right on the target page), the user avatar list floating window can be hidden; of course, even when hidden, the user can still bring up the user avatar list floating window by swiping on the target page.

[0119] Please see Figure 3h This is a schematic diagram of a sliding user avatar list floating window provided in an embodiment of the present invention. Page 60p is the target page. The user can slide the user avatar list floating window 60q on the target page 60p to the right to hide the user avatar list floating window 60q; or the user can slide the target page 60p upwards (or downwards) to hide the user avatar list floating window 60q. Subsequently, the user can still slide left on the target page to pop up the user avatar list floating window 60q, that is, to display the user avatar list floating window 60q on the target page 60q.

[0120] Please see Figure 4a This is a flowchart illustrating another page processing method provided in an embodiment of the present invention, such as... Figure 4a As shown, the method may include: Step S301: Display the target page belonging to the first process; the target page is the foreground display page.

[0121] Step S302: When a session message belonging to the second process is received, an unread message reminder icon is displayed on the target page.

[0122] Step S303: In response to the trigger operation for the unread message reminder flag, detect the number of characters contained in the session message. Specifically, a user can click the unread message notification icon, and the Activity component corresponding to the target page can respond to the click and notify the first process. Based on the cross-process synchronization service, the first process synchronizes the click operation information to the second process, and the second process detects the number of characters contained in the session message.

[0123] Step S304: If the number of characters is less than or equal to the number threshold, a first session message floating window is created in the second process, the first session message floating window is determined as the session message window, and the first session message floating window is displayed on the target page; the first session message floating window is a floating window that statically displays the session message.

[0124] Specifically, if the second process detects that the number of characters in the session message is less than or equal to a threshold, it creates a floating window containing the session message (referred to as the first session message floating window), and the session message in the first session message floating window is displayed statically. The second process can then identify the first session message floating window as the session message window.

[0125] Step S305: If the number of characters is greater than the number threshold, a second session message floating window is created in the second process, the second session message floating window is determined as the session message window, and the second session message floating window is displayed on the target page; the second session message floating window is a floating window that dynamically displays the session message.

[0126] Specifically, if the second process detects that the number of characters in the session message exceeds a threshold, it creates a floating window containing the session message (called the second session message floating window), and the session message in the second session message floating window is displayed dynamically. The second process can then identify the second session message floating window as the session message window.

[0127] Please see Figure 4bThis is a schematic diagram illustrating the determination of a session message window according to an embodiment of the present invention. Page 60r is the target page 60r belonging to the first process. When the second process receives a session message, an unread message notification icon is displayed on the target page. When the user clicks on the unread message notification icon, the second process creates a session message floating window 60s. This session message floating window 60s contains the session message, which can be displayed statically or dynamically in the session message floating window 60s. If the user slides the session message floating window 60s, the session message floating window 60s can be hidden.

[0128] Step S306: In response to the trigger operation for the session message window, create an auxiliary page; the auxiliary page includes a first message page window, a third avatar page window, and a fourth avatar page window; the first message page window contains the first message; the third avatar page window includes the user avatar corresponding to the third user object; the fourth avatar page window includes the user avatar corresponding to the fourth user object.

[0129] Specifically, the session messages include a first message and a second message. The first message belongs to a third user object, and the second message belongs to a fourth user object. The timestamp of receiving the first message is less than the timestamp of receiving the second message. That is, the second process receives the first message first and then receives the second message.

[0130] When a user clicks on a conversation message window (either the first or second floating conversation message window), the second process closes the conversation message window and creates an auxiliary page. This auxiliary page includes a first message page window, a third avatar page window, and a fourth avatar page window. The first message page window contains the first message; the third avatar page window contains the user avatar of the third user object; and the fourth avatar page window contains the user avatar of the fourth user object.

[0131] The principle behind the second process creating auxiliary pages containing the first message page window, the third avatar page window, and the fourth avatar page window is the same as the principle behind creating the conversation message page and the message list page mentioned above, so it will not be described again here.

[0132] Step S307: Display the auxiliary page on the target page.

[0133] Specifically, the auxiliary pages created above are displayed on the target page, namely, the first message page window, the third avatar page window, and the fourth avatar page window. The principle of displaying auxiliary pages in the second process is the same as that of displaying the conversation message page and message list page mentioned above, and will not be described again here.

[0134] Step S308: In response to a swipe operation from the third avatar page window to the fourth avatar page window in the auxiliary page, create a second message page window containing the second message, and switch the first message page window to the second message page window on the auxiliary page.

[0135] Specifically, when the user swipes from the fourth avatar page window to the third avatar page window, the second process creates a second message page window containing the second message, and then switches the first message page window to the second message page window on the auxiliary page. From the perspective of the terminal device, switching from the first message page window to the second message page window means switching the view of the first message page window in the Activity object instance corresponding to the auxiliary page to the view of the second message page window.

[0136] By swiping the avatar page window, users can switch between message page windows, making it convenient for them to view different conversation messages from different sources.

[0137] Please see Figure 4c This is a schematic diagram of a page window switching embodiment provided by the present invention. Page 70a is the target page 70a, and a floating window 70g containing conversation messages is displayed on the target page 70a. The conversation messages include a first message and a second message. When the user clicks on the floating window 70g, an auxiliary page 70b is created. This auxiliary page includes a first message page window 70d, a third avatar page window 70c, and a fourth avatar page window 70e. The first message page window 70d contains the first message. When the user slides the fourth avatar page window 70e toward the third avatar page window 70c, a second process switches the first message page window 70d in the auxiliary page 70b to a second message page window 70f, which contains the second message.

[0138] Please see Figure 4d This is an interactive diagram illustrating how to determine an unread message notification identifier according to an embodiment of the present invention. Determining the unread message notification identifier includes the following steps: Step S401: The session message sender sends a session message to the second process of the session message receiver.

[0139] Step S402: The second process parses the session message type.

[0140] Specifically, the second process parses the session message types, which include unread message types and read message types.

[0141] Step S403: The first process synchronizes its process status information with the second process.

[0142] The first process synchronizes process status information with the second process. The process status information includes the foreground running status and the background waiting status.

[0143] Step S404, Second Process Filtering System Notification.

[0144] If the process status information of the first process is in the foreground running state, the second process filters system notifications for session messages and determines the number of unread messages based on the session message type.

[0145] Step S405: The second process synchronizes the number of unread messages with the first process.

[0146] Step S406: The first process generates an unread message reminder icon based on the number of unread messages and displays the unread message reminder icon on the target page.

[0147] For further details, please see Figure 5 This is a schematic diagram of the structure of a page processing device provided in an embodiment of the present invention. Figure 5 As shown, the page processing device 1 can be applied to the above-mentioned Figures 1-4d In the corresponding embodiment of the terminal device, the page processing device 1 may include: a first display module 11, a second display module 12, a response module 13, and a first creation module 14.

[0148] The first display module 11 is used to display the target page belonging to the first process; the target page is the foreground display page. The second display module 12 is used to display an unread message reminder icon on the target page when a session message belonging to the second process is received; The response module 13 is used to respond to the trigger operation for the unread message reminder icon; The first creation module 14 is used to create a session message window based on the session message and display the session message window on the target page.

[0149] The specific functional implementation methods of the first display module 11, the second display module 12, the response module 13, and the first creation module 14 can be found above. Figure 2a Steps S101-S103 in the corresponding embodiment will not be described again here.

[0150] Please see Figure 5 The second display module 12 may include: an acquisition unit 121 and a synchronization unit 122.

[0151] The acquisition unit 121 is used to, when receiving the session message belonging to the second process and the session message has a display priority, acquire the avatar of the sending user corresponding to the session message in the second process, and acquire the number of the session messages as the number of unread messages; Synchronization unit 122 is used to synchronize the process status information of the first process to the second process based on cross-process synchronization service; the process status information includes the foreground running status; The synchronization unit 122 is further configured to, if the second process is in a foreground running state and the session message is an unread message type, synchronize the number of unread messages and the sending user avatar to the first process based on the cross-process synchronization service. The synchronization unit 122 is further configured to generate an unread message reminder identifier based on the number of unread messages and the avatar of the sending user in the first process, and display the unread message reminder identifier on the target page.

[0152] The specific functional implementation methods of the acquisition unit 121 and the synchronization unit 122 can be found in the above description. Figure 2a Step S202 in the corresponding embodiment will not be described again here.

[0153] Please see Figure 5 The page processing device 1 may include: a first display module 11, a second display module 12, a response module 13, and a first creation module 14; it may also include: an acquisition module 15 and a notification module 16.

[0154] The acquisition module 15 is used to acquire a message digest of the session message in the second process, and create a message list page based on the message digest; the message list page includes a message list page window; the message list page window includes the message digest; The acquisition module 15 is further configured to push the message list page onto the task stack corresponding to the first process and activate the message list page to display the message list page on the target page. The notification module 16 is used to respond to the trigger operation of the message list page window and notify the first creation module to execute the corresponding steps.

[0155] The specific implementation methods of the acquisition module 15 and the notification module 16 can be found in the above description. Figure 2a Step S103 in the corresponding embodiment will not be described again here.

[0156] Please see Figure 5 The first creation module 14 may include: a first creation unit 141 and a stack push unit 142.

[0157] The first creation unit 141 is configured to create a session message page in the second process; the session message page includes a session message page window; the session message page window contains the session message; The first creation unit 141 is further configured to determine the session message page window as the session message window; The push unit 142 is used to push the session message page onto the task stack and activate the session message page so as to display the session message page window on the target page.

[0158] The specific functional implementation methods of the first creation unit 141 and the stack push unit 142 can be found in the above description. Figure 2a Step S103 in the corresponding embodiment will not be described again here.

[0159] Please see Figure 5 The session message page also includes a session message page close indicator; the message list page also includes a message list page close indicator; the target page also includes a target page close indicator; The page processing device 1 may include: a first display module 11, a second display module 12, a response module 13, a first creation module 14, an acquisition module 15, and a notification module 16; it may also include: a closing module 17.

[0160] The response module 13 is also configured to respond to trigger operations for the closed flag of the session message page, trigger operations for the closed flag of the message list page, and trigger operations for the closed flag of the target page; The closing module 17 is used to close the session message page, the message list page, and the target page.

[0161] The specific functional implementation methods of the response module 13 and the shutdown module 17 can be found in the above. Figure 2a Step S103 in the corresponding embodiment will not be described again here.

[0162] Please see Figure 5 The conversation message page, the message list page, and the target page all belong to the task stack; the conversation message page is located at the top of the task stack, the message list page is adjacent to the message list page, and the target page is adjacent to the conversation message page; The closing module 17 may include: a first pop unit 171 and a second pop unit 172.

[0163] The first pop unit 171 is used to pop the session message page from the task stack to close the session message page; The second pop unit 172 is used to pop the message list page from the task stack to close the message list page; The second pop unit 172 is further configured to pop the target page from the task stack to close the target page.

[0164] The specific functional implementations of the first pop unit 171 and the second pop unit 172 can be found above. Figure 2a The corresponding step S103 in the embodiment.

[0165] Please see Figure 5 The conversation message page also includes a conversation message page collapse indicator; The page processing device 1 may include: a first display module 11, a second display module 12, a response module 13, a first creation module 14, an acquisition module 15, a notification module 16, and a closing module 17; it may also include: a generation module 18 and a business behavior operation module 19.

[0166] The response module 13 is also used to respond to the trigger operation for the folding identifier of the session message page and obtain the avatar of the sending user corresponding to the session message; The generation module 18 is used to close the session message page, generate a floating window for the sending user's avatar based on the sending user's avatar, and display the floating window for the sending user's avatar on the target page; The generation module 18 is further configured to respond to a trigger operation on the floating window of the sending user's avatar, create a message display page, and display the message display page on the target page; the message display page includes an avatar page window; the avatar page window includes the sending user's avatar; The business behavior operation module 19 is used to respond to the trigger operation on the avatar page window and execute the business behavior operation associated with the message display page.

[0167] The specific functional implementation methods of the response module 13, generation module 18, and business behavior operation module 19 can be found in the above description. Figure 3a Steps S204-S207 in the corresponding embodiment will not be described again here.

[0168] Please see Figure 5 The business behavior operation module 19 may include: a first response unit 191 and a closing unit 192.

[0169] The first response unit 191 is configured to respond to a first sliding operation on the avatar page window; the first sliding operation corresponds to a first sliding distance and a first sliding direction. The closing unit 192 is used to close the message display page when the first sliding distance and the first sliding direction meet the page deletion conditions.

[0170] The specific functional implementation methods of the first response unit 191 and the closing unit 192 can be found in the above description. Figure 3a Step S207 in the corresponding embodiment will not be described again here.

[0171] Please see Figure 5 The avatar page window includes a first avatar page window and a second avatar page window; the message display page also includes the conversation message page window; The business behavior operation module 19 may include: a second response unit 193 and a second creation unit 194.

[0172] The second response unit 193 is used to respond to a second sliding operation from the first avatar page window to the second avatar page window; the second sliding operation corresponds to a second sliding distance. The second creation unit 194 is used to create a message group page window based on the first user object corresponding to the first avatar page window and the second user object corresponding to the second avatar page window when the second sliding distance meets the group generation conditions, and to switch the conversation message page window to the message group page window on the message display page; the message group page window includes the first user object and the second user object.

[0173] The specific functional implementation methods of the second response unit 193 and the second creation unit 194 can be found in the above description. Figure 3a Step S207 in the corresponding embodiment will not be described again here.

[0174] Please see Figure 5 The page processing device 1 may include: a first display module 11, a second display module 12, a response module 13, a first creation module 14, an acquisition module 15, a notification module 16, a closing module 17, a generation module 18, and a business behavior operation module 19; it may also include: a second creation module 20.

[0175] The response module 13 is also configured to respond to a third sliding operation on the floating window for the sending user's avatar; the third sliding operation corresponds to a third sliding distance and a third sliding direction; The second creation module 20 is used to create a floating window for a user avatar list on the target page when the third sliding distance and the third sliding direction meet the display conditions for the user avatar list, based on the sent user avatar; the floating window for the user avatar list contains the sent user avatar.

[0176] The specific functional implementation methods of the response module 13 and the second creation module 20 can be found in the above description. Figure 3a Step S207 in the corresponding embodiment will not be described again here.

[0177] Please see Figure 5 The first creation module 14 may include: a detection unit 143 and a determination unit 144.

[0178] The detection unit 143 is used to detect the number of characters contained in the session message; The determining unit 144 is configured to, if the number of characters is less than or equal to a number threshold, create a first session message floating window in the second process, determine the first session message floating window as the session message window, and display the first session message floating window on the target page; the first session message floating window is a floating window that statically displays the session message; The determining unit 144 is further configured to, if the number of characters is greater than the number threshold, create a second session message floating window in the second process, determine the second session message floating window as the session message window, and display the second session message floating window on the target page; the second session message floating window is a floating window that dynamically displays the session message.

[0179] The specific functional implementation methods of the detection unit 143 and the determination unit 144 can be found in the above description. Figure 4a Steps S303-S308 in the corresponding embodiment will not be described again here.

[0180] Please see Figure 5 The session messages include a first message and a second message; the first message belongs to a third user object, the second message belongs to a fourth user object, and the timestamp of the first message is less than the timestamp of the second message. The page processing device 1 may include: a first display module 11, a second display module 12, a response module 13, a first creation module 14, an acquisition module 15, a notification module 16, a closing module 17, a generation module 18, a business behavior operation module 19, and a second creation module 20; it may also include: a third display module 21.

[0181] The response module 13 is further configured to respond to a trigger operation on the session message window and create an auxiliary page; the auxiliary page includes a first message page window, a third avatar page window, and a fourth avatar page window; the first message page window contains the first message; the third avatar page window includes the user avatar corresponding to the third user object; the fourth avatar page window includes the user avatar corresponding to the fourth user object. The third display module 21 is used to display the auxiliary page on the target page; The response module 13 is further configured to respond to a sliding operation from the third avatar page window to the fourth avatar page window on the auxiliary page, create a second message page window containing the second message, and switch the first message page window to the second message page window on the auxiliary page.

[0182] The specific functional implementation methods of the response module 13 and the third display module 21 can be found in the above description. Figure 4a Step S308 in the corresponding embodiment will not be described again here.

[0183] Further, please see Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. The above... Figures 1-4d The terminal device in the corresponding embodiment can be an electronic device 1000, such as... Figure 6 As shown, the electronic device 1000 may include a user interface 1002, a processor 1004, an encoder 1006, and a memory 1008. A signal receiver 1016 is used to receive or transmit data via a cellular interface 1010, a Wi-Fi interface 1012, ..., or an NFC interface 1014. The encoder 1006 encodes the received data into a computer-processable data format. The memory 1008 stores a computer program, and the processor 1004 is configured to execute the steps of any of the above method embodiments via the computer program. The memory 1008 may include volatile memory (e.g., dynamic random access memory DRAM) and non-volatile memory (e.g., one-time programmable read-only memory OTPROM). In some instances, the memory 1008 may further include memory remotely located relative to the processor 1004, which can be connected to the electronic device 1000 via a network. The user interface 1002 may include a keyboard 1018 and a display 1020.

[0184] exist Figure 6 In the illustrated electronic device 1000, the processor 1004 can be used to call computer programs stored in the memory 1008 to achieve: Display the target page belonging to the first process; the target page is the foreground display page. When a session message belonging to the second process is received, an unread message notification icon is displayed on the target page; In response to the triggered operation for the unread message notification identifier, a session message window is created based on the session message and displayed on the target page.

[0185] In one embodiment, when the processor 1004 displays an unread message notification icon on the target page upon receiving a session message belonging to the second process, it specifically performs the following steps: When a session message belonging to the second process is received, and the session message has a display priority, the sending user's avatar corresponding to the session message is obtained in the second process, and the number of the session messages is obtained as the number of unread messages; Based on the cross-process synchronization service, the process status information of the first process is synchronized to the second process; the process status information includes the foreground running status; If the second process is running in the foreground and the session message is an unread message, then based on the cross-process synchronization service, the number of unread messages and the sending user's avatar are synchronized to the first process; In the first process, the unread message reminder icon is generated based on the number of unread messages and the sender's avatar, and the unread message reminder icon is displayed on the target page.

[0186] In one embodiment, the processor 1004 further performs the following steps: In the second process, a message digest of the session message is obtained, and a message list page is created based on the message digest; the message list page includes a message list page window; the message list page window includes the message digest; The message list page is pushed onto the task stack corresponding to the first process and activated to display the message list page on the target page. In response to a trigger operation on the message list page window, perform the step of creating a session message window based on the session message.

[0187] In one embodiment, when the processor 1004 executes the steps of creating a session message window based on the session message and displaying the session message window on the target page, it specifically performs the following steps: In the second process, a session message page is created; the session message page includes a session message page window; the session message page window contains the session messages; The session message page window is designated as the session message window; The session message page is pushed onto the task stack and activated to display the session message page window on the target page.

[0188] In one embodiment, the session message page further includes a session message page close indicator; the message list page further includes a message list page close indicator; and the target page further includes a target page close indicator. The processor 1004 further performs the following steps: In response to trigger operations for the closed flag of the session message page, the closed flag of the message list page, and the closed flag of the target page, the session message page, the message list page, and the target page are closed.

[0189] In one embodiment, the session message page, the message list page, and the target page all belong to the task stack; the session message page is located at the top of the task stack, the message list page is adjacent to the session message page, and the target page is adjacent to the message list page; When the processor 1004 closes the session message page, the message list page, and the target page, it specifically performs the following steps: Pop the session message page from the task stack to close the session message page; Pop the message list page from the task stack to close the message list page; The target page is popped from the task stack to close the target page.

[0190] In one embodiment, the session message page further includes a session message page collapse identifier; The processor 1004 further performs the following steps: In response to a trigger operation on the page collapse indicator of the session message, obtain the avatar of the sending user corresponding to the session message; Close the session message page, generate a floating window for the sending user's avatar based on the sending user's avatar, and display the floating window for the sending user's avatar on the target page; In response to a trigger operation on the floating window containing the sending user's avatar, a message display page is created and displayed on the target page; the message display page includes an avatar page window; the avatar page window includes the sending user's avatar. In response to a trigger operation on the avatar page window, perform business behavior operations associated with the message display page.

[0191] In one embodiment, when the processor 1004 executes a business behavior operation associated with the message display page in response to a trigger operation on the avatar page window, it specifically performs the following steps: The system responds to a first swipe operation on the avatar page window; the first swipe operation corresponds to a first swipe distance and a first swipe direction. When the first sliding distance and the first sliding direction meet the page deletion conditions, the message display page is closed.

[0192] In one embodiment, the avatar page window includes a first avatar page window and a second avatar page window; the message display page further includes the session message page window; When the processor 1004 executes a response to a trigger operation on the avatar page window and performs a business behavior operation associated with the message display page, it specifically performs the following steps: The response is a trigger operation on the avatar page window, executing business behavior operations associated with the message display page, including: Responding to a second swipe operation from the first avatar page window to the second avatar page window; the second swipe operation corresponds to a second swipe distance; When the second sliding distance meets the group generation condition, a message group page window is created based on the first user object corresponding to the first avatar page window and the second user object corresponding to the second avatar page window, and the conversation message page window is switched to the message group page window on the message display page; the message group page window includes the first user object and the second user object.

[0193] In one embodiment, the processor 1004 further performs the following steps: The response is a third swipe operation on the floating window containing the user's avatar; the third swipe operation corresponds to a third swipe distance and a third swipe direction; When the third sliding distance and the third sliding direction meet the conditions for displaying the user avatar list, a floating window for the user avatar list is created on the target page according to the sent user avatar; the floating window for the user avatar list contains the sent user avatar.

[0194] In one embodiment, when the processor 1004 executes the steps of creating a session message window based on the session message and displaying the session message window on the target page, it specifically performs the following steps: Detect the number of characters contained in the session message; If the number of characters is less than or equal to the number threshold, a first session message floating window is created in the second process, the first session message floating window is determined as the session message window, and the first session message floating window is displayed on the target page; the first session message floating window is a floating window that statically displays the session message; If the number of characters is greater than the number threshold, a second session message floating window is created in the second process, the second session message floating window is determined as the session message window, and the second session message floating window is displayed on the target page; the second session message floating window is a floating window that dynamically displays the session message.

[0195] In one embodiment, the session message includes a first message and a second message; the first message belongs to a third user object, the second message belongs to a fourth user object, and the timestamp of the first message is less than the timestamp of the second message. The processor 1004 further performs the following steps: In response to a trigger operation on the session message window, an auxiliary page is created; the auxiliary page includes a first message page window, a third avatar page window, and a fourth avatar page window; the first message page window contains the first message; the third avatar page window includes the user avatar corresponding to the third user object; the fourth avatar page window includes the user avatar corresponding to the fourth user object. The auxiliary page is displayed on the target page; In response to a swipe operation from the third avatar page window to the fourth avatar page window on the auxiliary page, a second message page window containing the second message is created, and the first message page window is switched to the second message page window on the auxiliary page.

[0196] It should be understood that the electronic device 1000 described in the embodiments of the present invention can perform the foregoing text. Figures 1 to 4d The description of the page processing method in the corresponding embodiments can also be performed as described above. Figure 5 The description of the page processing device 1 in the corresponding embodiments will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated.

[0197] Furthermore, it should be noted that this embodiment of the invention also provides a computer storage medium, which stores a computer program executed by the page processing device 1 mentioned above. The computer program includes program instructions, and when the processor executes the program instructions, it can execute the aforementioned... Figures 1 to 4d The description of the page processing method in the corresponding embodiments is already provided and will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated. For technical details not disclosed in the embodiments of the computer storage medium involved in this invention, please refer to the description of the method embodiments of this invention.

[0198] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0199] The above description discloses only preferred embodiments of the present invention and should not be construed as limiting the scope of the present invention. Therefore, equivalent variations made in accordance with the claims of the present invention are still within the scope of the present invention.

Claims

1. A page processing method, characterized in that, include: Display the target page belonging to the first process; The target page is the front-end display page; When a session message belonging to the second process is received, an unread message notification icon is displayed on the target page; In response to a trigger operation for the unread message notification identifier, a session message window is created based on the session message, and the session message window is displayed on the target page; the session message window is displayed in a session message page created by the second process; the session message page also includes a session message page collapse identifier; In response to the trigger operation of the collapse indicator of the conversation message page, the conversation message page is closed, a floating window of the sending user's avatar is generated according to the sending user's avatar corresponding to the conversation message, and the floating window of the sending user's avatar is displayed on the target page; In response to a trigger operation on the floating window for the sending user's avatar, a message display page is displayed on the target page; the message display page includes an avatar page window; the avatar page window includes a first avatar page window and a second avatar page window; Responding to a second swipe operation from the first avatar page window to the second avatar page window; the second swipe operation corresponds to a second swipe distance; When the second sliding distance meets the group generation condition, a message group page window is created based on the first user object corresponding to the first avatar page window and the second user object corresponding to the second avatar page window, and the conversation message page window is switched to the message group page window on the message display page; the message group page window includes the first user object and the second user object.

2. The method according to claim 1, characterized in that, When a session message belonging to the second process is received, displaying an unread message notification icon on the target page includes: When a session message belonging to the second process is received, and the session message has a display priority, the sending user's avatar corresponding to the session message is obtained in the second process, and the number of the session messages is obtained as the number of unread messages; Based on the cross-process synchronization service, the process status information of the first process is synchronized to the second process; the process status information includes the foreground running status; If the second process is running in the foreground and the session message is an unread message, then based on the cross-process synchronization service, the number of unread messages and the sending user's avatar are synchronized to the first process; In the first process, the unread message reminder icon is generated based on the number of unread messages and the sender's avatar, and the unread message reminder icon is displayed on the target page.

3. The method according to claim 1, characterized in that, Also includes: In the second process, a message digest of the session message is obtained, and a message list page is created based on the message digest; the message list page includes a message list page window; the message list page window includes the message digest; The message list page is pushed onto the task stack corresponding to the first process and activated to display the message list page on the target page. In response to a trigger operation on the message list page window, perform the step of creating a session message window based on the session message.

4. The method according to claim 3, characterized in that, The step of creating a session message window based on the session message and displaying the session message window on the target page includes: In the second process, a session message page is created; the session message page includes a session message page window; the session message page window contains the session messages; The session message page window is designated as the session message window; The session message page is pushed onto the task stack and activated to display the session message page window on the target page.

5. The method according to claim 4, characterized in that, The session message page also includes a session message page close indicator; the message list page also includes a message list page close indicator; the target page also includes a target page close indicator; The method further includes: In response to trigger operations for the closed flag of the session message page, the closed flag of the message list page, and the closed flag of the target page, the session message page, the message list page, and the target page are closed.

6. The method according to claim 5, characterized in that, The conversation message page, the message list page, and the target page all belong to the task stack; the conversation message page is located at the top of the task stack, the message list page is adjacent to the conversation message page, and the target page is adjacent to the message list page; Closing the session message page, the message list page, and the target page includes: Pop the session message page from the task stack to close the session message page; Pop the message list page from the task stack to close the message list page; The target page is popped from the task stack to close the target page.

7. The method according to claim 1, characterized in that, Also includes: Responding to a first swipe operation on the avatar page window; The first sliding operation corresponds to a first sliding distance and a first sliding direction; When the first sliding distance and the first sliding direction meet the page deletion conditions, the message display page is closed.

8. The method according to claim 1, characterized in that, Also includes: The response is a third swipe operation on the floating window containing the user's avatar; the third swipe operation corresponds to a third swipe distance and a third swipe direction; When the third sliding distance and the third sliding direction meet the conditions for displaying the user avatar list, a floating window for the user avatar list is created on the target page according to the sent user avatar; the floating window for the user avatar list contains the sent user avatar.

9. The method according to claim 1, characterized in that, The step of creating a session message window based on the session message and displaying the session message window on the target page includes: Detect the number of characters contained in the session message; If the number of characters is less than or equal to the number threshold, a first session message floating window is created in the second process, the first session message floating window is determined as the session message window, and the first session message floating window is displayed on the target page; the first session message floating window is a floating window that statically displays the session message; If the number of characters is greater than the number threshold, a second session message floating window is created in the second process, the second session message floating window is determined as the session message window, and the second session message floating window is displayed on the target page; the second session message floating window is a floating window that dynamically displays the session message.

10. The method according to claim 9, characterized in that, The session messages include a first message and a second message; the first message belongs to a third user object, the second message belongs to a fourth user object, and the receiving timestamp of the first message is less than the receiving timestamp of the second message; The method further includes: In response to a trigger operation on the session message window, an auxiliary page is created; the auxiliary page includes a first message page window, a third avatar page window, and a fourth avatar page window; the first message page window contains the first message; the third avatar page window includes the user avatar corresponding to the third user object; the fourth avatar page window includes the user avatar corresponding to the fourth user object. The auxiliary page is displayed on the target page; In response to a swipe operation from the third avatar page window to the fourth avatar page window on the auxiliary page, a second message page window containing the second message is created, and the first message page window is switched to the second message page window on the auxiliary page.

11. A page processing apparatus, characterized in that, include: The first display module is used to display the target page belonging to the first process; The target page is the front-end display page; The second display module is used to display an unread message reminder icon on the target page when a session message belonging to the second process is received; A response module is used to respond to trigger operations for the unread message notification identifier; A first creation module is used to create a session message window based on the session message and display the session message window on the target page; the session message window is displayed in a session message page created by the second process; the session message page also includes a session message page collapse indicator; The first creation module is further configured to respond to a trigger operation on the folding identifier of the session message page, close the session message page, generate a floating window of the sending user's avatar according to the sending user's avatar corresponding to the session message, and display the floating window of the sending user's avatar on the target page; A generation module is used to respond to a trigger operation on the floating window for the sending user's avatar and display a message display page on the target page; the message display page includes an avatar page window; the avatar page window includes a first avatar page window and a second avatar page window; The business behavior operation module is used to respond to the second swipe operation from the first avatar page window to the second avatar page window; the second swipe operation corresponds to a second swipe distance; The business behavior operation module is further configured to, when the second sliding distance meets the group generation conditions, create a message group page window based on the first user object corresponding to the first avatar page window and the second user object corresponding to the second avatar page window, and switch the conversation message page window to the message group page window on the message display page; the message group page window includes the first user object and the second user object.

12. An electronic device, characterized in that, include: Processor and memory; The processor is connected to a memory, wherein the memory is used to store program code, and the processor is used to call the program code to execute the method as described in any one of claims 1-10.

13. A computer storage medium, characterized in that, The computer storage medium stores a computer program, the computer program including program instructions, which, when executed by a processor, perform the method as described in any one of claims 1-10.

Citation Information

Patent Citations

  • Message prompting method and device of instant messaging client

    CN103051516A

  • Method and terminal for message reminding

    CN105554280A

  • Message prompt method and device, equipment and memory medium

    CN108540646A