Message notification method and device, electronic equipment, storage medium and program product

By receiving and processing unread messages in an electronic device, and adapting notification methods according to the banner notification mode and the number of messages, the problem of poor message notification flexibility in the prior art is solved, and the user experience and message notification flexibility is improved.

CN119728844APending Publication Date: 2025-03-28GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411964277.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In the prior art, the message notification method of electronic devices is poorly flexible, resulting in frequent pop-up of unread messages, affecting the user's current operations and operation experience.

Method used

By receiving the target unread messages to be notified, the current banner notification mode and the number of messages for each unread message are determined, and the target unread messages are notified based on this information. Specifically, the electronic device can configure a variety of banner notification modes and notification strategies, such as taking turns to notify when the number of messages is small, and each unread message appears briefly above the display interface; only the number of messages is notified when the number of messages is large, and banner notifications for each unread message are not made.

Benefits of technology

By combining the current banner notification mode and the number of unread messages to notify target unread messages, the problem of frequent interruption of message notifications is solved, and the flexibility and user experience of message notifications are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728844A_ABST
    Figure CN119728844A_ABST
Patent Text Reader

Abstract

The invention relates to a message notification method and device, electronic equipment, a storage medium and a program product. The method comprises the following steps: receiving a target unread message to be notified; determining a current banner notification mode and the number of the unread messages; and notifying the target unread message according to the banner notification mode and the number of messages. By adopting the method, the flexibility of message notification can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of message notification, and in particular to a message notification method, device, electronic device, storage medium and program product. Background Art

[0002] With the development of electronic technology, more and more applications (Application, APP) can be used on electronic devices. These applications will generate various messages during use.

[0003] When message notification is allowed, the electronic device will notify the user of these messages in sequence. For example, for each message, the electronic device will pop up a banner card above the screen to remind the user of the message.

[0004] However, the above message notification method has the problem of poor flexibility in message notification. Summary of the invention

[0005] Embodiments of the present application provide a message notification method, device, electronic device, storage medium, and program product, which can improve the flexibility of message notification.

[0006] In a first aspect, the present application provides a message notification method. The method comprises:

[0007] Receive unread messages of the target to be notified;

[0008] Determine the current banner notification mode and the number of messages for each unread message;

[0009] The target unread messages are notified according to the banner notification mode and the number of messages.

[0010] In a second aspect, the present application also provides a message notification device. The device comprises:

[0011] A receiving module, used for receiving target unread messages to be notified;

[0012] A determination module, used to determine the current banner notification mode and the number of messages for each unread message;

[0013] The notification module is used to notify the target unread messages according to the banner notification mode and the number of messages.

[0014] In a third aspect, the present application further provides an electronic device, wherein the electronic device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method described in the first aspect are implemented.

[0015] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0016] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0017] The above-mentioned message notification method, device, electronic device, storage medium and program product receive the target unread messages to be notified, determine the current banner notification mode and the number of each unread message, and then notify the target unread messages according to the determined banner notification mode and the number of messages. In this way, the embodiment of the present application notifies the target unread messages in combination with the current banner notification mode and the number of each unread message. Different banner notification modes and / or different message numbers affect the notification method of the target unread messages, making the message notification method more flexible and diverse, thereby improving the flexibility of message notification. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 A flowchart of a message notification method in one embodiment;

[0020] Figure 2 A flowchart of a message notification method in another embodiment;

[0021] Figure 3 is a flow chart of step 202 in another embodiment;

[0022] Figure 4 This is a schematic diagram of an interface for providing a banner notification of target unread messages in another embodiment;

[0023] Figure 5 A flowchart of a message notification method in another embodiment;

[0024] Figure 6 It is a schematic diagram of an interface for performing a stationary notification on a target unread message in another embodiment;

[0025] Figure 7 A flowchart of a message notification method in another embodiment;

[0026] Figure 8 This is a schematic diagram of an interface for providing a banner notification of target unread messages in another embodiment;

[0027] Fig. 9 This is a schematic diagram of an interface for providing a banner notification of target unread messages in another embodiment;

[0028] Fig.10 is a flow chart of step 203 in another embodiment;

[0029] Fig.11 It is a schematic diagram of an interface for stacking notification of target unread messages in another embodiment;

[0030] Fig.12 It is a schematic diagram of an interface for stacking notification of target unread messages in another embodiment;

[0031] Fig.13 A flowchart for configuring a banner notification mode in another embodiment;

[0032] Fig.14 This is a schematic diagram of an interface of a banner message management page in another embodiment;

[0033] Fig.15 This is a schematic diagram of an interface of a banner message management page in another embodiment;

[0034] Fig.16 It is a structural block diagram of a message notification device in an embodiment;

[0035] Fig.17 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0037] The message notification method provided in the embodiment of the present application can be applied to electronic devices. Among them, the electronic devices can be, but are not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc.

[0038] In an exemplary embodiment, Figure 1 As shown, a message notification method is provided, which is described by taking the method applied to an electronic device as an example, and includes the following steps 101 to 103:

[0039] Step 101: Receive target unread messages to be notified.

[0040] The target unread messages can be application messages of any application in the electronic device, and of course can also be system messages of the electronic device. The target unread messages include but are not limited to content push messages, update notification messages, real-time messages, etc., and the message type and message content of the target unread messages are not specifically limited here.

[0041] In an embodiment of the present application, the message notification function of the electronic device supports being turned on and off. When the message notification function of the electronic device is turned on, if the electronic device receives the above-mentioned target unread message, it is necessary to notify the target unread message.

[0042] As an implementation method, the message notification function may also correspond to an application. If the message notification function of an application is turned on, after the electronic device receives the target unread message of the application, the electronic device determines that the target unread message needs to be notified.

[0043] Step 102, determining the current banner notification mode and the number of unread messages.

[0044] In the embodiment of the present application, multiple banner notification modes can be configured, and different banner notification modes correspond to different message notification methods. For example, two different banner notification modes can be configured, and the specific banner notification mode currently used can be specified by the user, or can also be selected by the electronic device. For example, the electronic device can select according to the user's viewing habits of historical unread messages, etc.

[0045] In this way, the electronic device can determine the banner notification mode currently in use. In addition, it is understandable that when messages are sent frequently, there may be unread messages that the electronic device has received but has not yet made a message notification, and / or there may be unread messages that the electronic device has made a notification but the notification content has not disappeared from the display interface (such as the user has not viewed it yet), and the electronic device obtains the number of current unread messages, and the unread messages in step 102 may include target unread messages that the electronic device has not yet made a message notification.

[0046] In a possible implementation, a plurality of different notification strategies may be configured for each banner notification mode. For example, the notification strategies may be divided according to the number of unread messages.

[0047] For example, a certain banner notification mode includes two notification strategies. The first notification strategy is to issue a banner notification for each unread message in turn when the number of messages is small (the number of messages is less than a preset number threshold). The second notification strategy is to only notify the number of unread messages when the number of messages is large (the number of messages is greater than or equal to a preset number threshold), without issuing a banner notification for each unread message. The number of messages can be determined by comparing with the preset number threshold.

[0048] For example, a certain banner notification mode includes three notification strategies. The first notification strategy is to perform banner notifications for each unread message in turn when the number of messages is small (the number of messages is within the first number interval), the second notification strategy is to notify the banner messages of each unread message in parallel on the display interface of the electronic device when the number of messages is medium (the number of messages is within the second number interval), and the third notification strategy is to only notify the number of unread messages when the number of messages is large (the number of messages is within the third number interval). Among them, the maximum number in the first number interval is less than the minimum number in the second number interval, and the maximum number in the second number interval is less than the minimum number in the third number interval. No specific restrictions are made on the banner notification mode and the notification strategy corresponding to the banner notification mode.

[0049] In another possible implementation, different banner notification modes correspond to message quantity levels. For example, when the message quantity level indicates a small number of messages, the banner notification mode corresponding to the message quantity level is to provide a banner notification for each unread message in turn; when the message quantity level indicates a large number of messages, the banner notification mode corresponding to the message quantity level is to only notify the number of unread messages, and so on.

[0050] Step 103: Notify the target unread messages according to the banner notification mode and the number of messages.

[0051] In the first possible implementation described above, that is, for each banner notification mode, a variety of different notification strategies can be configured. For example, the notification strategies can be divided according to the number of unread messages. In this way, after the electronic device determines the currently used banner notification mode and the number of unread messages, it can determine the specific notification strategy in the currently used banner notification mode based on the number of messages. Then, the electronic device notifies the target unread messages based on the notification strategy.

[0052] In the second possible implementation described above, that is, when different banner notification modes correspond to message quantity levels, after the electronic device determines the currently used banner notification mode and the number of unread messages, if the currently used banner notification mode does not match the message quantity level at which the message quantity is located, the electronic device can adjust the banner notification mode currently used by the electronic device according to the message quantity level, and then, the electronic device notifies the target unread messages based on the adjusted banner notification mode.

[0053] The above embodiment combines the current banner notification mode and the number of unread messages to notify the target unread messages. Different banner notification modes and / or different message numbers affect the notification method of the target unread messages, making the message notification method more flexible and diverse, thereby improving the flexibility of message notification.

[0054] In one embodiment, based on Figure 1 In the embodiment shown, the following is an exemplary introduction to the process of an electronic device notifying a target of unread messages according to a banner notification mode and the number of messages. Figure 2 As shown, step 103 includes Figure 2 Steps 201 to 203 shown:

[0055] Step 201, detecting whether the number of messages is less than a preset number threshold.

[0056] In the embodiment of the present application, the preset quantity thresholds corresponding to different banner notification modes may be the same or different. For example, in the embodiment of the present application, two different banner notification modes may be configured: a first banner notification mode and a second banner notification mode, and the preset quantity thresholds of the first banner notification mode and the second banner notification mode may be the same or different (i.e., the preset quantity thresholds may be configured as needed for each of the two banner notification modes).

[0057] After the electronic device determines the current banner notification mode and the number of unread messages in step 102, it can determine the preset number threshold corresponding to the banner notification mode, and compare the current number of unread messages with the preset number threshold. The preset number threshold can be flexibly set during implementation, for example, to 5, 6, etc., and no specific restrictions are made here.

[0058] Step 202: When the number of messages is less than a preset number threshold, a banner notification is performed on the target unread messages according to a first notification strategy corresponding to the banner notification mode.

[0059] As described above, multiple different notification strategies can be configured for each banner notification mode. For example, two different notification strategies can be configured for each banner notification mode: a first notification strategy and a second notification strategy. The two notification strategies correspond to different message notification methods. The first notification strategy is used for message notification when the number of messages is small, and the second notification strategy is used for message notification when the number of messages is large.

[0060] When the electronic device detects that the number of unread messages is less than the preset number threshold corresponding to the current banner notification mode, it indicates that the number of messages is small. Therefore, the electronic device performs a banner notification on the target unread messages according to the first notification strategy corresponding to the banner notification mode.

[0061] Step 203: When the number of messages is greater than or equal to a preset number threshold, a second notification strategy corresponding to the banner notification mode is used to perform a side notification or a stack notification on the target unread messages.

[0062] When the electronic device detects that the number of unread messages is greater than or equal to the preset number threshold corresponding to the current banner notification mode, it indicates that the number of messages is large. Therefore, the electronic device performs side notification or stacked notification on the target unread messages according to the second notification strategy corresponding to the banner notification mode.

[0063] In an embodiment of the present application, the side notification may refer to the number of unread messages displayed on the side of the current display interface (for example, it can be displayed next to the edge), without a banner notification for each unread message (that is, the banner message of each unread message will not be displayed separately in the display interface); the stacked notification may be the banner messages of each unread message stacked and displayed in the display interface.

[0064] The following is an example in which two banner notification modes are configured: a first banner notification mode and a second banner notification mode, and each banner notification mode is configured with its corresponding first notification strategy and second notification strategy, to exemplarily illustrate the implementation of step 202 and step 203.

[0065] 1) Banner notification mode is the first banner notification mode.

[0066] The first banner notification mode can also be called the stationary mode. In the stationary mode, when the number of messages is less than the preset number threshold corresponding to the stationary mode, the first notification strategy of the stationary mode is matched, and the first notification strategy is to perform banner notifications on each unread message in turn according to the order of the reception time of each unread message. The so-called "take turns" may mean that after the banner message of the previous unread message disappears from the display interface, the banner message of the next unread message is displayed in the display interface; when the number of messages is greater than or equal to the preset number threshold corresponding to the stationary mode, the second notification strategy of the stationary mode is matched, and the second notification strategy is to perform stationary notifications on each unread message.

[0067] See also Figure 3 , providing an optional implementation method of performing a banner notification on target unread messages according to a first notification strategy corresponding to a banner notification mode when the number of messages is less than a preset number threshold. Figure 3 As shown, step 202 includes Figure 3 Step 301 and step 302 shown:

[0068] Step 301: When the number of messages is less than a preset number threshold, detect whether there are candidate unread messages that have not been notified with a banner, and obtain a detection result.

[0069] The receiving time of the candidate unread message is earlier than the receiving time of the target unread message.

[0070] The electronic device can record the receiving time of each unread message. In this way, when the current number of unread messages is less than the preset number threshold corresponding to the first banner notification mode, the electronic device can detect whether the candidate unread messages received before the target unread message have not yet been notified by banner.

[0071] Step 302: Based on the detection result, a banner notification is issued for the target unread message.

[0072] In a possible implementation of step 302, exemplarily, if the detection result is that there are no candidate unread messages, it indicates that there are no other unread messages to be notified except the target unread message, and the electronic device directly displays the target banner message corresponding to the target unread message in the display interface.

[0073] Exemplarily, if the detection result is that there are candidate unread messages, since the reception time of the candidate unread messages is earlier than the reception time of the target unread messages, the electronic device displays the target banner message in the display interface after issuing a banner notification for the candidate unread messages, that is, issuing a banner notification for the target unread messages.

[0074] In an embodiment of the present application, before the electronic device issues a banner notification for the target unread message, it can also determine the banner message display time, and the banner message display time can be a user-defined display time or a default display time. The electronic device issues a banner notification for the target unread message according to the banner message display time. For example, the electronic device displays the target banner message corresponding to the target unread message in the display interface according to the duration indicated by the banner message display time (assuming it is 10S). After the duration exceeds this duration, the target banner message is prohibited from continuing to be displayed in the display interface.

[0075] See also Figure 4 , Figure 4 This is an exemplary interface diagram of banner notification of target unread messages according to the first notification strategy in the first banner notification mode. When the number of messages is less than the preset number threshold, the banner message corresponding to each unread message appears briefly above the display interface and then disappears.

[0076] See also Figure 5 , provides an optional implementation method of performing a side notification of target unread messages according to a second notification strategy corresponding to the banner notification mode when the number of messages is greater than or equal to a preset number threshold. Figure 5 As shown, step 203 includes step 501 and step 502 shown in 5:

[0077] Step 501: When the number of messages is equal to a preset number threshold, a station notification box is displayed in the display interface.

[0078] The station notification box at least includes the number of messages.

[0079] When the number of messages is equal to the preset number threshold, it indicates that the number of messages that require stationary notification has been reached. The electronic device prohibits banner notifications for each unread message, but instead generates a stationary notification box and displays the stationary notification box in the display interface.

[0080] As an implementation, the electronic device may display the stationary notification box on the side of the display interface, for example, it may be displayed next to the edge. Optionally, when each unread message is an application message corresponding to a certain application, the stationary notification box may also include an identifier of the application, such as the name of the application.

[0081] Step 502: When the number of messages is greater than a preset number threshold, the number of messages is updated to a notification box displayed on the display interface.

[0082] When the number of messages is greater than the preset threshold, since the resident notification box has been displayed in the display interface when the number of messages is equal to the preset threshold, as the number of messages continues to accumulate, the electronic device only needs to update the number of messages included in the resident notification box, that is, update the latest number of messages to the resident notification box.

[0083] For example, see Figure 6 , Figure 6 This is an exemplary interface diagram for performing side notification on target unread messages according to the second notification strategy in the first banner notification mode. When the number of messages is greater than or equal to the preset number threshold, a side notification box is displayed in the display interface to replace the banner message of the unread messages.

[0084] In the related art, users can only set up banner notifications in electronic devices to turn them on or off. If banner notifications are turned on, when there are many unread messages, the banner messages will constantly pop up and disappear from the top of the display interface, affecting the user's current operations and operating experience. The flexibility of message notifications is very poor.

[0085] In an embodiment of the present application, in the first banner notification mode, if the number of messages is small, the target banner message of the target unread message is displayed normally, and if the number of messages is large, the number of messages can be displayed in the display interface through a stationary notification box, without having to issue a banner notification for each unread message separately, thereby improving the problem of frequent interruptions by banner message notifications, enhancing the flexibility of message notifications, and improving the operating experience of electronic devices.

[0086] In a possible implementation, if each unread message is an unread message for multiple applications, in this case, the resident notification box does not include the application identifier, and the resident notification box may only include the number of unread messages. After the electronic device displays the resident notification box in the display interface, if a trigger operation for the resident notification box is detected, the electronic device responds to the trigger operation for the resident notification box and displays the number of unread messages corresponding to each application in the display interface.

[0087] Optionally, the electronic device can respectively display the unread message number control corresponding to each application in the display interface, and the unread message number control displays the number of unread messages corresponding to the application. For each unread message number control, if the electronic device detects a trigger operation for the unread message number control, the electronic device switches to the user interface of the application corresponding to the unread message number control, thereby improving the convenience of interface switching and quickly reaching the interface where the user wants to view unread messages, which is conducive to improving the timeliness of message replies.

[0088] 2) Banner notification mode is the second banner notification mode.

[0089] The second banner notification mode can also be called the stacking mode. In the stacking mode, when the number of messages is less than the preset number threshold corresponding to the stacking mode, the first notification strategy of the stacking mode is matched, and the first notification strategy is to display the banner messages of each unread message in parallel in the display interface. For example, each banner message can be displayed in parallel in the display interface according to the order of the reception time of each unread message. The parallel display can be along the height direction or width direction of the electronic device, etc.; when the number of messages is greater than or equal to the preset number threshold corresponding to the stacking mode, the second notification strategy of the stacking mode is matched, and the second notification strategy is to stack the banner messages of each unread message and display them in the display interface.

[0090] See also Figure 7 , providing an optional implementation method of performing a banner notification on target unread messages according to a first notification strategy corresponding to a banner notification mode when the number of messages is less than a preset number threshold. Figure 7 As shown, step 202 includes Figure 7 Step 701 shown:

[0091] Step 701: When the number of messages is less than a preset number threshold, a target banner message corresponding to the target unread message is displayed in a banner area in the display interface.

[0092] In the case of a small number of messages, the electronic device directly generates a target banner message corresponding to the target unread message, and displays the target banner message in the display interface. Among them, one or more banner messages (including the target banner message) are displayed in the banner area, and the banner messages are arranged in the banner area in the order of the reception time of the unread messages corresponding to the banner messages. For example, in the order of the reception time, the banner messages are arranged in the banner area from bottom to top or from top to bottom along the height direction of the electronic device.

[0093] In the embodiment of the present application, when the electronic device displays the target banner message in the banner area, the banner area may have displayed a banner message corresponding to the previous historical unread message, or of course, no previous banner message may be displayed. If no previous banner message is displayed in the banner area, the electronic device directly displays the target banner message in the banner area.

[0094] If a banner message corresponding to a previous unread message is already displayed in the banner area, the electronic device continues to display the target banner message in the banner area according to the order of reception time between the target unread message and the unread message in history. For example, the target banner message is displayed above the banner message corresponding to the unread message in history.

[0095] Exemplarily, the size of the banner area varies with the number of banner messages displayed in the banner area. The size of the banner area can be equal to the sum of the screen areas occupied by the banner messages displayed in the banner area. That is, different panel sizes of the banner area can be displayed according to the number of messages, and the number of messages is positively correlated with the panel size of the banner area.

[0096] See also Figure 8 , Figure 8 This is a schematic diagram of an exemplary interface for banner notification of target unread messages in accordance with the first notification strategy in the second banner notification mode. When the electronic device displays the target banner message in the banner area, no previous banner message is displayed in the banner area at this time, and the electronic device directly displays the target banner message in the banner area.

[0097] See also Fig. 9 , Fig. 9 This is another exemplary interface diagram for banner notification of target unread messages in accordance with the first notification strategy in the second banner notification mode. When the electronic device displays the target banner message in the banner area, banner message 1 and banner message 2 corresponding to the two previous historical unread messages are already displayed in the banner area, and banner message 1 is displayed above banner message 2, and the reception time of the unread message corresponding to banner message 2 is earlier than the reception time of the unread message corresponding to banner message 1. Then, the banner messages corresponding to the unread messages are arranged from bottom to top along the height direction of the electronic device in the order of reception time, and the electronic device displays the target banner message above banner message 1.

[0098] Optionally, before the electronic device issues a banner notification for the target unread message, it may also determine the banner message display time. As described above, the banner message display time may be a user-defined display time or a default display time. The electronic device may issue a banner notification for the target unread message according to the banner message display time. For example, the electronic device displays the target banner message corresponding to the target unread message in the display interface according to the duration indicated by the banner message display time. After the duration exceeds the duration, the target banner message is prohibited from being displayed in the display interface.

[0099] When the number of messages is small, the banner messages are arranged in the banner area in the order of the reception time of the unread messages corresponding to the banner messages. As the number of messages increases, the banner area continues to increase. When the number of messages is greater than or equal to the preset threshold, in order to avoid interference with the display interface caused by an excessively large banner area, the first notification strategy is no longer used, but the second notification strategy is used.

[0100] See also Fig.10, provides an optional implementation method of stacking notification of target unread messages according to the second notification strategy corresponding to the banner notification mode when the number of messages is greater than or equal to the preset number threshold. Fig.10 As shown, step 203 includes Fig.10 Step 1001 and step 1002 are shown:

[0101] Step 1001: When the number of messages is greater than or equal to a preset number threshold, a banner message corresponding to the unread message with the earliest reception time is hidden from the banner area in the display interface.

[0102] When the number of banner messages displayed in the banner area is too large, in order to display the target banner message in the banner area, the electronic device hides the banner message corresponding to the unread message with the earliest reception time in the banner area, that is, the electronic device does not display the banner message corresponding to the unread message with the earliest reception time in the banner area.

[0103] Step 1002: Display a target banner message corresponding to the target unread message in the banner area according to the order of reception time of the target unread message and the remaining unread messages in the banner area.

[0104] The electronic device displays the target banner messages in the banner area in sequence according to the order of reception time of the unread messages, for example, displays the target banner message above the banner messages corresponding to the remaining unread messages in the banner area.

[0105] For example, see Fig.11 , Fig.11 This is an exemplary interface diagram for stacking notifications of target unread messages according to the second notification strategy in the second banner notification mode. When the number of messages is greater than or equal to the preset number threshold, the banner area will not continue to expand, but will make room for the target banner message by hiding the banner message corresponding to the unread message with the earliest reception time in the banner area.

[0106] In one possible implementation, for each banner message displayed in the banner area, if the electronic device detects a trigger operation for the banner message, the electronic device will switch the display page to the message page of unread messages corresponding to the banner message. The trigger operation may be a click operation or a sliding operation, etc.

[0107] In some embodiments, the banner area may also include a sliding control, which may be set at the edge of the banner area. The electronic device responds to a sliding operation on the sliding control by scrolling the unread messages removed by the notification in the banner area and some of the unread messages currently in the banner area. That is, the user can view a banner message of all unread messages by sliding the sliding control, and as the sliding control slides, the banner message of the unread messages displayed in the banner area also scrolls and changes accordingly.

[0108] For example, see Fig.12 , Fig.12 This is a schematic diagram of an exemplary interface for stacking notifications of target unread messages according to a second notification strategy in a second banner notification mode.

[0109] In the related art, users can only set up banner notifications in electronic devices to turn them on or off. If banner notifications are turned on, when there are many unread messages, the banner messages will constantly pop up and disappear from the top of the display interface, affecting the user's current operations and operating experience. The flexibility of message notifications is very poor.

[0110] In an embodiment of the present application, in the second banner notification mode, if the number of messages is small, the banner messages of each unread message are stacked and displayed, that is, the banner messages of each unread message can be stacked and displayed within the defined maximum message number threshold interval, and if the number of messages is large, the banner message corresponding to the unread message with the earliest reception time in the banner area is hidden to make room for the display position of the target banner message, and a banner notification is given for the newly received target unread message, thereby avoiding excessive occupation of the display interface by a large banner area, improving the flexibility of message notification, and helping to ensure the operating experience of the electronic device.

[0111] In addition, by setting a sliding control, in a scenario where messages are sent frequently, you can slide to view each unread message without affecting the current business content.

[0112] In the embodiments of the present application, the personalized needs of users for banner messages when using electronic devices are taken into consideration. Different banner notification modes and various notification strategies are used to meet the different personalized needs of users, reduce the problem of frequent interference of banner message notifications on the display interface, and improve the flexibility of message notifications of electronic devices.

[0113] In one embodiment, based on any of the above embodiments, the electronic device can also configure the current banner notification mode by displaying a banner message management page.

[0114] Based on Figure 1 For example, see the embodiment shown in Fig.13 The message notification method of the embodiment of the present application also includes Fig.13 Step 1301 and step 1302 are shown:

[0115] Step 1301, displaying a banner message management page in the display interface.

[0116] The banner message management page may be a banner message management page for a target application. Of course, the banner message management page may also be a universal banner message management page (applicable to all notification messages in an electronic device).

[0117] The banner message management page includes at least a first mode selection control and a second mode selection control. The first mode selection control is used for the user to select a first banner notification mode, and the second mode selection control is used for the user to select a second banner notification mode. Exemplarily, the first banner notification mode is, for example, a stationary mode, and the second banner notification mode is, for example, a stacked mode.

[0118] Step 1302, in response to a trigger operation on a first mode selection control, configure the current banner notification mode as a first banner notification mode; or, in response to a trigger operation on a second mode selection control, configure the current banner notification mode as a second banner notification mode.

[0119] The triggering operation of the first mode selection control and the triggering operation of the second mode selection control are mutually exclusive, that is, multiple banner notification modes do not coexist.

[0120] For example, see Fig.14 , Fig.14 The following is a schematic diagram of an exemplary interface of a banner message management page.

[0121] In this way, by displaying the banner message management page, the user can customize the current banner notification mode as needed, making the message notification method more personalized and better matching user needs.

[0122] In a possible implementation, the banner message management page also includes a display time setting control, so that the user can customize the banner message display time based on the display time setting control.

[0123] The electronic device can also determine the banner message display time in response to a setting operation for the display time setting control. The banner message display time is used to provide a banner notification for the target unread message according to the banner message display time. That is, when the electronic device provides a banner notification for the unread message, it can display the banner message in the display interface within the duration indicated by the banner message display time.

[0124] As an implementation method, the display time setting control includes at least one display time recommendation control and a display time input control. The above-mentioned banner message display time can be determined by the electronic device based on the display time recommendation control or the display time input control. The recommended display time is displayed in the display time recommendation control.

[0125] For example, see Fig.15 , Fig.15 is a schematic diagram of an exemplary interface of a banner message management page. Fig.15 Six display time recommendation controls are shown, and the recommended display times displayed by the six display time recommendation controls are 1S, 2S, 3S, 4S, 5S and continuous display. Fig.15 The custom display time shown is the display time input control.

[0126] Among them, when the banner message management page corresponds to the target application, the recommended display time can be determined by the electronic device according to the historical message push policy corresponding to the target application, that is, the electronic device can intelligently recommend the recommended display time.

[0127] For example, if the target application is an instant messaging application, the historical message push strategy may be that the display time of the banner message is longer, then the electronic device can appropriately increase the recommended display time; for example, if the target application is a marketing application, the historical message push strategy may be that the display time of the banner message is shorter, then the electronic device can appropriately shorten the recommended display time, and so on.

[0128] The above embodiment adds a user customization function in the message notification scenario, and meets the user needs in different scenarios by customizing the banner notification mode and notification method.

[0129] In one embodiment, a message notification method is provided, which is applied to an electronic device and includes the following steps:

[0130] Step A1, displaying a banner message management page in the display interface.

[0131] Step A2, in response to the triggering operation of the stationing mode selection control in the banner message management page, configure the current banner notification mode as the stationing mode; or, in response to the triggering operation of the stacking mode selection control in the banner message management page, configure the current banner notification mode as the stacking mode.

[0132] Step A3, in response to the setting operation of the display time setting control in the banner message management page, determining the banner message display time.

[0133] Step A4, receiving target unread messages to be notified.

[0134] Step A5, determining the current banner notification mode and the number of each unread message.

[0135] 1) In the first case, the banner notification mode is the stationary mode:

[0136] Step A61: When the number of messages is less than the preset number threshold corresponding to the stationing mode, it is detected whether there are candidate unread messages that are not notified with a banner, and a detection result is obtained.

[0137] The receiving time of the candidate unread message is earlier than the receiving time of the target unread message.

[0138] Step A62, if the detection result is that there is no candidate unread message, then the target banner message corresponding to the target unread message is displayed in the display interface according to the banner message display time.

[0139] Step A63, if the detection result is that there are candidate unread messages, after a banner notification is made for the candidate unread messages, a target banner message is displayed in the display interface according to the banner message display time.

[0140] Step A64: when the number of messages is equal to the preset number threshold corresponding to the stationing mode, a stationing notification box is displayed in the display interface, and the stationing notification box at least includes the number of messages.

[0141] Step A64: when the number of messages is greater than a preset number threshold corresponding to the stationing mode, the number of messages is updated to the stationing notification box displayed in the display interface.

[0142] If each unread message is an unread message for multiple applications, the electronic device may also display the number of unread messages corresponding to each application in the display interface in response to a trigger operation on the stationary notification box.

[0143] 2) In the second case, the banner notification mode is stacked mode:

[0144] Step A71, when the number of messages is less than the preset number threshold corresponding to the stacking mode, display the target banner message corresponding to the target unread message in the banner area in the display interface according to the banner message display time.

[0145] The banner area displays one or more banner messages, and the banner messages are arranged in the banner area in the order of the time when the unread messages corresponding to the banner messages are received. The banner area also includes a sliding control.

[0146] Step A72, when the number of messages is greater than or equal to the preset number threshold corresponding to the stacking mode, hide the banner message corresponding to the unread message with the earliest reception time from the banner area in the display interface, and display the target banner message corresponding to the target unread message in the banner area according to the banner message display time, in the order of reception time of the target unread messages and the remaining unread messages in the banner area.

[0147] Step A73, in response to the sliding operation on the sliding control, scrolling the unread messages to be removed by the notification in the banner area and some of the unread messages currently in the banner area.

[0148] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0149] Based on the same inventive concept, the embodiment of the present application also provides a message notification device for implementing the message notification method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more message notification device embodiments provided below can refer to the limitations on the message notification method above, and will not be repeated here.

[0150] In one embodiment, Fig.16 As shown, a message notification device is provided, comprising:

[0151] Receiving module 1601, used for receiving target unread messages to be notified;

[0152] A determination module 1602, configured to determine a current banner notification mode and the number of each unread message;

[0153] The notification module 1603 is used to notify the target unread messages according to the banner notification mode and the number of messages.

[0154] In one embodiment, the notification module 1603 includes:

[0155] A detection unit, used to detect whether the number of messages is less than a preset number threshold;

[0156] A first notification unit, configured to perform a banner notification on the target unread messages according to a first notification strategy corresponding to the banner notification mode when the number of messages is less than the preset number threshold;

[0157] The second notification unit is used to perform a side notification or a stacked notification on the target unread messages according to a second notification strategy corresponding to the banner notification mode when the number of messages is greater than or equal to the preset number threshold.

[0158] In one of the embodiments, the banner notification mode is a first banner notification mode, and the first notification unit is specifically used to detect whether there are candidate unread messages for which banner notification has not been performed, and obtain a detection result, wherein the reception time of the candidate unread message is earlier than the reception time of the target unread message; and based on the detection result, a banner notification is performed on the target unread message.

[0159] In one of the embodiments, the first notification unit is specifically used to display a target banner message corresponding to the target unread message in the display interface if the detection result is that the candidate unread message does not exist; if the detection result is that the candidate unread message exists, after performing a banner notification on the candidate unread message, display the target banner message in the display interface.

[0160] In one embodiment, the banner notification mode is a first banner notification mode, and the second notification unit is specifically used to display a stationary notification box in the display interface when the number of messages is equal to the preset number threshold, and the stationary notification box includes at least the number of messages.

[0161] In one of the embodiments, the banner notification mode is a first banner notification mode, and the second notification unit is specifically used to update the number of messages to a side notification box displayed in the display interface when the number of messages is greater than the preset number threshold.

[0162] In one embodiment, each of the unread messages is an unread message for multiple applications, and the device further includes:

[0163] The first display module is used to display the number of unread messages corresponding to each of the applications in the display interface in response to a trigger operation on the stationary notification box.

[0164] In one of the embodiments, the banner notification mode is a second banner notification mode, and the first notification unit is specifically used to display a target banner message corresponding to the target unread message in a banner area in a display interface; wherein, one or more banner messages are displayed in the banner area, and each of the banner messages is arranged in sequence in the banner area according to the chronological order of receipt time of the unread messages corresponding to each of the banner messages.

[0165] In one of the embodiments, the banner notification mode is a second banner notification mode, and the second notification unit is specifically used to hide the banner message corresponding to the unread message with the earliest reception time from the banner area in the display interface; and display the target banner message corresponding to the target unread message in the banner area according to the order of reception time of the target unread message and the remaining unread messages in the banner area.

[0166] In one embodiment, the banner area also includes a sliding control, and the notification module 1603 is further used to respond to a sliding operation on the sliding control, scrolling the notification of removed unread messages and some unread messages in the banner area in response to a sliding operation on the sliding control.

[0167] In one embodiment, the determination module 1602 is further used to determine the banner message display time;

[0168] The notification module 1603 is specifically configured to perform a banner notification on the target unread message according to the banner message display time.

[0169] In one embodiment, the device further comprises:

[0170] A second display module, used to display a banner message management page in the display interface, wherein the banner message management page includes at least a first mode selection control and a second mode selection control;

[0171] A configuration module, used to configure the current banner notification mode as the first banner notification mode in response to a trigger operation on the first mode selection control; or, in response to a trigger operation on the second mode selection control, configure the current banner notification mode as the second banner notification mode.

[0172] In one embodiment, the banner message management page further includes a display time setting control, and the determination module 1602 is further configured to determine the banner message display time in response to a setting operation on the display time setting control;

[0173] The banner message display time is used to perform a banner notification on the target unread message according to the banner message display time.

[0174] In one of the embodiments, the display time setting control includes at least one display time recommendation control and a display time input control, the display time recommendation control displays a recommended display time, and the banner message display time is determined based on the display time recommendation control or the display time input control;

[0175] Wherein, in the case where the banner message management page corresponds to a target application, the recommended display time is determined according to a historical message push policy corresponding to the target application.

[0176] Each module in the above message notification device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0177] In one embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as follows: Fig.17 As shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a message notification method is implemented. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device housing, or an external keyboard, touchpad or mouse.

[0178] Those skilled in the art will understand that Fig.17The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0179] The embodiment of the present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, the processors execute the steps of the message notification method.

[0180] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the message notification method.

[0181] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0182] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0183] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0184] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A message notification method, characterized in that: The method comprises: Receive unread messages of the target to be notified; Determine the current banner notification mode and the number of messages for each unread message; The target unread messages are notified according to the banner notification mode and the number of messages.

2. The method according to claim 1, characterized in that The notifying the target unread messages according to the banner notification mode and the number of messages includes: Detecting whether the number of messages is less than a preset number threshold; When the number of messages is less than the preset number threshold, a banner notification is performed on the target unread messages according to the first notification strategy corresponding to the banner notification mode; When the number of messages is greater than or equal to the preset number threshold, the target unread messages are notified in a sidebar or in a stacked manner according to a second notification strategy corresponding to the banner notification mode.

3. The method according to claim 2, characterized in that The banner notification mode is a first banner notification mode, and performing a banner notification on the target unread message according to a first notification strategy corresponding to the banner notification mode includes: Detecting whether there are candidate unread messages for which banner notification is not performed, and obtaining a detection result, wherein the reception time of the candidate unread messages is earlier than the reception time of the target unread messages; According to the detection result, a banner notification is provided for the target unread messages.

4. The method according to claim 3, characterized in that The step of providing a banner notification for the target unread message according to the detection result includes: If the detection result is that the candidate unread message does not exist, displaying a target banner message corresponding to the target unread message in the display interface; If the detection result is that the candidate unread message exists, after a banner notification is performed on the candidate unread message, the target banner message is displayed in the display interface.

5. The method according to claim 2, characterized in that: The banner notification mode is a first banner notification mode, and the performing a side notification on the target unread message according to a second notification strategy corresponding to the banner notification mode includes: When the number of messages is equal to the preset number threshold, a stationary notification box is displayed in the display interface, and the stationary notification box includes at least the number of messages.

6. The method according to claim 5, characterized in that The performing a side notification on the target unread message according to the second notification strategy corresponding to the banner notification mode also includes: When the number of messages is greater than the preset number threshold, the number of messages is updated in a stationary notification box displayed in the display interface.

7. The method according to claim 5 or 6, characterized in that: Each of the unread messages is an unread message for multiple applications. After the target unread messages are notified on the side according to the second notification strategy corresponding to the banner notification mode, the method further includes: In response to a triggering operation on the stationary notification box, the number of unread messages corresponding to each of the applications is displayed in the display interface.

8. The method according to claim 2, characterized in that: The banner notification mode is the second banner notification mode, and performing a banner notification on the target unread message according to the first notification strategy corresponding to the banner notification mode includes: Displaying a target banner message corresponding to the target unread message in a banner area in the display interface; Among them, one or more banner messages are displayed in the banner area, and the banner messages are arranged in the banner area in the order of the reception time of the unread messages corresponding to the banner messages.

9. The method according to claim 2, characterized in that: The banner notification mode is the second banner notification mode, and the process of stacking notification of the target unread messages according to the second notification strategy corresponding to the banner notification mode includes: Hide the banner message corresponding to the unread message with the earliest reception time from the banner area in the display interface; The target banner message corresponding to the target unread message is displayed in the banner area according to the order of the receiving time of the target unread message and the remaining unread messages in the banner area.

10. The method according to claim 9, characterized in that The banner area also includes a sliding control, and the method further includes: In response to a sliding operation on the sliding control, unread messages to be removed by the notification and some of the currently unread messages in the banner area are scrolled in the banner area.

11. The method according to claim 2, characterized in that Before performing a banner notification on the target unread message, the method further includes: Determine the banner message display time; According to the banner message display time, a banner notification is sent to the target unread messages.

12. The method according to claim 2, characterized in that: The method further comprises: Displaying a banner message management page in a display interface, wherein the banner message management page includes at least a first mode selection control and a second mode selection control; In response to a trigger operation on the first mode selection control, the current banner notification mode is configured as the first banner notification mode; or, in response to a trigger operation on the second mode selection control, the current banner notification mode is configured as the second banner notification mode.

13. The method according to claim 12, characterized in that The banner message management page also includes a display time setting control, and the method further includes: In response to a setting operation on the display time setting control, determining a banner message display time; The banner message display time is used to perform a banner notification on the target unread message according to the banner message display time.

14. The method according to claim 13, characterized in that The display time setting control includes at least one display time recommendation control and a display time input control, the display time recommendation control displays a recommended display time, and the banner message display time is determined based on the display time recommendation control or the display time input control; Wherein, in the case where the banner message management page corresponds to a target application, the recommended display time is determined according to a historical message push policy corresponding to the target application.

15. A message notification device, characterized in that: The device comprises: A receiving module, used for receiving target unread messages to be notified; A determination module, used to determine the current banner notification mode and the number of messages for each unread message; The notification module is used to notify the target unread messages according to the banner notification mode and the number of messages.

16. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 14.

17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 14 are implemented.

18. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 14 are implemented.