Notification message sorting display method and device, equipment and storage medium
By obtaining application feature data on the smart terminal, updating and merging the display priority of notification messages, the problems of low efficiency and poor user experience caused by messaging in the prior art are solved, and more efficient message sorting and display are achieved.
Patent Information
- Application Number
- CN202411109045.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-12-27
AI Technical Summary
The existing notification message sorting display method cannot effectively identify and separate important messages, resulting in inefficient and poor user experience when viewing and processing.
By obtaining the characteristic data of the application, it is stored in Key-Value, and the display priority of different application notification messages is updated according to the preset rules within the preset time, and the messages are displayed after being merged and sorted to prioritize the user's important information. information.
Improves the efficiency of users to obtain useful messages in the notification bar and improves the user experience.
Smart Images

Figure CN119202424A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the computer field, and further to the terminal information processing technology field, and in particular to a method, device, equipment and storage medium for sorting and displaying notification messages. Background Art
[0002] With the development of science and technology, smart terminals such as mobile phones and tablet computers have become an indispensable part of people's lives. Users can use these terminals for communication, video, photography, playing games, etc. In order to meet the different needs of users, terminal applications developed for various functions are also increasing. Various terminal applications and terminal systems in smart terminals will send various messages to users from time to time, and these messages will be displayed in the notification bar of the smart terminal. If you don't check for a period of time (such as attending a meeting, taking a plane or taking a lunch break), various messages may be piled up in the notification bar. These messages belong to different types and have different importance. They are mixed together, which is inconvenient for users to view and process. In traditional technology, all received notifications are simply arranged together in the notification bar according to the time order of receiving the messages. In this way, various messages are mixed together, and users need to check all messages one by one to ensure whether there are useful messages. Not only is the efficiency low, but the user experience is poor. Summary of the invention
[0003] The present disclosure provides a method, apparatus, device and storage medium for sorting and displaying notification messages, which solves the problem that the existing method for sorting and displaying notification messages cannot identify important messages, resulting in inconvenience for users to view and process them.
[0004] According to a first aspect of the present disclosure, a method for sorting and displaying notification messages is provided. The method comprises:
[0005] Get the feature data of the application and store it in Key-Value format, where the Key is the package name of the application and the Value is the display priority of the notification message;
[0006] Update the display priority of notification messages of different applications according to preset rules within a preset time;
[0007] Sorting the received notification messages according to the updated display priority and generating a sorting result;
[0008] According to the sorting result, the received notification message is displayed in a notification bar.
[0009] According to the above aspects and any possible implementation, an implementation is further provided, wherein obtaining the characteristic data of the application and storing it in a Key-Value manner comprises:
[0010] The applications having user usage information and user ranking information within a preset time are stored in a Key-Value array named array V1, wherein the Value is 0;
[0011] The applications that have no user usage information or user ranking information within the preset time are stored in the Key-Value array named array V2, wherein the Value is -1.
[0012] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein updating the display priority of different application notification messages according to preset rules within a preset time includes:
[0013] Determine the value of the first priority according to the user-defined sorting result within the preset time;
[0014] Obtaining and sorting the frequency data of application usage by users within the preset time, and determining a value of the second priority;
[0015] The first priority level has a higher priority than the second priority level;
[0016] The display priorities of different application notification messages in the array V1 are updated according to the value of the first priority and the value of the second priority.
[0017] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein the method further includes:
[0018] Obtaining popularity information and user ratings of each application included in the array V2 in the application store within the preset time, and determining a value of the third priority;
[0019] The display priorities of different application notification messages in the array V2 are updated according to the value of the third priority.
[0020] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein the method further includes:
[0021] The updated arrays V1 and V2 are merged and persisted, so that the display priority of the merged array V2 is increased by V1.length, and the total display priority is generated and arranged in descending order.
[0022] According to the above aspect and any possible implementation manner, an implementation manner is further provided, wherein displaying the received notification message in a notification bar according to the sorting result comprises:
[0023] The sorting result is read according to SystemUI and the received notification message is displayed in the notification bar according to the sorting information.
[0024] According to a second aspect of the present disclosure, a device for sorting and displaying notification messages is provided. The device includes: a storage module, which is used to obtain feature data of an application program and store it in a Key-Value manner, where the Key is the package name of the application and the Value is the display priority of the notification message;
[0025] An updating module, used to update the display priority of notification messages of different applications according to preset rules within a preset time;
[0026] A sorting module, used to sort the received notification messages according to the updated display priority and generate a sorting result;
[0027] The display module is used to display the received notification message in a notification bar according to the sorting result.
[0028] According to the above aspects and any possible implementation manner, there is further provided an implementation manner, wherein the apparatus further includes:
[0029] The merging device is used to merge the updated array V1 and array V2 and perform persistence operation, so that the display priority of the merged array V2 increases by V1.length, generates a total display priority and arranges it in descending order.
[0030] According to a third aspect of the present disclosure, an electronic device is provided, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the program, the method described above is implemented.
[0031] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the method according to the first aspect and / or the second aspect of the present disclosure is implemented.
[0032] In the embodiments of the present disclosure, firstly, the characteristic data of the application can be obtained and stored in a Key-Value manner, where the Key is the package name of the application and the Value is the display priority of the notification message; secondly, the display priority of notification messages of different applications can be updated according to preset rules within a preset time; and the received notification messages can be sorted according to the display priority of the merged and sorted notification messages to generate a sorting result; finally, the received notification messages can be displayed in the notification bar according to the sorting result. In this way, information important to the user can be identified, the efficiency of the user obtaining useful messages in the notification bar can be improved, and the user experience can be improved.
[0033] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, among which:
[0035] Figure 1 A flowchart of a method for sorting and displaying notification messages provided by an embodiment of the present disclosure is shown;
[0036] Figure 2 A structural diagram of a notification message sorting and displaying device provided by an embodiment of the present disclosure is shown;
[0037] Figure 3 A structural diagram of an exemplary electronic device capable of implementing an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0039] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0040] In the present disclosure, firstly, the characteristic data of the application can be obtained and stored in a Key-Value manner, where the Key is the package name of the application and the Value is the display priority of the notification message; secondly, the display priority of notification messages of different applications can be updated according to preset rules within a preset time; and the received notification messages can be sorted according to the display priority of the merged and sorted notification messages to generate a sorting result; finally, the received notification messages can be displayed in the notification bar according to the sorting result. In this way, important information for users can be identified, the efficiency of users obtaining useful messages in the notification bar can be improved, and the user experience can be improved.
[0041] In conjunction with the accompanying drawings, a method, apparatus, device and storage medium for sorting and displaying notification messages provided by an embodiment of the present disclosure are described in detail below through specific embodiments.
[0042] Figure 1 A flowchart of a method for sorting and displaying notification messages provided by an embodiment of the present disclosure is shown. Figure 1 As shown, the notification message sorting and displaying method 100 may include the following steps:
[0043] S110, acquiring characteristic data of the application program, and storing it in a Key-Value manner, wherein the Key is the package name of the application, and the Value is the display priority of the notification message.
[0044] In some embodiments, obtaining the characteristic data of the application and storing it in a Key-Value manner includes:
[0045] The applications having user usage information and user ranking information within a preset time are stored in a Key-Value array named array V1, wherein the Value is 0;
[0046] The applications that have no user usage information or user ranking information within the preset time are stored in the Key-Value array named array V2, wherein the Value is -1.
[0047] S120: Update the display priorities of notification messages of different applications according to preset rules within a preset time.
[0048] In some embodiments, updating the display priorities of different application notification messages according to preset rules within a preset time includes:
[0049] Determine the value of the first priority according to the user-defined sorting result within the preset time;
[0050] Obtaining and sorting the frequency data of application usage by users within the preset time, and determining a value of the second priority;
[0051] The first priority level has a higher priority than the second priority level;
[0052] The display priorities of different application notification messages in the array V1 are updated according to the value of the first priority and the value of the second priority.
[0053] Obtaining popularity information and user ratings of each application included in the array V2 in the application store within the preset time, and determining a value of the third priority;
[0054] The display priorities of different application notification messages in the array V2 are updated according to the value of the third priority.
[0055] The updated arrays V1 and V2 are merged and persisted, so that the display priority of the merged array V2 is increased by V1.length, and the total display priority is generated and arranged in descending order.
[0056] In some embodiments, the priority value of the notification message may be composed of a value of a first priority and a value of a second priority, and the weight of the first priority is higher than the weight of the second priority.
[0057] In some other embodiments, the first priority may always be higher than the second priority. That is, as long as the value of the first priority of a notification message is higher than the value of the first priority of another notification message, the ranking of the notification message is higher than the ranking of the other notification message, regardless of whether the value of the second priority of the notification message is lower than the value of the second priority of the other notification message. Sorting multiple notification messages according to the values of the first priority and the values of the second priority may include: when the values of the first priority are the same, sorting the multiple notification messages according to the values of the second priority.
[0058] Exemplarily, obtaining the frequency data of application usage by the user within the preset time may include a situation where the user directly opens the application and uses the application, and a situation where the user uses the application by opening a message related to the application.
[0059] For example, a user of a mobile terminal may directly open an application to use the application, so the mobile terminal calculates the usage frequency of different applications within a predetermined time period by counting the number of times the application in the mobile terminal is opened within a preset time period.
[0060] For example, a usage frequency list may be generated based on the number of times different applications are used within a predetermined time period. The predetermined time period may be a week, a month, etc., which may be set by the user or by the system default. For example, an application that has not been used once within the predetermined time period is counted as 0, and an application that has been used once is counted as 1.
[0061] For example, after the usage frequency list is generated, the applications may be sorted in descending order of usage times.
[0062] Furthermore, the applications in the list with the same number of uses may be further sorted according to the use duration, so that the applications with higher number of uses and use duration may be placed at the front of the list.
[0063] It should be understood that the user does not need to perform a custom sorting of the applications, that is, the display priority of the applications can be set directly according to the number of times they are used or further according to the length of time they are used.
[0064] For the case where a mobile terminal uses an application by opening messages related to the application, the mobile terminal may count the number of times the application is used in the mobile terminal within a preset time, which may include: counting the number of times messages in the message notification bar are viewed within the predetermined time and identifying the application corresponding to the viewed message in the message notification bar.
[0065] For example, messages that users do not pay attention to may be retained for a longer time. If users do not click on them, they may be directly deleted after a period of time. However, for messages that users pay attention to, users may click on them to view them and open the relevant application interface. For example, if a user frequently opens push notifications from Taobao, it is considered that the user pays attention to Taobao. If a user frequently opens push notifications from a certain game, it is considered that the user pays attention to this game.
[0066] For example, the mobile terminal can count the messages viewed in the message notification bar within a predetermined time period and identify the applications corresponding to the messages viewed in the message notification bar. The predetermined time period can be one week, half a month, etc., which can be set by the user or by the system default setting.
[0067] In addition, the identified applications may be set with display priorities according to the counts, that is, applications corresponding to messages with a higher number of views are set with a higher display priority.
[0068] In addition, the mobile terminal may update the display priorities of different messages by directly counting the total usage time of the applications in the mobile terminal within a preset time.
[0069] For example, merging the updated arrays V1 and V2 and persisting them can be done using Provider or SharedPreferences. Provider is a lightweight, easy-to-use library designed to help developers effectively manage the state in their applications. Provider allows data models to be exposed to the entire application and the state to be easily accessed and updated when needed. It is built on InheritedWidget and provides a simple and powerful way to share state in Flutter applications.
[0070] SharedPreferences is a lightweight storage auxiliary class on the Android platform, used to save some common configurations of the application. It provides six data types: String, set, int, long, float, and boolean. The data of SharedPreferences is saved in a file in the form of xml as key-value pairs. In the application, it is usually used to do some simple data persistent caching.
[0071] Exemplarily, if the received notification message originates from an application that has no user usage information or user sorting information within a preset time, the priority of the notification message may include a first priority and a third priority, and the priority of the first priority is higher than the priority of the third priority. Therefore, the multiple notification messages can be sorted according to the first priority value and the third priority value by obtaining the values of the first priority and the third priority of the multiple notification messages. For example, when the values of the first priority are the same, the multiple notification messages are sorted according to the values of the second priority. In some embodiments, if the value of the first priority of the first notification message is lower than the value of the first priority of the second notification message, but if the value of the third priority of the first notification message is higher than the value of the third priority of the second notification message, since the priority of the first priority is higher than the priority of the third priority, the first notification message is sorted after the second notification message.
[0072] S130, sorting the received notification messages according to the updated display priority and generating a sorting result.
[0073] Exemplarily, the sorting result is a sequential sorting of multiple notification messages according to a preset rule. It can be understood that the sorting result can be a sorting from front to back, or a sorting from small to large sequence numbers.
[0074] S140: Display the received notification message in a notification bar according to the sorting result.
[0075] In some embodiments, displaying the received notification message in a notification bar according to the sorting result includes:
[0076] The sorting result is read by modifying the built-in application SystemUI of the operating system, and the received notification message is displayed in the notification bar according to the sorting result.
[0077] For example, in SystemUI, the builder mode can be used to create a notification bar, and the notify method can be used to notify the execution of the operation of the notification status bar.
[0078] In the present disclosure, firstly, the characteristic data of the application can be obtained and stored in a Key-Value manner, where the Key is the package name of the application and the Value is the display priority of the notification message; secondly, the display priority of notification messages of different applications can be updated according to preset rules within a preset time; and the received notification messages can be sorted according to the display priority of the merged and sorted notification messages to generate a sorting result; finally, the received notification messages can be displayed in the notification bar according to the sorting result. In this way, important information for users can be identified, the efficiency of users obtaining useful messages in the notification bar can be improved, and the user experience can be improved.
[0079] The following is a detailed description of the notification message sorting and displaying method 100 provided in the embodiment of the present disclosure in conjunction with a specific embodiment, as shown below:
[0080] Acquire feature data of the application and store it in a Key-Value manner, where the Key is the package name of the application and the Value is the display priority of the notification message; store applications with user usage information and user ranking information within a week in a Key-Value array named array V1, where the Value is 0; store applications without user usage information or user ranking information within the week in the Key-Value array named array V2, where the Value is -1.
[0081] The first priority value is determined based on the user-defined sorting results within this week; for example, the user determines the first priority values of some applications by dragging or modifying the application priority values within this week; for example, missed calls are 1, text messages are 2, WeChat is 3, and Postal Savings Bank is 4.
[0082] Obtain and sort the frequency data of users' application usage within this week to determine the value of the second priority;
[0083] For example, the mobile terminal calculates the usage frequency of different applications within a week by counting the number of times the applications in the mobile terminal are opened within the week, and generates a usage frequency list based on the number of times different applications are used within the week. After generating the usage frequency list, the applications are sorted in descending order according to the number of times they are used, for example: Weibo is 30 times, QQ is 20 times, WeChat is 20 times, and SMS is 10 times. Since WeChat and QQ have the same number of uses, they are further sorted according to the usage time, so that applications with higher usage times and usage time are placed at the front of the list. That is, since WeChat has a higher usage time than QQ, the final sorting result and the second priority value are: Weibo is 1, WeChat is 2, QQ is 3, and SMS is 4.
[0084] Since the priority of the first priority is higher than that of the second priority, the display priority of notification messages of different applications in the final array V1 should be: missed calls are 1, text messages are 2, WeChat is 3, Postal Savings Bank is 4, Weibo is 5, and QQ is 6.
[0085] Obtain the popularity information and user ratings of each application included in the array V2 in the app store within this week, and determine the value of the third priority; for example: Baidu is 1, Baidu Map is 2, Cainiao is 3, and e-book is 4.
[0086] The display priorities of different application notification messages in the array V2 are updated according to the value of the third priority.
[0087] Use Provider or SharedPreferences to merge the updated arrays V1 and V2 and persist them, so that the display priority of the merged array V2 increases by V1.length, generate the total display priority and sort in descending order. Therefore, after merging and sorting in descending order, the display priority of the applications is: missed calls are 1, SMS are 2, WeChat is 3, Postal Savings Bank is 4, Weibo is 5, QQ is 6, Baidu is 7, Baidu Maps is 8, Cainiao is 9, and e-books are 10.
[0088] Finally, the received notification messages are sorted according to the updated display priority to generate a sorting result; the sorting result is read by modifying the built-in application SystemUI of the operating system, and the received notification messages are displayed in the notification bar according to the sorting result.
[0089] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present disclosure is not limited by the order of the actions described, because according to the present disclosure, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.
[0090] The above is an introduction to the method embodiment. The following is a further explanation of the scheme disclosed in the present invention through an apparatus embodiment.
[0091] Figure 2 The structure diagram of the notification message sorting and displaying device provided by the embodiment of the present disclosure is shown as follows: Figure 2 As shown, the notification message sorting and displaying device 200 may include:
[0092] The storage module is used to obtain the characteristic data of the application and store it in a Key-Value manner, where the Key is the package name of the application and the Value is the display priority of the notification message;
[0093] An updating module, used to update the display priority of notification messages of different applications according to preset rules within a preset time;
[0094] A sorting module, used to sort the received notification messages according to the updated display priority and generate a sorting result;
[0095] The display module is used to display the received notification message in a notification bar according to the sorting result.
[0096] In some embodiments, the notification message sorting and displaying apparatus 200 further includes:
[0097] The merging device is used to merge the updated array V1 and array V2 and perform persistence operation, so that the display priority of the merged array V2 increases by V1.length, generates a total display priority and arranges it in descending order.
[0098] Understandably, Figure 2 Each module / unit in the notification message sorting and displaying device 200 has the following functions: Figure 1 The functions of the various steps in the notification message sorting and displaying method 100 shown can achieve their corresponding technical effects, and for the sake of brevity, they will not be repeated here.
[0099] Figure 3 A block diagram of an exemplary electronic device capable of implementing an embodiment of the present disclosure is shown. The electronic device 300 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 300 may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0100] like Figure 3As shown, the electronic device 300 may include a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 302 or a computer program loaded from a storage unit 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 may also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0101] A number of components in the electronic device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the electronic device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0102] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 301 performs the various methods and processes described above, such as method 100. For example, in some embodiments, the method 100 may be implemented as a computer program product, including a computer program, which is tangibly contained in a computer-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the computing unit 301, one or more steps of the method 100 described above may be performed. Alternatively, in other embodiments, the computing unit 301 may be configured to perform the method 100 in any other appropriate manner (e.g., by means of firmware).
[0103] The various embodiments described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs, which may be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general programmable processor, which may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0104] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0105] In the context of the present disclosure, a computer-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a computer-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0106] It should be noted that the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute method 100 and achieve the corresponding technical effect achieved by the embodiments of the present disclosure executing the method. For the sake of brevity, they are not repeated here.
[0107] In addition, the present disclosure also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the method 100 is implemented.
[0108] To provide interaction with a user, the above-described embodiments may be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0109] The embodiments described above can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0110] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0111] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0112] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for sorting and displaying notification messages, comprising: Get the feature data of the application and store it in Key-Value format, where the Key is the package name of the application and the Value is the display priority of the notification message; Update the display priority of notification messages of different applications according to preset rules within a preset time; Sorting the received notification messages according to the updated display priority and generating a sorting result; According to the sorting result, the received notification message is displayed in a notification bar.
2. The method according to claim 1, characterized in that The obtaining of the characteristic data of the application and storing it in a Key-Value manner includes: The applications having user usage information and user ranking information within a preset time are stored in a Key-Value array named array V1, wherein the Value is 0; The applications that have no user usage information or user ranking information within the preset time are stored in the Key-Value array named array V2, wherein the Value is -1.
3. The method according to claim 2, characterized in that The updating of the display priorities of different application notification messages according to preset rules within a preset time includes: Determine the value of the first priority according to the user-defined sorting result within the preset time; Obtaining and sorting the frequency data of application usage by users within the preset time, and determining a value of the second priority; The first priority level has a higher priority than the second priority level; The display priorities of different application notification messages in the array V1 are updated according to the value of the first priority and the value of the second priority.
4. The method according to claim 3, characterized in that The method further comprises: Obtaining popularity information and user ratings of each application included in the array V2 in the application store within the preset time, and determining a value of the third priority; The display priorities of different application notification messages in the array V2 are updated according to the value of the third priority.
5. The method according to claim 4, characterized in that The method further comprises: The updated arrays V1 and V2 are merged and persisted, so that the display priority of the merged array V2 is increased by V1.length, and the total display priority is generated and arranged in descending order.
6. The method according to claim 1, characterized in that The displaying the received notification message in a notification bar according to the sorting result includes: The sorting result is read by modifying the built-in application SystemUI of the operating system, and the received notification message is displayed in the notification bar according to the sorting result.
7. A notification message sorting and display device, comprising: The storage module is used to obtain the characteristic data of the application and store it in a Key-Value manner, where the Key is the package name of the application and the Value is the display priority of the notification message; An updating module, used to update the display priority of notification messages of different applications according to preset rules within a preset time; A sorting module, used to sort the received notification messages according to the updated display priority and generate a sorting result; The display module is used to display the received notification message in a notification bar according to the sorting result.
8. The device according to claim 7, characterized in that The device also includes: The merging device is used to merge the updated array V1 and array V2 and perform persistence operation, so that the display priority of the merged array V2 increases by V1.length, generates a total display priority and arranges it in descending order.
9. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 6.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Application icon ordering method, device, system and associated equipment
CN104808892A
Application software intelligent classification method, terminal and server
CN105868226A
Information display method and mobile terminal
CN109788136A
Method and system for prioritizing notifications in electronic device
WO2021115228A1
