Notification message display method and apparatus, device, and medium

By constructing independent message controls within the application, the problem of not being able to customize the visualization of notification messages in existing technologies is solved, resulting in improved user activity and enhanced security.

CN113821358BActive Publication Date: 2026-01-23GUANGZHOU FANGGUI INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111128876.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-26
Publication Date
2026-01-23
Estimated Expiration
2041-09-26

AI Technical Summary

Technical Problem

Existing applications cannot customize the visualization of notification messages, leading to user boredom, wasted resources, and difficulty in effectively attracting users to participate in platform activities.

Method used

By constructing a message control independent of the operating system's broadcast mechanism, developers can customize the visualization of notification messages and maintain seamless display and protection of notification messages when switching between active components, preventing messages from being blocked.

Benefits of technology

It increased platform user activity, enhanced the display of notification messages and application security, and prevented users from missing important notifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113821358B_ABST
    Figure CN113821358B_ABST
Patent Text Reader

Abstract

The application discloses a notification message display method and device, equipment and medium, the method comprises the following steps: a first active component inherited from a preset parent class displays a message control defined by the parent class on a graphical user interface, the message control is used for outputting and displaying a notification message; in response to a page jump instruction acting on the first active component, save the notification message currently displayed by the message control as a to-be-delivered message, and switch the first active component to a second active component inherited from the parent class; the second active component displays the message control defined by the parent class on the graphical user interface, and displays the to-be-delivered message in the message control. The application constructs the message control inherited from the parent class of the active component, so that the unread notification message can be continuously output and displayed in each active component inherited from the parent class, the notification effect of the notification message is enhanced, the activity of the user is maintained, and the user stickiness is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data communication technology, and in particular to a method for displaying notification messages, as well as to the corresponding apparatus, devices, and non-volatile storage media. Background Technology

[0002] In the context of the interconnected information age, various internet platforms recommend platform activities to users by pushing notification messages. By guiding users to participate in platform activities, they can increase user activity and maintain user stickiness. At the same time, by using the content loaded in the notifications, they can attract platform users to click on the notification messages and increase the platform's daily active user metrics.

[0003] Most applications display notification messages by broadcasting them to the operating system running the device. This means the visualization of notification messages is limited to the operating system's predefined methods, and applications cannot customize the visualization. Furthermore, the abundance of system notifications from multiple sources often bores users, causing them to easily ignore them. Therefore, using the operating system's inherent system broadcast mechanism to push platform notifications is not only wasteful of resources for the platform, but also fails to achieve the goal of interaction between the platform and users based on communication messages, making it difficult to effectively attract enough users to participate in platform activities.

[0004] In view of the problems existing in the output display of notification messages in various existing applications, the applicant has made corresponding explorations in order to meet the needs of more users. Summary of the Invention

[0005] The purpose of this application is to provide a notification message display method and corresponding device, electronic device, and non-volatile storage medium to meet user needs.

[0006] To achieve the objectives of this application, the following technical solution is adopted:

[0007] A notification message display method proposed for the purposes of this application includes the following steps:

[0008] The first active component, which inherits from a preset parent class, displays a message control defined by that parent class in the graphical user interface. The message control is used to output and display notification messages.

[0009] In response to the page jump instruction applied to the first activity component, the notification message currently displayed by the message control is saved as the message to be delivered, and the first activity component is switched to a second activity component that inherits from the parent class;

[0010] The second active component displays the message control defined by the parent class in the graphical user interface, and displays the message to be delivered in the message control.

[0011] In a further embodiment, before the first active component inheriting from a preset parent class displays the message control defined by the parent class in the graphical user interface, the following steps are included:

[0012] Obtain system broadcast messages, parse out the notification messages within them, and output the notification messages to the message control for display.

[0013] In a further embodiment, the steps of the first active component inheriting from a preset parent class displaying a message control defined by the parent class in the graphical user interface, and the second active component displaying a message control defined by the parent class in the graphical user interface, include:

[0014] Obtain multiple system broadcast messages, and parse each broadcast message to obtain the notification messages contained therein;

[0015] Based on the acquisition time of each system broadcast message, the notification messages corresponding to each system broadcast message are stored in the message queue in sequence, with the notification messages acquired earlier being sorted first in the message queue;

[0016] The notification messages that are first sorted in the message queue are output to the message control for display first, and so on, the notification messages in the message queue are output to the message control for display in sequence.

[0017] In a preferred embodiment, the step of prioritizing the output of notification messages that are ranked first in the message queue to the message control for display, and so on, to output and display all notification messages in the message queue, includes:

[0018] In response to a read command applied to the currently displayed notification message in the message control, stop the output display of the notification message in the message control;

[0019] Determine whether a next notification message exists in the message queue. If it does, output the next notification message to the message control for display.

[0020] In a further embodiment, the method includes the following parallel steps:

[0021] In response to a hide command applied to the message control, the display state of the message control is changed to hidden display, thereby hiding the display of the message control in the graphical user interface of the currently active component.

[0022] In a further embodiment, the step of responding to a page navigation instruction applied to the first active component, saving the notification message currently displayed by the message control as a message to be delivered, and switching the first active component to a second active component that inherits from the parent class includes:

[0023] Determine whether the notification message currently displayed by the message control has a read tag. If it does, do not save the notification message. Determine whether there are other notification messages. If there are, save the other notification messages as messages to be delivered.

[0024] If the notification message does not have the read tag, then the notification message will be saved as a message to be delivered.

[0025] In a further embodiment, the method includes the following parallel steps:

[0026] In response to the jump command applied to the notification message currently displayed in the message control, determine the notification activity component that inherits from the preset parent class corresponding to the notification message;

[0027] Switch the current active component to the notification active component. If there are other notification messages to be output, save the notification message as a message to be delivered, and display the message to be delivered in the message control displayed by the notification active component.

[0028] A notification message display device proposed for the purposes of this application includes:

[0029] The message control display module is used to display message controls defined by the parent class in the graphical user interface of the first active component that inherits from the preset parent class. The message controls are used to output and display notification messages.

[0030] A jump instruction response module is used to respond to a page jump instruction applied to the first active component, save the notification message currently displayed by the message control as a message to be delivered, and switch the first active component to a second active component that inherits from the parent class.

[0031] The message to be delivered module is used by the second active component to display the message control defined by the parent class in the graphical user interface, and to display the message to be delivered in the message control.

[0032] In a further embodiment, the message control display module includes:

[0033] The message acquisition submodule is used to acquire multiple system broadcast messages and parse each broadcast message to obtain the notification messages contained therein.

[0034] The message storage submodule is used to store the notification messages corresponding to each system broadcast message into a message queue in sequence according to the acquisition time of each system broadcast message, and the notification messages with earlier acquisition time are sorted first in the message queue;

[0035] The message display submodule is used to prioritize the output of the notification messages that are first sorted in the message queue to the message control for display, and so on, sequentially outputting each notification message in the message queue to the message control for display.

[0036] In a further embodiment, the jump instruction response module includes:

[0037] The read tag determination submodule is used to determine whether the notification message currently displayed by the message control has a read tag. If it does, the notification message will not be saved. The module also determines whether there are other notification messages. If there are, the other notification messages will be saved as messages to be delivered.

[0038] The read tag processing submodule is used to save the notification message as a message to be delivered if the notification message does not have the read tag.

[0039] To address the aforementioned technical problems, this invention also provides a computer device, including a memory and a processor. The memory stores computer-readable instructions, which, when executed by the processor, cause the processor to perform the steps of the notification message display method described above.

[0040] To address the aforementioned technical problems, this embodiment of the invention also provides a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the notification message display method described above.

[0041] To address the aforementioned technical problems, this invention also provides a computer program product, including a computer program and computer instructions. When the computer program and computer instructions are executed by a processor, the processor performs the steps of the notification message display method described above.

[0042] Compared with existing technologies, the advantages of this application are as follows:

[0043] This application allows the application to construct a message control independent of the operating system's broadcast mechanism, enabling developers to freely customize the visualization of notification messages. As a result, the platform can attract users to participate in platform activities and increase user activity by flexibly defining the visualization of notification messages.

[0044] Secondly, this application encapsulates message controls within the same component parent class. Instances of active component subclasses inheriting from this parent class can have uniformly defined message controls at runtime. Since this parent class also defines a mechanism for passing notification messages in message controls between different active subclasses, when the application switches between active components inheriting from this parent class in the graphical user interface, the message controls in the preceding and following active components can be seamlessly switched, continuously displaying relevant notification messages in the graphical user interface. This enhances the notification effect of the notification messages and prevents unread notification messages from being lost due to the user switching active components, thus preventing the user from missing notification messages.

[0045] Furthermore, this application follows application development principles and transmits messages between active components of the application without relying on the operating system's broadcast mechanism. This effectively prevents notification messages from being blocked by the operating system or other illegal processes, thus providing effective protection for application notification messages and enhancing application security. Attached Figure Description

[0046] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:

[0047] Figure 1 A typical network deployment architecture diagram related to the implementation of the technical solution of this application;

[0048] Figure 2 This is a flowchart illustrating a typical embodiment of the notification message display method of this application;

[0049] Figure 3 This is a schematic diagram of the graphical user interface of the first active component of this application and the message control it displays;

[0050] Figure 4 This is a schematic diagram of the graphical user interface of the second active component of this application and the message control it displays;

[0051] Figure 5 This is a flowchart illustrating one embodiment of the notification message display method of this application, which includes additional preliminary steps.

[0052] Figure 6 This is a flowchart illustrating an embodiment of the notification message display method of this application for processing multiple notification messages;

[0053] Figure 7 for Figure 6 A flowchart illustrating the specific steps of the embodiment of step S113;

[0054] Figure 8This is a flowchart illustrating one embodiment of the notification message display method of this application, which includes additional parallel steps.

[0055] Figure 9 This is a flowchart illustrating an embodiment of the notification message display method of this application for determining whether the notification message currently displayed by the message control needs to be saved as a message to be transmitted;

[0056] Figure 10 This is a flowchart illustrating another embodiment of the notification message display method of this application, which adds parallel steps.

[0057] Figure 11 This is a schematic block diagram of a typical embodiment of the notification message display device of this application;

[0058] Figure 12 This is a basic structural block diagram of a computer device according to an embodiment of this application. Detailed Implementation

[0059] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.

[0060] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this application means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or wireless coupling. The term “and / or” as used herein includes all or any units and all combinations of one or more associated listed items.

[0061] Those skilled in the art will understand that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.

[0062] Those skilled in the art will understand that the terms "client," "terminal," and "terminal device" as used herein include both devices that receive wireless signals, devices that only possess wireless signal receiver capabilities without transmission capabilities, and devices with receiving and transmitting hardware, devices that have receiving and transmitting hardware capable of bidirectional communication over a bidirectional communication link. Such devices may include: cellular or other communication devices such as personal computers or tablets, having single-line displays, multi-line displays, or cellular or other communication devices without multi-line displays; PCS (Personal Communications Service) that can combine voice, data processing, fax, and / or data communication capabilities; PDAs (Personal Digital Assistants) that may include radio frequency receivers, pagers, internet / intranet access, web browsers, notebooks, calendars, and / or GPS (Global Positioning System) receivers; and conventional laptops and / or handheld computers or other devices that have and / or include radio frequency receivers. As used herein, "client," "terminal," and "terminal device" can be portable, transportable, installed in a means of transportation (air, sea, and / or land), or suitable and / or configured to operate locally and / or in a distributed manner, operating in any other location on Earth and / or in space. "Client," "terminal," and "terminal device" as used herein can also be a communication terminal, an internet access terminal, or a music / video playback terminal, such as a PDA, a MID (Mobile Internet Device), and / or a mobile phone with music / video playback capabilities, or a smart TV, set-top box, etc.

[0063] The hardware referred to by the names "server," "client," and "service node" in this application is essentially an electronic device with the equivalent capabilities of a personal computer. It is a hardware device with the necessary components revealed by the von Neumann architecture, such as a central processing unit (including an arithmetic logic unit and a control unit), memory, input devices, and output devices. The computer program is stored in its memory, and the central processing unit loads the program stored in the secondary storage into the main memory to run it, execute the instructions in the program, and interact with the input and output devices to complete specific functions.

[0064] It should be noted that the concept of "server" used in this application can also be extended to the case of server clusters. Based on the network deployment principles understood by those skilled in the art, the servers should be logically divided. Physically, these servers can be independent of each other but accessible through interfaces, or they can be integrated into a single physical computer or a computer cluster. Those skilled in the art should understand this flexibility and should not use it to constrain the implementation of the network deployment method in this application.

[0065] Please see Figure 1 The hardware infrastructure required for implementing the technical solutions of this application can be deployed according to the architecture shown in the figure. The server 80 mentioned in this application is deployed in the cloud and acts as a business server. It can further connect to relevant data servers and other servers providing related support, thereby forming a logically related service cluster to provide services to relevant terminal devices such as the smartphone 81 and personal computer 82 shown in the figure, or third-party servers (not shown). Both the smartphone and personal computer can access the Internet through known network access methods and establish a data communication link with the cloud server 80 to run terminal applications related to the services provided by the server.

[0066] For servers, the application is usually built as a service process, with corresponding program interfaces exposed for remote calls by applications running on various terminal devices. The relevant technical solutions in this application that are suitable for running on servers can be implemented in servers in this way.

[0067] The application mentioned refers to an application running on a server or terminal device. This application implements the relevant technical solutions of this application in a programmed manner. Its program code can be stored in a non-volatile storage medium that can be recognized by a computer in the form of computer-executable instructions, and is loaded into memory by the central processing unit for execution. The relevant device of this application is constructed by the operation of the application on the computer.

[0068] The technical solutions in this application suitable for implementation on terminal devices can also be programmed and built into applications providing live streaming services as part of their extended functionality. The aforementioned live streaming refers to a live streaming network service implemented based on the aforementioned network deployment architecture.

[0069] The term "live streaming room" as used in this application refers to a video chat room implemented using internet technology. It typically possesses audio and video broadcast control functions and includes both a broadcaster and viewers. Viewers can be registered users already registered on the platform or unregistered users; they can be registered users who have followed the broadcaster or registered / unregistered users who haven't followed the broadcaster. Broadcasters and viewers can interact through well-known online interaction methods such as voice, video, and text. Generally, the broadcaster performs programs for viewers in the form of audio and video streams, and economic transactions can occur during the interaction. Of course, the application of live streaming rooms is not limited to online entertainment; it can also be extended to other related scenarios, such as education and training, video conferencing, product promotion and sales, and any other scenarios requiring similar interaction.

[0070] Those skilled in the art will understand that although the various methods in this application are described based on the same concept and thus present commonality among them, they can be performed independently unless otherwise specified. Similarly, the various embodiments disclosed in this application are all based on the same inventive concept; therefore, concepts expressed in the same way, as well as concepts that are appropriately changed for convenience but are expressed differently, should be understood equivalently.

[0071] Please see Figure 2 A notification message display method according to this application, in a typical embodiment, includes the following steps:

[0072] Step S11: The first active component, inheriting from the preset parent class, displays a message control defined by the parent class in the graphical user interface. The message control is used to output and display notification messages.

[0073] The current application displays a graphical user interface of the first active component that inherits from the preset parent class, and displays a message control that also belongs to the preset parent class in the graphical user interface, and outputs the currently received notification messages to the message control for display.

[0074] The preset parent class contains multiple activity components. Each activity component is used to construct a corresponding page and to construct various controls in the page to provide users with corresponding functions. For example, when the page of the activity component is a live page, the underlying code of the live stream playback window and the public screen flow and other live control in the live page are all contained in the activity component.

[0075] The message control is defined by the preset parent class and is independent of each of the activity components contained in the parent class. The message control displayed in the graphical user interface of the activity component is not a control contained in itself.

[0076] The message control can be highly customized by developers to improve the display effect of notification messages in the application. By defining exquisite notification message visualization effects, the platform users are attracted to touch the message control to create platform activities corresponding to the notification messages, thereby increasing the platform's user activity.

[0077] The message control is used to output and display notification messages received by the current application. These notification messages are generally pushed by the business server or the system running on the device. Each notification message typically includes notification text, a notification image, and a corresponding link address for jumping to a notification activity component. When the current application does not receive a notification message, its message control is generally hidden. When the current application receives a system broadcast message, parses the system broadcast message, obtains the notification message it contains, and then displays the message control, outputting the notification text and notification image contained in the notification message. Furthermore, it can respond to jump instructions from the notification activity component acting on the notification message currently displayed by the message control, jumping to the corresponding notification activity component through the link address contained in the notification message.

[0078] When the current application receives multiple system broadcast messages pushed by the business server, it will parse each broadcast message to obtain the notification messages contained therein, and store the notification messages corresponding to each system broadcast message in a message queue in sequence according to the acquisition time of each system broadcast message. The notification messages acquired earlier in the message queue are sorted first, and the notification messages that are sorted first in the message queue are output to the message control for display first. In this way, each notification message in the message queue is output to the message control for display in sequence.

[0079] In the graphical user interface, the message control can be controlled by the user to stop (hide) the current application from displaying the message control via touch. If there are still notification messages in the message queue that have not been output and displayed, the notification messages that have not been output and displayed will be output to the message control by the current application for display.

[0080] When the message control outputs and displays message notifications in the graphical user interface of the currently active control, the current application can also drive the device's vibration module or drive the device to play a notification sound to enhance the notification effect of the message control outputting and displaying the notification message.

[0081] Please refer to Figure 3 , Figure 33-A in the diagram represents the graphical user interface of the first active component when the message control of the preset parent class is not displayed. When the current application receives a corresponding notification message or there is a notification message that needs to be output and displayed, the graphical user interface of the first active component will change from 3-A to 3-B to display the message control 301 in the graphical user interface of the first active component. The current application outputs the notification text and notification image of the notification message to the message control 301 for display, and at the same time, visualizes and outputs the link address of the notification active component contained in the notification message to the message control 301, as shown in the control for entering the live room 302, so that the user can enter the live room 302 control by touch and trigger the current application to jump to the corresponding notification active component.

[0082] Correspondingly, users can use touch operations such as swiping the message control 301 from the side or swiping it up to drive the display of the currently applied hidden message control 301 in the graphical user interface, thereby switching the graphical user interface of the first active component from 3-B to 3-A.

[0083] Step S12: In response to the page jump instruction applied to the first activity component, save the notification message currently displayed by the message control as the message to be delivered, and switch the first activity component to a second activity component that inherits from the parent class.

[0084] The current application acts on the page jump instruction of the first active component shown, saves the notification message currently displayed by the message control as the message to be delivered, and switches the first active component to a second active component that inherits from the preset parent class, so as to switch the graphical user interface of the first active component to the graphical user interface of the second active component.

[0085] The page jump instruction is generally generated by the user by touching the corresponding control in the graphical user interface of the first active component to trigger the current application to respond to the page jump instruction, determine the other active component (second active component) that the page jump instruction points to inherits from the preset parent class, switch the first active component to the second active component, and switch the graphical user interface of the first active component of the current page to the graphical user interface of the second active component.

[0086] In response to the page jump instruction, the current application will save the notification message currently displayed in the message control of the graphical user interface of the first active component, and use the notification message as the message to be delivered. This message will be output and displayed in the message control of the graphical interface of the first active component (second active component) after the first active component is switched to the active component (second active component) pointed to by the page jump instruction. The message to be delivered (notification message) will be displayed in the message control of the graphical interface of the second active component (second active component) that inherits from the preset parent class.

[0087] The current application typically only saves the notification message currently displayed by the message control as a message to be delivered when the message control is displayed in the graphical user interface of the first active component. If the message control is not displayed in the graphical user interface of the first active component, the notification message saving process will not be performed.

[0088] The current application will determine whether the notification message currently displayed by the message control in the graphical user interface of the first active component has a read label, in order to determine whether to save the notification message as the message to be delivered. If the notification message has the read label, the current application will not perform the message to be delivered saving process. The read label is marked by the current application in response to the read event of the notification message. The read event refers to the event in which the user touches the message control displayed in the graphical user interface of the first active component, such as when the user slides up or down or sideways on the message control, or clicks the message control. The notification message currently displayed by the message control will be given the read label by the current application so that the notification message will not be saved as the message to be delivered.

[0089] Please refer to Figure 3 and Figure 4 When the user touches Figure 3 When the cover image 303 of Live Room 1 in -A is displayed, a page redirection instruction pointing to the activity component of Live Room 1 will be generated. The current application responds to this page redirection instruction because... Figure 3 The graphical user interface of the first active component shown in -A does not display a message control. The current application will not perform the message saving process, but will only... Figure 3 -A indicates that the graphical user interface of the first active component is switched to... Figure 4 The second active component of the graphical user interface shown in 4-A; when the user touches... Figure 3 The cover image 304 of the live room 1 in -B will generate a page jump instruction pointing to the activity component of the live room 1. The current application responds to the page jump instruction and saves the notification message displayed in the message control 301 as the message to be delivered, and at the same time... Figure 3 -B indicates that the graphical user interface of the first active component is switched to... Figure 4 The graphical user interface of the second active component shown in 4-B, and outputs the message to be transmitted to Figure 4 -B is displayed in the message control inherited from the preset parent class.

[0090] Step S13: The second active component displays the message control defined by the parent class in the graphical user interface, and displays the message to be transmitted in the message control.

[0091] When the current application responds to the page navigation command and switches the first active component to the second active component to display its graphical user interface, it will display the message control defined by the preset parent class in the graphical user interface of the second active component, and output the message to be delivered (notification message) to the message control for display, such as... Figure 4 The message control 401 shown in Figure 4-B outputs the notification text, notification image, and notification activity component link address contained in the message to be transmitted to the message control 401 for visual display.

[0092] If the message control is not displayed in the graphical user interface of the first active component, the current application will not display the message control in the graphical user interface of the second active component.

[0093] By saving the notification messages displayed by the message control on the first page as messages to be delivered, and then outputting these messages to the message control inherited from the preset parent class displayed in the graphical user interface of the second active component, unread notification messages can be output to the pages of different active components for display. This prevents unread notification messages from being ignored due to user page navigation, thus preventing users from missing important notification messages. The continuous output of unread notification messages to the application's graphical user interface can effectively enhance the notification effect of the notification messages.

[0094] The above-described typical embodiments and their variations fully disclose the implementation scheme of the notification message display method of this application. However, various variations of the method can still be derived by changing and expanding some technical means. Other embodiments are briefly described below:

[0095] Please refer to Figure 5 Before the first active component inheriting from the preset parent class displays the message control defined by the parent class in the graphical user interface, it includes the following steps:

[0096] Step S10: Obtain the system broadcast message, parse out the notification message, and output the notification message to the message control for display.

[0097] The current application obtains the system broadcast message pushed by the business server, parses the notification message contained in the system broadcast message, and triggers the display of the preset parent class message control in the current active component to output the notification message to the message control for display.

[0098] The business server will broadcast a system broadcast message to clients on its platform, triggering their applications to retrieve the included notification message. This notification message will then be displayed in the message control of the graphical user interface of the active component. The system broadcast message is defined by the platform to which the business server belongs. For example, if it's a live streaming platform, the notification text in the system broadcast message typically includes the corresponding streamer's nickname and a summary of their live stream, while the notification image is usually the streamer's avatar. The included link is generally used to redirect to the active component of the streamer's live stream. For details on how the message control outputs and displays this notification message, please refer to [reference needed]. Figure 3 and Figure 4 The visual style shown by message control 301 and message control 401 in the text.

[0099] In this embodiment, by outputting the notification messages contained in the system broadcast messages to a message control that is independent of the operating system broadcast mechanism for display, the platform can attract users to participate in platform activities and improve the platform's user activity by flexibly defining the notification message visualization display method of the message control.

[0100] Please refer to Figure 6 In the steps of the first active component inheriting from the preset parent class displaying the message control defined by the parent class in the graphical user interface, and the second active component displaying the message control defined by the parent class in the graphical user interface, if the current application receives multiple system broadcast messages, the notification messages contained in these system broadcast messages will be sequentially output to the message control for display. The specific implementation steps are as follows:

[0101] Step S111: Obtain multiple system broadcast messages, and parse each broadcast message to obtain the notification message contained therein:

[0102] The current application obtains system broadcast messages pushed by multiple business servers and parses each broadcast message to obtain the notification messages contained in each of these system broadcast messages.

[0103] The current application typically receives multiple system broadcast messages pushed by the business server in advance, parses these system broadcast messages, obtains the notification messages contained in each system broadcast message, and outputs these notification messages to the message control for display in an orderly manner.

[0104] Step S112: Based on the acquisition time of each system broadcast message, store the notification messages corresponding to each system broadcast message into a message queue in sequence, with the notification messages acquired earlier in the message queue being ordered first.

[0105] After the current application obtains the notification messages contained in each of the system broadcast messages, it will store the notification messages corresponding to the system broadcast messages with earlier acquisition times in the front position of the message queue according to the acquisition time of these system broadcast messages, so that the notification messages with earlier acquisition times will be output to the message control for display in the future.

[0106] The acquisition time refers to the time when the current application acquires the system broadcast message. The current application stores the notification message corresponding to the system broadcast message with the earlier acquisition time in the front position of the message queue, so as to output the notification messages stored in the message queue to the message control for display in order according to the acquisition time.

[0107] Step S113: Prioritize outputting the notification messages that appear first in the message queue to the message control for display, and so on, sequentially outputting each notification message in the message queue to the message control for display.

[0108] The current application prioritizes displaying the notification messages that are ranked first in the message queue to the message control displayed in the graphical user interface of the currently active component. When a notification message is determined to be read, the current application will stop displaying the notification message in the message control and display the notification message that is currently ranked first in the message queue to the message control. This process is repeated to sequentially output all notification messages in the message queue to the message control for display.

[0109] In one embodiment, the current application can display message controls in the graphical user interface of the currently active component, with the number of message controls equal to the number of notification messages stored in the message queue. According to the order of each notification message in the message queue, the message controls corresponding to the notification messages that are ranked higher are output to the graphical user interface first, and each message control is displayed in a scrolling manner. The message control corresponding to the notification message that is ranked last in the message queue will be output and displayed last.

[0110] Please refer to Figure 7 Regarding the implementation method of outputting all notification messages stored in the message queue to the message control for display in the current application, the specific implementation steps are as follows:

[0111] Step S1131: In response to the read command applied to the notification message currently displayed in the message control, stop the output display of the notification message in the message control.

[0112] The application responds to the read command of the notification message currently displayed in the message control, and stops the output display of the notification message in the message control displayed in the graphical user interface of the currently active component.

[0113] The read confirmation command is generally generated by the user of the current application through a touch event on the message control. The touch event generally refers to the user's touch interaction event such as sliding or clicking on the message control. For example, when the user slides the message control displayed in the graphical user interface of the currently active component to hide the notification message displayed by the message control, the touch event will be triggered and the read confirmation command will be generated. Or, when the user clicks the message control to jump to the graphical user interface of the notification active component corresponding to the notification message displayed in the message control, the touch event will also be output and the read confirmation command will be generated.

[0114] Step S1132: Determine whether there is a next notification message for this notification message in the message queue. If there is, output the next notification message to the message control for display.

[0115] After the current application responds to the read instruction and stops the output display of the notification message in the message control, it will determine whether there is a next notification message in the message queue. If there is a next notification message in the message queue, the current application will output the next notification message to the message control displayed in the graphical user interface of the currently active component for display. If there is no next notification message, the display of the message control in the graphical user interface of the currently active component will be hidden.

[0116] In this embodiment, a message queue is constructed to store the notification messages received by the current application. The message queue is sorted according to the acquisition time of each notification message so that the current application can output and display the notification messages stored in the queue in sequence. Furthermore, by responding to a read command, the currently displayed notification message is switched to the next notification message in the message queue for output and display.

[0117] Please refer to Figure 8 The notification message display method includes the following parallel steps to control the display and hiding of the message control in the graphical user interface of the currently active component:

[0118] Step S14: In response to the hide command applied to the message control, change the display state of the message control to hidden display, thereby hiding the display of the message control in the graphical user interface of the currently active component.

[0119] The application responds to a hide command applied to the message control displayed in the graphical user interface of the currently active component, changing the display state of the message control to hidden display, thereby hiding the message control from being displayed in the graphical user interface of the currently active component.

[0120] The aforementioned hiding instruction is generally generated by a user's touch event on a message control. This touch event typically refers to a user's interaction with the message control, such as swiping up or down or sideways. For example, when a user swipes a message control displayed in the graphical user interface of the currently active component to hide the notification message displayed by that control, the touch event is triggered, generating the hiding instruction. This prompts the current application to respond to the hiding instruction and hide the message control's display in the graphical user interface. For example, please refer to... Figure 3 and Figure 4 When the current application responds to the hidden instruction, Figure 3 The graphical user interface of 3-B will be converted to 3-A to hide the display of message control 301. Similarly, Figure 4 The graphical user interface of 4-B will be converted to 3-A to hide the display of message control 401.

[0121] In this embodiment, the display state of the message control in the graphical user interface is controlled to prevent the message control from obscuring the relevant controls in the graphical user interface and affecting the user's operating experience.

[0122] Please refer to Figure 9 After responding to the page navigation command applied to the first activity component, the current application will determine whether the notification message currently displayed by the message control needs to be saved as a message to be delivered. The specific implementation steps are as follows:

[0123] Step S121: Determine whether the notification message currently displayed by the message control has a read tag. If it does, the notification message is not saved. Then, determine whether there are other notification messages. If so, save the other notification messages as messages to be delivered.

[0124] After responding to the page navigation command, the current application will determine whether the notification message currently displayed by the message control in the graphical user interface of the current active component has the read label. If the notification message has the read label, the notification message will not be saved. The application will also determine whether there are other notification messages that have not been output and displayed. If so, the other notification messages will be saved as messages to be transmitted and then output to the message control in the graphical user interface of the second active component for display.

[0125] The read tag is marked by the current application in response to the read event of the currently displayed notification message of the message control. The read event refers to the event of the user touching the message control displayed by the graphical user interface of the first active component, such as when the user slides up or down or sideways on the message control, or when the user clicks on the message control. The notification message currently displayed by the message control will be assigned the read tag by the current application so that the notification message will not be processed as a message to be delivered.

[0126] Other notification messages from the current application are generally stored in a message queue. For specific implementation methods, please refer to the relevant implementation methods in steps S111 to S113. This step will not be described in detail here.

[0127] Step S122: If the notification message does not have the read tag, then the notification message is saved as a message to be delivered.

[0128] After responding to the page jump instruction, the application determines that if the notification message currently displayed by the message control in the graphical user interface of the currently active component does not have the read tag, it saves the notification message as the message to be delivered, and outputs the notification message to the message control in the graphical user interface of the second active component for display.

[0129] In this embodiment, by constructing a read tag, it is determined whether the notification message currently output and displayed by the first activity component needs to be saved as the message to be delivered, so that the notification message is output to the message control displayed in the graphical user interface of the second activity component for display, to prevent the read notification message from being continuously output and displayed, which would cause the user to become bored and affect the user's application experience.

[0130] Please refer to Figure 10 The notification message display method includes the following parallel steps: the current application switches the current activity component to the notification activity component corresponding to the notification message, and the specific implementation steps are as follows:

[0131] Step S14': In response to the jump instruction applied to the notification message currently displayed in the message control, determine the notification activity component that inherits from the preset parent class corresponding to the notification message:

[0132] The application responds to the jump instruction of the notification message currently displayed by the message control of the graphical user interface of the currently active component, and determines the notification active component that inherits from the preset parent class corresponding to the notification message.

[0133] After the current application responds to the jump instruction of the notification message, it will determine the notification activity component that inherits from the preset parent class corresponding to the notification message through the link address contained in the notification message, so as to switch the current activity component to the notification activity component and display the graphical user interface corresponding to the notification activity component.

[0134] In one embodiment, the link address of the notification message can be a public network address. After the current application receives the jump instruction of the notification message, the current application will load the public network address through the built-in browser to load and display the page corresponding to the public network address.

[0135] Step S15': Switch the current active component to the notification active component. If there are other notification messages to be output, save the notification message as a message to be delivered, and display the message to be delivered in the message control displayed by the notification active component.

[0136] When the application switches the current active component to the notification active component, it will determine whether there are other notification messages to be output. If there are, the notification message will be saved as a message to be delivered. When the application switches to the graphical user interface of the notification active component, the message control will be displayed in the graphical user interface and the message to be delivered will be output to the message control for display.

[0137] Other notification messages to be output by the current application are generally stored in the message queue. For specific implementation methods, please refer to the relevant implementation methods in steps S111 to S113. This step will not be described in detail here.

[0138] In this embodiment, users can interact with the notification message currently displayed by the message control by touch to trigger the current application to switch the current activity component to the notification activity component corresponding to the notification message, and display the graphical user interface of the notification activity component. This simple operation can greatly enhance users' enthusiasm for participating in the platform activities corresponding to the notification message, thereby effectively improving the platform's user activity.

[0139] Furthermore, by functionalizing the various steps in the methods disclosed in the above embodiments, a notification message display device of this application can be constructed. Following this approach, please refer to... Figure 11In one typical embodiment, the device includes: a notification message display device proposed for the purposes of this application, comprising: a message control display module 11, used for a first active component inheriting from a preset parent class to display a message control defined by the parent class in a graphical user interface, the message control being used to output and display a notification message; a jump instruction response module 12, used to respond to a page jump instruction acting on the first active component, save the notification message currently displayed by the message control as a message to be delivered, and switch the first active component to a second active component inheriting from the parent class; and a message to be delivered display module 13, used for the second active component to display the message control defined by the parent class in the graphical user interface, and to display the message to be delivered in the message control.

[0140] In one embodiment, the message control display module 11 and the message to be transmitted display module 12 include: a message acquisition submodule, used to acquire multiple system broadcast messages and parse each broadcast message to obtain the notification messages contained therein; a message storage submodule, used to store the notification messages corresponding to each system broadcast message in a message queue according to the acquisition time of each system broadcast message, with the notification messages acquired earlier in the message queue being sorted first; and a message display submodule, used to prioritize the output of the notification messages sorted first in the message queue to the message control for display, and so on, sequentially outputting each notification message in the message queue to the message control for display.

[0141] In one embodiment, the jump instruction response module 12 includes: a read tag determination submodule, used to determine whether the notification message currently displayed by the message control has a read tag; if it does, the notification message is not saved; and to determine whether there are other notification messages; if so, the other notification messages are saved as messages to be transmitted; and a read tag processing submodule, used to save the notification message as a message to be transmitted if the notification message does not have the read tag.

[0142] To address the aforementioned technical problems, this application also provides a computer device for running a computer program implemented according to the notification message display method. Please refer to the following for details. Figure 12 , Figure 12 This is a basic structural block diagram of the computer device in this embodiment.

[0143] like Figure 12The diagram shows the internal structure of a computer device. The computer device includes a processor, non-volatile storage medium, memory, and a network interface connected via a system bus. The non-volatile storage medium stores the operating system, a database, and computer-readable instructions. The database may store control information sequences. When the computer-readable instructions are executed by the processor, they enable the processor to implement a notification message display method. The processor provides computing and control capabilities, supporting the operation of the entire computer device. The memory stores computer-readable instructions, which, when executed by the processor, enable the processor to implement a notification message display method. The network interface of the computer device is used for communication with a terminal. Those skilled in the art will understand that… Figure 12 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0144] In this embodiment, the processor executes the specific functions of each module / submodule in the notification message display device of the present invention, and the memory stores the program code and various types of data required to execute the above modules. The network interface is used for data transmission between the user terminal and the server. In this embodiment, the memory stores the program code and data required to execute all modules / submodules in the notification message display device, and the server can call the server's program code and data to execute the functions of all submodules.

[0145] This application also provides a non-volatile storage medium in which the notification message display method is written as a computer program and stored in the storage medium in the form of computer-readable instructions. When the computer-readable instructions are executed by one or more processors, it means that the program is running in the computer, thereby causing one or more processors to perform the steps of the notification message display method of any of the above embodiments.

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

[0147] In summary, this application constructs a message control that inherits from the parent class of the activity component, enabling unread notification messages to be continuously output and displayed in each activity component that inherits from the parent class, thereby enhancing the notification effect of the notification messages. Furthermore, the message control is independent of the operating system's broadcast mechanism. As a result, the platform can attract users to participate in platform activities and improve the platform's user activity by flexibly defining the visual display method of notification messages.

[0148] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0149] Those skilled in the art will understand that the steps, measures, and solutions in the various operations, methods, and processes discussed in this application can be alternated, modified, combined, or deleted. Furthermore, other steps, measures, and solutions in the various operations, methods, and processes discussed in this application can also be alternated, modified, rearranged, decomposed, combined, or deleted. Furthermore, steps, measures, and solutions in the prior art that are similar to those disclosed in this application can also be alternated, modified, rearranged, decomposed, combined, or deleted.

[0150] The above description is only a partial embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for displaying notification messages, characterized in that: A first activity component that inherits from a preset parent class displays a message control defined by the parent class in a graphical user interface. The message control is used to output and display notification messages and is not the message control of the first activity component itself. The parent class contains multiple activity components and the message control, and the message control is independent of each activity component contained in the parent class. In response to the page jump instruction applied to the first activity component, the notification message currently displayed by the message control is saved as the message to be delivered, and the first activity component is switched to a second activity component that inherits from the parent class. The second activity component is independent of the first activity component. The second active component displays a message control defined by the parent class in the graphical user interface, and displays the message to be transmitted in the message control. The message control displayed in the graphical user interface is not the message control of the second active component itself.

2. The method according to claim 1, characterized in that, Before the first active component inheriting from the preset parent class displays the message control defined by the parent class in the graphical user interface, the following steps are included: Obtain system broadcast messages, parse out the notification messages within them, and output the notification messages to the message control for display.

3. The method according to claim 1, characterized in that, The steps of the first active component, which inherits from a preset parent class, displaying a message control defined by the parent class in the graphical user interface, and the second active component displaying a message control defined by the parent class in the graphical user interface, include: Obtain multiple system broadcast messages, and parse each broadcast message to obtain the notification messages contained therein; Based on the acquisition time of each system broadcast message, the notification messages corresponding to each system broadcast message are stored in the message queue in sequence, with the notification messages acquired earlier being sorted first in the message queue; The notification messages that are first sorted in the message queue are output to the message control for display first, and so on, the notification messages in the message queue are output to the message control for display in sequence.

4. The method according to claim 3, characterized in that, The steps of prioritizing the output of notification messages that are at the top of the message queue to the message control for display, and so on, to output and display all notification messages in the message queue, include: In response to a read command applied to the currently displayed notification message in the message control, stop the output display of the notification message in the message control; Determine whether a next notification message exists in the message queue. If it does, output the next notification message to the message control for display.

5. The method according to claim 1, characterized in that, This method includes the following parallel steps: In response to a hide command applied to the message control, the display state of the message control is changed to hidden display, thereby hiding the display of the message control in the graphical user interface of the currently active component.

6. The method according to claim 1, characterized in that, The steps of responding to a page navigation command applied to the first active component, saving the notification message currently displayed by the message control as a message to be delivered, and switching the first active component to a second active component that inherits from the parent class include: Determine whether the notification message currently displayed by the message control has a read tag. If it does, do not save the notification message. Determine whether there are other notification messages. If there are, save the other notification messages as messages to be delivered. If the notification message does not have the read tag, then the notification message will be saved as a message to be delivered.

7. The method according to claim 5, characterized in that, This method includes the following parallel steps: In response to the jump command applied to the notification message currently displayed in the message control, determine the notification activity component that inherits from the preset parent class corresponding to the notification message; Switch the current active component to the notification active component. If there are other notification messages to be output, save the notification message as a message to be delivered, and display the message to be delivered in the message control displayed by the notification active component.

8. An electronic device comprising a central processing unit and a memory, characterized in that, The central processing unit is used to invoke and run a computer program stored in the memory to perform the steps of the method as described in any one of claims 1 to 7.

9. A non-volatile storage medium, characterized in that, It stores, in the form of computer-readable instructions, a computer program implemented according to any one of claims 1 to 7, which, when invoked by a computer, performs the steps included in the method.

10. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Notification message display processing method, mobile terminal and storage medium

    CN109558049A

  • Dynamic message display method, related device, equipment and storage medium

    CN113126852A