Message notification method and terminal
AssigneeHuawei Technologies Co., Ltd.
InventorYanyan Mao
Life of this patent
Estimating the term…
Abstract
A message notification method includes obtaining, by a terminal, a plurality of notification messages, determining, by the terminal, a notification message with an ongoing attribute in the notification messages, sorting, by the terminal, the notification messages to obtain a notification message queue such that the notification message with an ongoing attribute is arranged in front of another notification message, and displaying, by the terminal, the notification message queue.
Claims6
A message notification method implemented by a terminal, the method comprising:
- determining, based on notification messages displayed within a preset time period and notification messages clicked by a user within the preset time period, click-through rates corresponding to a plurality of notification types, wherein each of the click-through rates corresponds to a ratio of a quantity of times of clicking a corresponding type of a notification message to a quantity of times of displaying the notification message;
- obtaining a plurality of first notification messages;
- determining first notification types of the first notification messages;
- sorting the first notification messages based on first click-through rates corresponding to the first notification types to obtain a notification message queue by:
- sorting, in ascending order of notification time points, second notification messages of the first notification messages whose click-through rates are greater than a preset threshold to obtain a first message queue;
- and
- sorting, in the ascending order of the notification time points, third notification messages of the first notification messages whose click-through rates are less than the preset threshold to obtain a second message queue, wherein the notification message queue comprises the first message queue and the second message queue, and wherein the first message queue is arranged in front of the second message queue;
- and
- displaying the notification message queue.
A terminal, comprising:
- a processor;
- an input device coupled to the processor;
- an output device coupled to the processor;
- and
- a memory coupled to the processor and configured to store a program that, when executed by the processor, causes the terminal to be configured to:
- determine, based on notification messages displayed within a preset time period and notification messages clicked by a user within the preset time period, click-through rates corresponding to a plurality of notification types, wherein each of the click-through rates corresponds to a ratio of a quantity of times of clicking a corresponding type of a notification message to a quantity of times of displaying the notification message;
- obtain, using the input device, a plurality of first notification messages;
- determine first notification types of the first notification messages;
- sort the first notification messages based on first click-through rates corresponding to the first notification types to obtain a notification message queue by:
- sorting, in ascending order of notification time points, second notification messages of the first notification messages whose click-through rates are greater than a preset threshold to obtain a first message queue;
- and
- sorting, in the ascending order of the notification time points, third notification messages of the first notification messages whose click-through rates are less than the preset threshold to obtain a second message queue, wherein the notification message queue comprises the first message queue and the second message queue, and wherein the first message queue is arranged in front of the second message queue;
- and
- display, using the output device, the notification message queue.
A computer program product comprising computer-executable instructions for storage on a non-transitory computer-readable storage medium that, when executed by a processor, cause the processor to be configured to:
- determine, based on notification messages displayed within a preset time period and notification messages clicked by a user within the preset time period, click-through rates corresponding to a plurality of notification types, wherein each of the click-through rates corresponds to a ratio of a quantity of times of clicking a corresponding type of a notification message to a quantity of times of displaying the notification message;
- obtain a plurality of first notification messages;
- determine first notification types of the first notification messages;
- sort the first notification messages based on first click-through rates corresponding to the first notification types to obtain a notification message queue by
- sorting, in ascending order of notification time points, second notification messages of the first notification messages whose click-through rates are greater than a preset threshold to obtain a first message queue;
- and
- sorting, in the ascending order of the notification time points, third notification messages of the first notification messages whose click-through rates are less than the preset threshold to obtain a second message queue, wherein the notification message queue comprises the first message queue and the second message queue, and wherein the first message queue is arranged in front of the second message queue;
- and
- display the notification message queue.
Dependencies are inferred from the claim text.