CN114168026B - Message prompting method, device and storage medium - Google Patents

Message prompting method, device and storage medium Download PDF

Info

Publication number
CN114168026B
CN114168026B CN202111305707.XA CN202111305707A CN114168026B CN 114168026 B CN114168026 B CN 114168026B CN 202111305707 A CN202111305707 A CN 202111305707A CN 114168026 B CN114168026 B CN 114168026B
Authority
CN
China
Prior art keywords
message
unread
unread message
application
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111305707.XA
Other languages
Chinese (zh)
Other versions
CN114168026A (en
Inventor
郭瑞生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111305707.XA priority Critical patent/CN114168026B/en
Publication of CN114168026A publication Critical patent/CN114168026A/en
Application granted granted Critical
Publication of CN114168026B publication Critical patent/CN114168026B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a message prompting method, equipment and a storage medium, wherein the method comprises the steps of obtaining unread messages; displaying corner marks corresponding to the unread messages, wherein the corner marks are used for indicating the quantity of the unread messages; when the unread time of the unread message is greater than a preset threshold value, hiding the corner mark corresponding to the unread message. Further comprising displaying the unread message in a message notification bar; when the unread time of the unread message is greater than a preset threshold, the unread message is removed from the message notification bar. When the electronic equipment has the unread messages which are unread for a long time, the corner marks of the unread messages are hidden, and the unread messages are removed from the message notification bar, so that the prompt that excessive unread messages are displayed on the display screen is avoided, and the use experience of a user is improved.

Description

Message prompting method, device and storage medium
Technical Field
The present application relates to the field of message prompting technologies, and in particular, to a method, an apparatus, and a storage medium for message prompting.
Background
Most of the current electronic devices have a message prompt function, and when an application in the electronic device receives a message, the electronic device can prompt a user that the message is unread by adopting modes of displaying the message in a message notification column, displaying an angle mark at an icon of the application on a desktop, displaying the angle mark at a specific position in the application, and the like.
Due to the message prompt function, when the electronic device receives a plurality of unread messages, a large number of prompts are displayed on the display screen of the electronic device, for example, a message notification bar displays a full-screen message, and a plurality of corner marks are displayed in a desktop and an application, so that poor user experience is caused.
Disclosure of Invention
The application provides a message prompting method, device and storage medium, aiming at properly reducing prompts displayed by electronic equipment so as to improve user experience.
In order to achieve the above object, the present application provides the following technical solutions:
the first aspect of the present application provides a method for message prompting, including:
acquiring unread messages;
displaying corner marks corresponding to the unread messages, wherein the corner marks are used for indicating the quantity of the unread messages;
when the unread time of the unread message is greater than a preset threshold value, hiding the corner mark corresponding to the unread message.
In some alternative embodiments, the threshold is N times an expiration time of the unread message, the expiration time of the unread message being determined based on a message type and importance of the unread message.
In some alternative embodiments, further comprising:
and when the unread time of the unread message is greater than the expiration time and less than the threshold value, increasing the transparency of the corner mark corresponding to the unread message along with the extension of the unread time of the unread message.
In some optional embodiments, the corner mark corresponding to the unread message includes a corner mark of an application to which the unread message belongs.
In some alternative embodiments, further comprising:
and when the application to which the unread message belongs has a new unread message, restoring the corner mark of the application to which the unread message belongs to initial transparency, wherein the initial transparency is the transparency of the corner mark of the application to which the unread message belongs when the unread time of the unread message is smaller than the expiration time.
In some optional embodiments, the corner mark corresponding to the unread message includes a corner mark of a dialog box to which the unread message belongs in the application, and a corner mark of a page to which the unread message belongs in the application.
In some alternative embodiments, further comprising:
when the dialog box to which the unread message belongs has a new unread message, restoring the corner mark of the dialog box to which the unread message belongs to initial transparency, wherein the initial transparency is the transparency of the corner mark of the dialog box to which the unread message belongs when the unread time of the unread message is less than the expiration time;
or alternatively, the process may be performed,
and when the page to which the unread message belongs has a new unread message, restoring the corner mark of the page to which the unread message belongs to initial transparency, wherein the initial transparency is the transparency of the corner mark of the page to which the unread message belongs when the unread time of the unread message is smaller than the expiration time.
In some alternative embodiments, further comprising:
and subtracting the number of the unread messages from the corner marks corresponding to the unread messages when the unread time of the unread messages is greater than the threshold value.
The second aspect of the present application also provides a method for prompting a message, including:
receiving an unread message;
displaying the unread message in a message notification bar;
and removing the unread message from the message notification bar when the unread time of the unread message is greater than a preset threshold.
In some alternative embodiments, the threshold is N times an expiration time of the unread message, the expiration time of the unread message being determined based on a message type and importance of the unread message.
In some alternative embodiments, further comprising:
and when the unread time of the unread message is larger than the expiration time and smaller than the threshold value, displaying an application icon of an application to which the unread message belongs at the bottom of the message notification bar, and canceling the display of the unread message in the message notification bar.
In some alternative embodiments, further comprising:
when the unread time of the unread message is greater than the expiration time and less than the threshold value, the gray value of the application icon of the application to which the unread message belongs is adjusted according to the unread time of the unread message.
The third aspect of the present application also provides an electronic apparatus, comprising: one or more processors, memory, and a display screen;
the memory is used for storing one or more programs;
the one or more processors are configured to execute the one or more programs to cause the electronic device to perform the method for message prompting provided by any one of the first aspects of the present application, or perform the method for message prompting provided by any one of the first aspects of the present application.
A fourth aspect of the present application provides a computer storage medium storing a computer program which, when executed, is specifically adapted to carry out the method of message prompting provided by any one of the first aspects of the present application, or to carry out the method of message prompting provided by any one of the first aspects of the present application.
The application provides a message prompting method, equipment and a storage medium, wherein the method comprises the steps of obtaining unread messages; displaying corner marks corresponding to the unread messages, wherein the corner marks are used for indicating the quantity of the unread messages; when the unread time of the unread message is greater than a preset threshold value, hiding the corner mark corresponding to the unread message. Further comprising displaying the unread message in a message notification bar; when the unread time of the unread message is greater than a preset threshold, the unread message is removed from the message notification bar. When the electronic equipment has the unread messages which are unread for a long time, the corner marks of the unread messages are hidden, and the unread messages are removed from the message notification bar, so that the prompt that excessive unread messages are displayed on the display screen is avoided, and the use experience of a user is improved.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic diagram of a software architecture of an electronic device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a user interface according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of another user interface disclosed in an embodiment of the present application;
FIG. 5 is a timing diagram of a method for message prompting according to an embodiment of the present application;
FIG. 6 is a schematic diagram of another user interface disclosed in an embodiment of the present application;
FIG. 7 is a timing diagram of another message prompting method according to an embodiment of the present application;
FIG. 8a is a schematic diagram of yet another user interface disclosed in an embodiment of the present application;
FIG. 8b is a schematic diagram of yet another user interface disclosed in an embodiment of the present application;
FIG. 9 is a timing diagram of yet another message prompting method disclosed in an embodiment of the present application;
FIG. 10 is a flow chart of a method of message prompting in accordance with an embodiment of the present application;
FIG. 11 is a flow chart of another method of message prompting according to an embodiment of the present application.
Detailed Description
The terms first, second, third and the like in the description and in the claims and in the drawings are used for distinguishing between different objects and not for limiting the specified order.
In embodiments of the application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
The embodiment of the application provides electronic equipment 100, which can be specifically mobile phones, tablet computers and other equipment.
As shown in fig. 1, the electronic device 100 may include: processor 110, external memory 120, internal memory (also referred to as "memory") 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, and the like. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
External memory 120 is generally referred to as external memory, which in embodiments of the present application refers to storage other than memory of an electronic device and a cache of a processor, which is generally non-volatile memory.
Internal memory 121, which may also be referred to as "memory," may be used to store computer-executable program code that includes instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The above is a specific description of the embodiment of the present application using the electronic device 100 as an example. It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. The electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device provided by the embodiment of the application may be a User Equipment (UE), for example, a mobile terminal (for example, a user mobile phone), a tablet computer, a desktop, a laptop, a handheld computer, a netbook, a personal digital assistant (personal digital assistant, PDA) and other devices.
In addition, an operating system is run on the components. Such as the iOS operating system developed by apple corporation, the Android open source operating system developed by google corporation, the Windows operating system developed by microsoft corporation, etc. An operating application may be installed on the operating system.
The operating system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
Fig. 2 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android running time) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages. As shown in fig. 2, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc. Applications in the application layer may be classified into system applications, which may include a desktop, a system user interface (SystemUI), etc., and non-system applications, which may include games, maps, short videos, social applications, shopping applications, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 2, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
For example, in the embodiment of the present application, an application of an application layer sends a message to a notification manager, the notification manager determines an expiration time of the message according to a message type and importance of the message, and then feeds back the message and the expiration time to a SystemUI, a desktop and an application that receives the message, and the SystemUI, the desktop and the application that receives the message correspondingly adjust a prompting manner according to an unread time and an expiration time of the message.
Unread time of a message refers to the time that the message accumulates in an unread state.
For example, when the electronic device 100 receives a message (such as a short message) at 10:00, after 1 hour, the user still does not view the short message at 11:00, and the short message is still in an unread state, where the unread time of the short message is 1 hour. Thereafter, at 12: and when the short message is in an unread state at 00, the unread time of the short message is 2 hours.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, in embodiments of the present application, the view system may be used to display corner marks of different transparency according to the unread time and expiration time of unread messages in desktop and other applications, and may also be used to display application icons of different transparency after a message in the message notification bar is folded.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
Although the Android system is described as an example in the embodiment of the present application, the basic principle is equally applicable to electronic devices based on the iOS or Windows and other operating systems.
The following describes a method for prompting a message provided by the embodiment of the application in combination with a specific embodiment.
Example 1
Referring to fig. 3, the user performs a pull-down operation at 8:00, and opens the message notification bar of the electronic device 100. At this time, as shown in a of fig. 3, the message notification bar of the electronic device 100 prompts three unread messages, wherein 301 is a short message that the short message application has just received, 302 is a news that the browser application has just received, and 303 is a heavy rain warning message that the weather application has received about 1 hour ago.
Upon receipt of the messages, the electronic device 100 configures a corresponding expiration time for each message. In some alternative embodiments, the electronic device 100 may configure the same expiration time for different messages, e.g., each message has an expiration time of 3 hours; alternatively, the electronic device 100 may configure different expiration times for each message based on the message type and importance of the message.
The length of the expiration time can be adjusted according to practical situations, and in some alternative embodiments, the expiration time can be set by a user, and the specific value of the expiration time is not limited in this embodiment.
Illustratively, for messages 301 through 303 in fig. a, electronic device 100 may configure an expiration time of 6 hours for message 301, 3 hours for message 302, and 4 hours for message 303.
With continued reference to b in FIG. 3, 11:00, the unread time of messages 301 and 302 is 3 hours and the unread time of message 303 is 4 hours. The electronic device 100 determines that the unread time of the message 302 is greater than or equal to the corresponding expiration time by 3 hours, the unread time of the message 303 is greater than or equal to the corresponding expiration time by 4 hours, and the unread time of the message 301 is less than the corresponding expiration time by 6 hours, so the electronic device 100 folds the message 302 and the message 303.
Thus, when the user drops the message notification bar at 11:00, the electronic device 100 displays the aforementioned message in the form of user interface b in FIG. 3. In the user interface, the message 301 is displayed in an unfolded manner, and the messages 302 and 303 are displayed in a folded manner.
It will be appreciated that the folded message may be displayed in a variety of ways, and the display manner of the folded message is not limited in this embodiment. The manner of display shown in user interface b of fig. 3 is only an alternative example.
The manner of displaying the folded message will be described below by taking fig. 3 as an example.
In one aspect, the electronic device 100 removes the contents of the collapsed message from the message notification bar, e.g., messages 302 and 303 have not been collapsed in the user interface a of FIG. 3, the electronic device displays the contents of 302 and 303 within the message notification bar, and in the user interface b of FIG. 3, 302 and 303 are collapsed, the electronic device no longer displays the contents of both messages.
On the other hand, when there is a folded message, the electronic device 100 displays a folding frame at the bottom of the message notification bar, and displays an application icon of an application corresponding to the folded message in the folding frame. Illustratively, the collapsed box may be a rounded rectangular box 304 shown in user interface b of FIG. 3.
Taking the user interface b of fig. 3 as an example, the message 302 and the message 303 are folded, wherein the message 302 is received by a browser application of the electronic device, and the message 303 is received by a weather application of the electronic device, and thus the folding box 304 may include application icons of the browser application and the weather application.
Alternatively, when there are too many folded messages, only a part of application icons corresponding to the folded messages may be included in the folding frame.
With continued reference to c in FIG. 3, the message notification bar of electronic device 100 is pulled down at 14:00, at which time the user has not yet viewed the aforementioned messages 301 through 303.
At this point the electronic device 100 determines that the unread time of the message 302 is 6 hours, which is greater than or equal to twice the expiration time; the unread time of message 303 is 7 hours, greater than or equal to the corresponding expiration time of 4 hours, but less than twice the expiration time; the unread time of message 301 is 6 hours, greater than or equal to the corresponding expiration time of 6 hours. The electronic device 100 removes the message 302 from the message notification bar and folds the message 301 and the message 303.
Referring to the user interface c in fig. 3, if the user drops the message notification bar at this time, the electronic device 100 displays a folding frame 304 at the bottom of the message notification bar, and displays an application icon corresponding to the message 301 and an application icon corresponding to the message 303 in the folding frame 304, that is, displays an application icon of the sms application and an application icon of the weather application in the folding frame 304.
The electronic device 100 may remove a message from the message notification bar if the message is not read for a long period of time (e.g., the message 302 is not read for 6 hours), if the message is viewed (i.e., the message is read), if the user performs an operation to remove the message, or the like.
In some alternative embodiments, if the removed message is a collapsed message, the electronic device 100 needs to delete the application icon corresponding to the message from the collapsed box. Taking the user interface c of fig. 3 as an example, after the message 302 is removed as it is not read for 6 hours, the application icon of the browser application corresponding to the message 302 in the folding frame is also deleted, and only the application icon of the short message application corresponding to the folded message 301 and the application icon of the weather application corresponding to the message 303 are reserved.
In some alternative embodiments, if a certain message expires, i.e., the unread time of the message is greater than or equal to the expiration time corresponding to the message, the electronic device 100 may also directly remove the message from the message notification bar, instead of folding for a period of time and then removing.
In other alternative embodiments, the electronic device 100 may also gradually adjust the gray level value of the application icon corresponding to the folded message in the folding frame according to the unread time of the folded message until the corresponding folded message is removed when the application icon is not visible, instead of directly removing the folded message.
For example, when the unread time of the message 302 reaches 2 times of the expiration time, the gray value of the application icon corresponding to the browser application of the message 302 in the folder may be adjusted to a preset value, and when the unread time of the message 302 is greater than or equal to 3 times of the expiration time, the message 302 may be removed from the message notification bar.
In some alternative embodiments, the electronic device 100 may also remove the message from the message notification bar after the message is viewed, or after the user performs an operation to remove the message. The present embodiment is not limited to the case where the electronic device removes the message.
Referring to fig. 4, the electronic device classifies the unread messages displayed in the message notification bar by application, as shown in a of fig. 4, the unread messages 401 and 402 are both received by the sms application, and thus the unread messages 401 and 402 are classified into the same window of the message notification bar.
In this case, in this embodiment, when there is an unexpired unread message and an expired unread message of an application in the message notification bar at the same time, the electronic device may normally display the unexpired unread message therein, and fold the expired unread message. For example, in fig. 4 b, the electronic device folds the expired unread message 402, and the unexpired unread message 401 is normally displayed in the message notification bar.
The following describes a specific implementation procedure of the present embodiment. Referring to fig. 5, the present embodiment specifically may include the following steps:
s501, the application sends an unread message to the notification manager.
The application in step S501 may be any application installed on the electronic device, such as a game application, a weather application, a short video application, etc.
After the electronic device accesses the network, the application may receive a message from the network, e.g., the information application receives a short message, and the email application receives a mail. After the application receives the message, if the message is not viewed in time, for example, within 10 seconds after the message is received, the application determines the message as an unread message and then sends the unread message to the notification manager.
S502, the notification manager determines the expiration time of the unread message.
In step S502, the notification manager may determine an expiration time of the unread message according to a message type of the unread message, or determine an expiration time according to an importance of the unread message, or determine an expiration time according to a message type and an importance of the unread message.
The message type may have multiple dividing modes, and the embodiment does not limit the specific dividing mode. By way of example, message types may include three types, instant messaging, marketing messaging, and general messaging.
In some embodiments, a corresponding relationship table of message types and expiration times is preconfigured in the notification manager, and after determining the message types of the unread messages, the notification manager may configure the corresponding expiration times in the corresponding relationship table of message types and expiration times to the unread messages.
In a specific example, the correspondence table of message types and expiration times may be configured such that the expiration time corresponding to the instant message is 6 hours, the expiration time corresponding to the marketing message is 3 hours, and the expiration time corresponding to the general message is 5 hours. The notification manager determines that an unread message belongs to the marketing message after receiving the unread message from the application, so that the expiration time of the unread message can be set to 3 hours.
The notification manager determines the message type of the unread message according to the application providing the unread message, for example, if the application sending the unread message belongs to an application of an instant messaging class such as information, e-mail and the like, the unread message is determined to belong to the instant message, if the application sending the unread message belongs to an application of a marketing class, for example, some applications for online shopping, the unread message is determined to belong to the marketing message, and if the application sending the unread message does not belong to the two types of applications, the unread message is determined to be a common message. Each application on the electronic device belongs to which category, which can be set by a user, or can be determined by the electronic device through network inquiry when the application is installed.
Optionally, when the application sends an unread message to the notification manager, relevant information of the unread message is also sent, so that the notification manager determines a message type of the unread message according to the relevant information. For example, the application may send the source of the unread message to the notification manager, which determines that its message type is instant message if the source of the unread message is an individual user, and determines that its message type is marketing message if the source of the unread message is an enterprise user.
Optionally, before sending the unread message, the application determines a message type of the unread message, and then sends the unread message and the message type thereof to the notification manager, so that the notification manager determines an expiration time for the unread message according to the message type determined by the application.
There are also various ways of dividing the importance. For example, importance may be classified into importance, general and unimportant, each of which corresponds to one expiration time, and correspondence between importance and expiration time may be configured in a notification manager in the form of a table. Thus, after determining the importance of the unread message, the notification manager may determine an expiration time corresponding to the importance of the unread message for the unread message according to the correspondence between the importance and the expiration time. The manner of determining the expiration time based on importance is similar to the manner of determining the expiration time based on message type, and specific procedures are referred to above for examples of determining the expiration time based on message type.
Alternatively, the importance of the unread message may be set by the application that sent the unread message and notified to the notification manager, which may determine the importance of the unread message as a default, e.g., as normal, if the importance of the unread message is not set by the application.
In some alternative embodiments, the notification manager uses a preset relationship of message type, importance, and expiration time to determine the expiration time based on the message type and importance of the unread message. The specific determining process may refer to the foregoing example of determining the expiration time according to the message type, which is not described in detail.
S503, the notification manager sends the unread message and the expiration time to the system user interface.
And each time the notification manager determines the expiration time of an unread message, the unread message and the corresponding expiration time are sent to the system user interface together, so that the system user interface can display the unread message in the message notification column in time.
The unread message may carry an application identification of the application that sent the unread message.
S504, the system user interface prompts the user for unread messages.
The system user interface may prompt the user for an unread message in a variety of ways, and the embodiment does not limit the specific prompting way. For example, the system user interface may prompt the user for an unread message by vibrating, prompting a tone, or the like.
It should be noted that, step S504 is an optional step, and when the electronic device is set in the do not disturb mode, the system user interface may not prompt the user for an unread message.
S505, the system user interface invokes the view system to display the unread message in the message notification bar.
Step S505 is performed after the user performs an operation of opening the message notification bar. For example, after the system user interface prompts the user for an unread message, the user performs a drop-down operation on top of the electronic device display screen, thereby opening the message notification bar. At this time, the system user interface invokes the view system of the electronic device to display an unread message in the message notification bar in response to the operation of opening the message notification bar. The interface where the unread message is displayed in the message notification bar can be seen at 3a in fig. 3.
S506, the system user interface judges whether the unread message is out of date.
If the unread message is expired, step S507 is executed, and if the unread message is not expired, step S506 is executed again until the unread message is expired. If the system user interface receives the operation of opening the message notification bar by the user before the unread message expires, the system user interface performs step S505.
An unread message expiring means that the unread time of the unread message is greater than or equal to the expiration time of the unread message.
Optionally, each time the system user interface receives an unread message, the time when the unread message is received is recorded, so that, when step S506 is executed, the system user interface makes a difference between the current time and the time when the unread message is received, thereby obtaining the unread time of the unread message, and judging whether the unread message is out of date based on the unread time.
Alternatively, when the system user interface has at least one unread message, the system user interface may periodically perform step S506, for example, may perform once every 5 seconds, or may perform step S505 before each time the message notification bar is opened.
S507, the system user interface hides the expired unread message in the message notification bar and displays the application icon of the expired unread message at the bottom of the message notification bar.
Step S507 corresponds to the system user interface collapsing the unread message expired in the message notification bar.
The application icon of the unread message refers to an application icon of an application that transmits the unread message.
When the system user interface determines that one unread message is out of date, the unread message can be marked as out of date, and when the user opens the message notification bar, the system user interface only sends the application icon marked as out of date unread message to the view system, but does not send the message content, so that the out of date unread message is not displayed in the message notification bar, and only the application icon of the out of date unread message is displayed.
In some embodiments, application icons for individual applications installed on an electronic device may be stored in the form of pictures in an internal memory of the electronic device. When the system user interface judges that one unread message is out of date, the system user interface reads the application icon of the unread message from the internal memory, and then when the message notification bar is opened, the system user interface sends the application icon of the unread message to the view system, so that the view system displays the application icon of the unread message in the message notification bar.
In particular, an application icon for an expired unread message may be displayed within a collapsed box of the message notification bar. An interface for displaying application icons for expired unread messages in the message notification bar may be seen at 3b of fig. 3.
Alternatively, when multiple expired unread messages come from the same application, only one application icon for that application may be displayed in the message notification bar.
In some alternative embodiments, if there are multiple expired unread messages from different applications, resulting in an inability to display application icons for all of the expired unread messages within the collapsed box of the message notification bar, the system user interface may control only a portion of the application icons within the collapsed box to be displayed. Further, when a plurality of application icons are displayed in the folding frame, the application icons may be ordered in the morning and evening of the corresponding unread message receiving time.
It should be noted that, step S507 is an optional step, and in some embodiments, the system user interface may execute step S510 when the unread message expires, that is, directly remove the unread message.
The step S507 is to prompt the user that the corresponding application has an expired unread message by displaying the application icon.
S508, the system user interface judges whether or not the expired unread message needs to be removed.
The system user interface determines whether the expired unread message needs to be removed according to the number relationship between the unread time and the expiration time of the unread message.
In some embodiments, the system user interface may determine whether the unread time of the expired unread message is greater than or equal to N times the expiration time. If the unread time of the expired unread message is greater than or equal to the N times of the expiration time, the unread message is judged to be required to be removed, and if the unread time of the expired unread message is less than the N times of the expiration time, the unread message is judged not to be required to be removed. Where N may be a preset positive number, and N may be set to 3, as an example.
For each expired unread message, if the system user interface determines that the expired unread message needs to be removed, step S510 is performed, and if the system user interface determines that the expired unread message does not need to be removed, step S509 is performed.
Alternatively, step S508 may be performed periodically by the system user interface, or may be performed when the system user interface receives an operation of opening the message notification bar by the user.
S509, the system user interface adjusts the gray value of the application icon of the unread message in the message notification bar according to the unread time.
In step S509, the system user interface may gradually adjust the gray value of the application icon of the unread message according to the length of the unread time of the expired unread message, and in general, the longer the unread time of the unread message, the larger the gray value of the corresponding application icon is, until the unread time reaches the N times of the expired time, the expired unread message is directly removed, and the corresponding application icon is no longer displayed.
There are various ways of adjusting the gray value according to the unread time, and this embodiment is not limited thereto. For example, a correspondence table between a time threshold and a gray value may be preconfigured in the system user interface, so when the system user interface is to display an application icon of an unread message in the message notification bar, the gray value of the application icon of the unread message may be determined according to whether the unread time of the unread message is greater than or equal to a specific time threshold in the correspondence. In some embodiments, the time threshold may be represented by a multiple of the expiration time.
In some embodiments, the system user interface may change the gray value of the application icon displayed in the message notification bar as follows. After the system user interface determines the gray value of one application icon when the application icon is displayed, the application icon is acquired from the internal memory, the acquired gray value of the application icon is adjusted to the gray value determined according to the unread time, and the application icon with the gray value adjusted is sent to the view system, so that the view system displays the application icon with the gray value adjusted in the message notification column.
It should be noted that step S509 is an optional step. In some embodiments, if the system user interface determines that the expired unread message is not removed, the step S508 may be executed again without adjusting the gray value of the application icon of the expired unread message until it is determined that the expired unread message needs to be removed, during which, if the system user interface receives the operation of opening the message notification bar by the user, the system user interface invokes the view system to display the original application icon corresponding to the expired unread message in the message notification bar.
The step S509 has the effect of changing the gray value to gray the application icon displayed in the message notification bar gradually over time, thereby prompting the user that there is an unread message to be removed.
S510, the system user interface removes the unread message.
In some alternative embodiments, the system user interface may be configured with a list for recording unread messages, in which the unread messages are recorded each time the system user interface receives an unread message from the notification manager, and when the user opens the message notification bar, the system user interface displays application icons of expired unread messages and unexpired unread messages in the list in the message notification bar via the view system.
When the system user interface judges that one unread message needs to be removed, the system user interface deletes the record corresponding to the unread message from the list of the unread messages, so that when the user opens the message notification bar, the removed unread message and the corresponding application icon are not displayed in the message notification bar.
Although an unread message is taken as an example for illustration, the method provided in this embodiment may be applicable to display of a plurality of unread messages at the same time. When a plurality of unread messages exist, the system user interface judges whether each of the unread messages which are not expired is expired, judges whether each of the expired unread messages needs to be removed, removes the unread messages which need to be removed, and records the judging result of whether the expired unread messages do not need to be removed. Therefore, each time the system user interface receives the operation of opening the message notification bar by the user, the view system can be called to display the unexpired unread message in the message notification bar, and display the application icon corresponding to the unexpired message with the judging result being outdated.
In some alternative embodiments, the determination of whether the unread message expires and whether the unread message is to be removed may also be performed by the application to which the unread message corresponds, and then the system user interface is notified of the determination.
The embodiment has the following beneficial effects:
the system user interface manages each unread message according to the expiration time determined by the notification manager, and controls the quantity of the unread messages displayed in the message notification bar in a mode of removing unread messages with excessively long unread time by folding the expired unread messages, so as to avoid excessive unread messages displayed in the message notification bar, thereby improving user experience when a user uses the message notification bar.
Example two
Please refer to fig. 6. As shown in user interface a, at 8: and 00, the email application receives two unread mails, and the information application receives two unread short messages, namely, the email application and the information application have two unread messages at the moment. After the email application receives the email, the electronic device 100 displays a corner mark as shown in a figure 6 a at the upper right corner of the application icon of the email application, the number in the corner mark indicates that two unread emails are currently available, and similarly, after the information application receives the short message, the electronic device 100 displays a corner mark with the number of 2 at the upper right corner of the icon of the information application, so as to prompt the user that two unread short messages are available.
Similar to the embodiment, each time an electronic device receives a message, a corresponding expiration time is configured for the message.
Illustratively, when the electronic device 100 receives two emails and two messages at 8:00, an expiration time of 3 hours is configured for both the email and the message.
11:00, the user still does not view the emails and the sms received at 8:00, at this time, the unread time of the two emails and the unread time of the two sms are 3 hours and are greater than or equal to the expiration time, so that the electronic device 100 adjusts the transparency of the corner mark of the email application and the transparency of the corner mark of the information application from 0% (i.e. completely opaque) to 50%, and the adjusted desktop is shown in b of fig. 6.
14:00, the user still does not view the email and the sms, at this time, the unread time of the two email and the unread time of the two sms are both 6 hours, and are greater than or equal to twice the expiration time, so the electronic device 100 adjusts the transparency of the corner mark of the email application and the transparency of the corner mark of the information application to 100%, at this time, the corner marks of the two applications are completely transparent, which is equivalent to removing the corner marks of the two applications by the electronic device, and the adjusted desktop is shown in fig. 6 c.
In some alternative embodiments, the electronic device 100 may adjust the transparency of the corner mark of the application with the unread message on the desktop according to other rules, and is not limited to the rule in the example of fig. 6. For example, as the unread time sequentially reaches 1,2, and 3 times the expiration time, the transparency of the corresponding corner mark is sequentially set to 30%,60%, and 100%.
In some alternative embodiments, the electronic device 100 may also directly remove the corner mark of an application on the desktop when the unread time of the unread message of the application reaches the corresponding expiration time.
It should be noted that, when an application receives a new message, if the transparency of the current corner mark of the application on the desktop is greater than 0% and less than 100%, the transparency of the corner mark of the application is adjusted to be 0%, and the number of the unread messages received newly are added as numbers in the corner mark.
Taking fig. 6 as an example, at 11:00, the electronic device adjusts the transparency of the corner mark of the email to 50%, if 5 minutes later, that is, when the electronic device 100 receives two new emails again at 11:05, the electronic device 100 updates the number in the corner mark of the email to 4, which indicates that there are currently 4 unread emails, and simultaneously adjusts the transparency of the corner mark of the email back to 0%.
If the electronic device receives two new emails after 14:00 removal of the corner mark of the email after 5 minutes, the electronic device 100 displays the corner mark with the number of 2 and the transparency of 0% in the upper right corner of the email application icon.
In some alternative embodiments, since an application may have multiple unread messages with unequal unread times, the electronic device 100 adjusts the transparency of the application's corner mark, and when the application's corner mark is removed, adjusts based on the unread time of the application's newly received unread message.
Taking fig. 6 as an example, if one of the two unread emails is received at 7:00 and the other is received at 8:00, then the electronic device adjusts the transparency based on the latest received email, i.e., the one received at 8:00, so at 10:00, the unread time of the unread email received at 7:00 is equal to the expiration time, but the unread time of the unread email received at 8:00 is less than the expiration time, so the electronic device 100 still maintains the transparency of the corner mark of the email at 0% until the transparency of the email is adjusted to 50% at 11:00. Further, if electronic device 100 receives a mail again after 8:00, e.g., at 8:30, electronic device 100 adjusts the transparency of the corner mark of the email application based on the unread time of the mail received at 8:30.
In some alternative implementations, multiple messages received by an application may be configured with different expiration times due to differences in message type and importance. Thus, the electronic device 100 may base the expiration time of the message that the application has recently received upon adjusting the transparency of the application's corner mark and removing the application's corner mark.
Still referring to fig. 6, if one of the two unread emails is received at 7:00 and the other is received at 8:00, and the corresponding expiration time is 4 hours, the electronic device 100 adjusts the transparency of the corner mark of the email to 50% when the unread time of the subsequent email reaches the corresponding expiration time of 4 hours, and removes the corner mark of the email when the unread time of the subsequent email reaches twice the expiration time, i.e. 8 hours.
The following describes a specific implementation procedure of the present embodiment. Referring to fig. 7, the present embodiment specifically may include the following steps:
s701, the application sends an unread message to the notification manager.
S702, the notification manager determines the expiration time of the unread message.
The specific implementation process of steps S701 and S702 can be referred to step S501 and step S502 in the first embodiment, and will not be described again.
S703, the application notifies the desktop of the total number of unread messages.
After receiving the unread messages each time, the application sends the total number of the unread messages currently applied to the desktop so that the desktop displays corner marks of corresponding values.
S704, the desktop obtains the expiration time of the unread message of the latest application from the notification manager.
After receiving the total number of unread messages notified by the application, the desktop can send a reading request carrying an application identifier to the notification manager so as to acquire the expiration time of the latest unread message of the application, and after receiving the reading request, the notification manager finds the latest received unread message of the corresponding application and the corresponding expiration time based on the application identifier carried in the reading request, and then feeds back the expiration time to the desktop.
S705, the desktop call view system displays the corner mark at the application icon.
When the desktop is opened by a user, the display positions of the corner mark images and the corner mark images are sent to the view system, so that the view system displays the corner mark images at the specific positions of the display screen according to the display positions, and the effect of displaying the corner marks at the application icons is achieved.
Taking fig. 6 as an example, after the email receives two unread emails, the email application notifies the desktop that the total number of unread messages is 2, so the desktop generates a circular corner mark image containing the number 2 as shown in a of fig. 6, and designates that the corner mark image is displayed in the upper right corner of the application icon of the email application, thereby forming a corner mark of the email application as shown in a of fig. 6.
In some alternative embodiments, when the application to which the unread message belongs has a new unread message, the corner mark of the application to which the unread message belongs is restored to the initial transparency, and the initial transparency is the transparency of the corner mark of the application to which the unread message belongs when the unread time of the unread message is less than the expiration time.
That is, in step S705, if there is an angle mark at the application corresponding to the unread message on the desktop, but the transparency of the angle mark is adjusted, the transparency of the angle mark is restored to the transparency just displayed, for example, to 0%, that is, to be completely opaque.
S706, the desktop judges whether the latest unread message of the application is out of date.
In some alternative embodiments, the desktop may perform step S706 periodically, or may only perform at the desktop runtime.
In step S706, the desktop may record the time when the application last transmitted the total number of unread messages, determine the unread time of the application latest unread message based on the time and the time when step S706 is performed, and record the expiration time transmitted when the notification manager last notifies the application of the unread message as the expiration time of the application latest unread message, and further determine whether the application latest unread message is expired based on the unread time and the expiration time of the application latest unread message.
If the application latest unread message is expired, step S707 is executed, and if the application latest unread message is not expired, step S706 is executed again, during which, each time the electronic device opens the desktop, the desktop executes step S705, that is, displays the corner mark at the application icon.
S707, the desktop adjusts the transparency of the corner mark corresponding to the application according to the unread time of the unread message of the latest application.
In step S707, the desktop may gradually adjust the transparency of the corner mark of the application according to the length of the unread time of the latest unread message of the application, and in general, the longer the unread time of the unread message is, the greater the transparency of the corner mark of the corresponding application is, until the transparency of the corner mark reaches 100% when the unread time reaches the N times of the expiration time, at which time the corner mark of the application will not be visible to the user.
There are various ways to adjust the transparency according to the unread time, and this embodiment is not limited thereto. For example, a table of correspondence between time thresholds and transparency may be preconfigured in the desktop, so that the desktop may determine the transparency of the corner mark of an application according to whether the unread time of the unread message of the latest application is greater than or equal to a specific time threshold in the foregoing correspondence.
In some embodiments, the time threshold may be represented by a multiple of the expiration time. For example, the correspondence table between the time threshold and the transparency may be as shown in the following table 1:
TABLE 1
Time threshold Transparency of the film
Expiration time 1.5 times 40%
2.5 times expiration time 80%
Based on table 1, when step S707 is performed, the desktop may compare the unread time of the latest unread message with the time threshold of table 1, and if the unread time is less than 1.5 times the expiration time, display an angle mark with transparency of 0%, if the unread time is greater than or equal to 1,5 times the expiration time, less than 2.5 times the expiration time, display an angle mark with transparency of 40%, and if the unread time is greater than or equal to 2.5 times the expiration time, display an angle mark with transparency of 80%.
Specifically, for each application, if the desktop determines that the corner mark of the application needs to be adjusted to be of a specific transparency, the desktop generates a corner mark image of the specific transparency, and when the user opens the desktop, the desktop sends the newly generated corner mark image of the specific transparency to the view system, so that the view system displays the corner mark image of the specific transparency at the upper right corner of the corresponding application icon, thereby realizing transparency adjustment of the application corner mark.
Taking b of fig. 6 as an example, when the desktop determines that the transparency of the corner mark of the email application needs to be adjusted to 50%, the desktop generates a corner mark image with contents of a circle containing the number 2 shown in b of fig. 6 and with transparency of 50%, sends the corner mark image to the view system, and then the view system displays the corner mark image in the upper right corner of the application icon of the email.
S708, the desktop judges whether the latest unread message of the application is completely expired.
An unread message is fully expired, which may refer to an expiration time that is greater than or equal to N times the unread time of the unread message. So in step S708, the desktop determines whether the unread time of the unread message that is the latest application is greater than or equal to N times the expiration time of the unread message, if the unread time of the unread message is greater than or equal to N times the expiration time of the unread message, the desktop determines that the unread message is completely expired, and if the unread time of the unread message is less than N times the expiration time of the unread message, the desktop determines that the unread message is not completely expired.
If it is judged that the latest unread message of the application has completely expired, step S709 is performed, and if it is judged that the latest unread message of the application has not completely expired, step S708 is performed again.
It should be noted that steps S707 and S708 are optional steps. In some alternative embodiments, when an application 'S latest unread message expires, the desktop may immediately perform step S709, i.e., immediately hide the application' S corner mark, without waiting for the application 'S latest unread message to completely expire before hiding the application' S corner mark.
The effect of step S707 and step S708 is to prompt the user that the corresponding application has an expired unread message by gradually changing the corner mark of the application into transparent, so as to prompt the user to view the unread message of the application in time.
S709, hiding the corner mark of the application by the desktop.
In step S709, the desktop may hide the corner mark of the application in a plurality of ways, and the specific hiding way is not limited in this embodiment. For example, the desktop may adjust the transparency of the applied corner mark image to 100%, that is, make the applied corner mark image completely transparent, so that the applied corner mark is invisible to the user, and the effect of hiding the applied corner mark is achieved.
In some alternative embodiments, the desktop may also update the numbers within the application's corner marks based on the notification of the application. Any one application may mark an unread message as a read message after judging that one of the unread messages of the application itself has expired, or after judging that the unread time of one of the unread messages of the application itself is greater than or equal to N times of the expiration time, and notify the desktop of the information that one of the unread messages has been reduced.
After the desktop receives the notification, the corner mark of the application is updated, so that the number in the corner mark is reduced by one on the basis of the number before the notification is received.
In some alternative embodiments, whether the application has expired in the step S706 and whether the corner mark of the application needs to be deleted in the step S708 may also be determined by the corresponding application, and then the desktop is notified of the determination result.
The embodiment has the following beneficial effects:
the desktop adjusts the transparency of the corner marks of each application on the desktop according to whether the latest unread message of each application is out of date, when the latest unread message of a certain application is not checked for a long time, the desktop can hide the corner marks of the application by adjusting the transparency of the corner marks to 100%, and the like, so that on one hand, a user can be prevented from seeing a large number of corner marks each time the desktop is opened, the use experience of the user is improved, on the other hand, the image displayed on the desktop can be reduced, and the power consumption of the electronic equipment is reduced.
Example III
The message prompting method provided by the embodiment of the application can be applied to each application installed on the electronic equipment. The following is a specific description taking chat applications as examples.
Please refer to fig. 8a. The application has just received the unread message When this occurs, a corner mark for indicating an unread message may be displayed at the corresponding position. Taking a in fig. 8a as an example, after receiving two messages of the third party, the electronic device 100 displays a corner mark with a number of 2 at the upper right corner of the head portrait of the third party, which is used for indicating that there are two unread messages from the third party and chat belowThe upper right hand corner of the icon also shows a 2-numbered corner mark, indicating a total of two unread messages.
Meanwhile, upon receipt of the above-described unread messages, the electronic device 100 configures the two unread messages with an expiration period of 3 hours.
After 3 hours, the two messages of Zhang San are still unread, and the electronic device 100 judges that the unread time of the two messages has reached the expiration time of 3 hours, so that the corner mark and chat in the upper right corner of the head portrait of Zhang SanThe transparency of the corner mark in the upper right corner of the icon is adjusted from 0% to 50%, and the adjusted interface is shown in b of fig. 8 a.
After 3 hours and 14:00 hours, the two messages are still unread, and the electronic device 100 determines that the unread time of the two messages has reached twice the expiration time, so that the transparency of the two corner marks is adjusted to 100%, which is equivalent to removing the two corner marks, and the adjusted interface is shown in c of fig. 8 a.
Further, when the electronic device removes a corner mark of a dialog box within an application, the electronic device may mark an unread message within the dialog box as read. Taking fig. 8a as an example, when the corner mark of the upper right corner of the head portrait of the third sheet is removed, the electronic device may mark the two received unread messages of the third sheet as read.
In the second embodiment, the method for adjusting the transparency of the corner mark of each application on the desktop may be used to adjust the transparency of the corner mark of each dialog box in the application in this embodiment. That is, in the present embodiment, when the transparency of the corner mark of each dialog box in the application is adjusted, the electronic device bases on the unread time of the latest unread message in each dialog box, and resets the corner mark of a dialog box to 0% when a new unread message exists in a certain dialog box.
In some embodiments, the numbers displayed in the corner marks of the dialog boxes and pages may also be adjusted within the application based on whether the unread messages within the respective dialog boxes and pages are completely expired.
Referring to fig. 8b, a user uses chatWhen there are two unread messages of three and three unread messages of small, so the three dialog boxes display the graphic corner mark 803, the small dialog boxes display the graphic corner mark 804, and the two dialog boxes have 5 unread messages, so chat- >The icon shows a graphical corner mark 805.
Referring to fig. 8b, after 3 hours, the electronic device 100 determines that one of the two unread messages of the third page has been completely expired, i.e. the unread time of the message has reached twice the expiration time, and the one of the unread messages received later has been expired, so the transparency of the corner mark at the dialog box of the third page is adjusted to 50%, and the number of the completely expired unread messages is subtracted from the number in the corner mark, so the number of the corner mark at the dialog box of the third page becomes 1; similarly, the earliest of the three unread messages of the minds has expired completely and the later two have expired, so the electronic device changes the number of the corner mark at the mind dialog box to 2 and adjusts the transparency to 50%. Further, at this point, all messages within the page have expired, and only 3 unread messages that have not expired completely, so the electronic device 100 will chat the applicationThe transparency of the corner mark at this point was adjusted to 50% while the number was changed to 3.
After a further 3 hours, please refer to fig. 8b, at which time the electronic device 100 determines that the unread messages have all expired, so the three corner marks are deleted.
The following describes a specific implementation procedure of the present embodiment. Referring to fig. 9, the present embodiment specifically may include the following steps:
s901, the application sends an unread message to the notification manager.
S902, the notification manager determines an expiration time of the unread message.
The specific implementation process of steps S901 and S902 can be referred to step S501 and step S502 in the first embodiment, and will not be described again.
S903, the notification manager sends an expiration time of the unread message to the application.
S904, the application displays the corner mark at the page and dialog box to which the unread message belongs.
In some optional embodiments, when the dialog box to which the unread message belongs has a new unread message, restoring the corner mark of the dialog box to which the unread message belongs to initial transparency, where the initial transparency is the transparency of the corner mark of the dialog box to which the unread message belongs when the unread time of the unread message is less than the expiration time;
in some alternative embodiments, when the page to which the unread message belongs has a new unread message, the corner mark of the page to which the unread message belongs is restored to the initial transparency, and the initial transparency is the transparency of the corner mark of the page to which the unread message belongs when the unread time of the unread message is less than the expiration time.
That is, in step S904, if there is already a corner mark at the page and the dialog box to which the unread message belongs, and the transparency of the corner mark is adjusted in step S906, the application may restore the transparency of the corner mark at the page and the dialog box to which the unread message belongs to the transparency before adjustment, for example, to 0%, that is, to be completely opaque.
S905, the application determines whether the unread message has expired.
The application records the time of receiving an unread message after receiving the unread message, so that, each time step S905 is performed, the application determines the unread time of the unread message according to the current time and the time of receiving the unread message, thereby determining whether the unread time of the unread message is greater than or equal to the expiration time of the unread message.
If the unread time is greater than or equal to the expiration time, the application determines that the unread message is expired, step S906 is executed, and if the unread time is less than the expiration time, the application determines that the unread message is not expired, and step S905 is executed again.
S906, the transparency of the corresponding corner mark is adjusted according to the unread time of the unread message by the application.
An application typically includes a plurality of pages, each page may further include a plurality of session windows, when the application receives an unread message, the application may display a corner mark for indicating the unread message at the session window and the page to which the unread message belongs, where the corner mark displayed at the session window is used for indicating the number of unread messages in the session window, and the corner mark displayed at the page is used for indicating the number of unread messages in the page. The corner mark corresponding to the unread message may include a corner mark of a session window to which the unread message belongs, and a corner mark of a page to which the unread message belongs.
In some optional embodiments, when executing step S906, the application may determine transparency of the corner mark of the session window and the page according to the unread time of the latest unread message in each session window and the page, and the manner of adjusting the transparency of the corner mark may refer to step S707 in the second embodiment, which is not described herein.
It should be noted that step S906 is an optional step. In some embodiments, the application may directly perform step S908 after determining that the unread message is expired, that is, mark the unread message as read, and update the number of the corresponding corner mark or directly delete the corresponding corner mark.
The step S906 has the effect of prompting the user that the corresponding session window and page have the expired unread messages in a manner of gradually adjusting the transparency of the corner marks of the session window and page, so that the user can view the corresponding messages in time.
S907 the application determines whether the unread message has completely expired.
An unread message is fully expired, which may refer to an expiration time that is greater than or equal to N times the unread time of the unread message. So in step S907, the application may determine whether the unread time of the unread message is greater than or equal to N times the expiration time of the unread message, if the unread time of the unread message is greater than or equal to N times the expiration time of the unread message, the application determines that the unread message is completely expired, and if the unread time of the unread message is less than N times the expiration time of the unread message, the application determines that the unread message is not completely expired.
If the unread message has not completely expired, the application proceeds to step S908, and if the unread message has not yet completely expired, the application returns to step S906.
S908, the application updates the corresponding corner mark of the completely expired unread message, and marks the completely expired unread message as read.
In step S908, the application may determine whether the completely expired unread message is the latest unread message of the page in which the message is located, and whether the completely expired unread message is the latest unread message of the session window in which the message is located.
For a page, if the fully expired unread message is not the most recent unread message for the page, the application may update the number within the corner mark of the page, i.e., subtract the number of fully expired unread messages from the number of the corner mark of the page, and if the fully expired unread message is the most recent unread message for the page, the application may delete the corner mark of the page.
For a conversation window, if the fully expired unread message is not the latest unread message of the conversation window, the application can update the number in the corner mark of the conversation window, namely, subtract the number of the fully expired unread messages from the number of the corner mark of the conversation window, and if the fully expired unread message is the latest unread message of the conversation window, the application can delete the corner mark of the conversation window.
S909 the application informs the system user interface that there is a complete expiration of the unread message.
The system user interface, upon notification of the application, may remove the fully expired unread message from the list of recorded unread messages.
In step S909, the application may notify the system user interface that there is a complete expiration of the unread message in a number of ways. The embodiment is not limited to a specific notification method. For example, the application may send the completely expired unread message to the system user interface, or may send an identification of the completely expired unread message to the system user interface.
S910, the application notifies the desktop of the number of unread messages that are completely expired.
Specifically, in step S910, the application may directly send the number of completely expired unread messages to the desktop, so that the desktop updates the number of the corner mark applied on the desktop according to the number of completely expired unread messages.
Referring to fig. 10, an embodiment of the present application provides a method for prompting a message, which may include the following steps:
s1001, an unread message is acquired.
The unread message is received by an application of an application layer of the electronic device. The step S1001 may be specifically referred to step S701 of the second embodiment and step S901 of the third embodiment, which are not described herein.
S1002, displaying corner marks corresponding to the unread messages, wherein the corner marks are used for indicating the number of the unread messages.
In some embodiments, the corner mark corresponding to the unread message may include a corner mark of an application to which the unread message belongs, a corner mark of a page to which the unread message belongs in the application, and a corner mark of a dialog box to which the unread message belongs in the application, which are displayed on a desktop of the electronic device.
Specific implementation of step S1002 can be seen in steps S703 and S705 of the second embodiment, and step S904 of the third embodiment.
S1003, hiding the corner mark corresponding to the unread message when the unread time of the unread message is greater than a preset threshold value.
In step S1003, the electronic device may conceal the corner mark corresponding to the unread message by adjusting the corner mark corresponding to the unread message to make the corresponding corner mark completely transparent.
The specific implementation of step S1003 can be referred to steps S708 and S709 of the second embodiment, and steps S907 and S908 of the third embodiment, which are not described herein.
In some alternative embodiments, the threshold is N times the expiration time of the unread message, which is determined based on the message type and importance of the unread message.
In this embodiment, for the process of determining the expiration time of the unread message, refer to steps S702 and S704 of the second embodiment, and steps S902 and S903 of the third embodiment, which are not described herein.
In some alternative embodiments, when the unread time of the unread message is greater than the expiration time and less than the threshold value, the transparency of the corner mark corresponding to the unread message is increased as the unread time of the unread message is increased.
For the transparent procedure of adjusting the corner mark, see steps S706 and S707 of the second embodiment, and steps S905 and S906 of the third embodiment, which are not described herein.
In some alternative embodiments, when the unread time of the unread message is greater than a threshold, the number of unread messages is subtracted from the corresponding corner mark of the unread message. For a specific implementation, see step S909 of the third embodiment.
Referring to fig. 11, the embodiment of the present application further provides a method for prompting a message, which may include the following steps:
s1101, an unread message is acquired.
A specific implementation of step S1101 can be seen in step S501 of the first embodiment.
S1102, the unread message is displayed in the message notification field.
The manner in which an unread message is displayed in the message notification bar can be seen in fig. 3. A specific implementation of step S1102 may be referred to steps S504 and S505 of the first embodiment.
S1103, when the unread time of the unread message is greater than the preset threshold, the unread message is removed from the message notification bar.
The specific implementation of step S1103 can be seen in steps S508 and S510 of the first embodiment.
In some alternative embodiments, the threshold is N times the expiration time of the unread message, which is determined based on the message type and importance of the unread message. The process of determining the expiration time of the unread message can be seen from steps S502 and S503 of the first embodiment.
In some alternative embodiments, when the unread time of the unread message is greater than the expiration time and less than the threshold value, an application icon of an application to which the unread message belongs is displayed at the bottom of the message notification bar, and the display of the unread message at the message notification bar is canceled. In this way, the electronic device folds unread messages in the message notification bar that have an unread time greater than the expiration time and less than the threshold. The specific implementation of the above steps can be seen in steps S506 and S507 of the first embodiment.
In some alternative embodiments, when the unread time of the unread message is greater than the expiration time and less than the threshold value, the gray value of the application icon of the application to which the unread message belongs is adjusted according to the unread time of the unread message. The specific way to adjust the gray value can be seen in step S509 of the first embodiment.
The embodiment of the application also provides an electronic device, the structure of which can be added to fig. 1, the electronic device comprises: one or more processors and memory.
The memory is used for storing one or more programs;
the one or more processors are configured to execute the one or more programs to cause the electronic device to perform the method of message prompting provided by any of the embodiments of the present application.
The embodiment of the application also provides a computer storage medium for storing a computer program, which is particularly used for realizing the method for prompting the message provided by any embodiment of the application when the computer program is executed.
Embodiments of the present application also provide a computer program product comprising a plurality of executable computer instructions which, when executed, are particularly adapted to carry out the method of message prompting provided by any of the embodiments of the present application.

Claims (5)

1. A method of message prompting, comprising:
acquiring a first unread message, and determining a threshold value of the first unread message according to the expiration time of the first unread message;
acquiring a second unread message, and determining a threshold value of the second unread message according to the expiration time of the second unread message;
Displaying a corner mark corresponding to a first application, and displaying the first unread message and the second unread message in a message notification bar, wherein the corner mark indicates the number of the first application unread messages;
when the unread time of the first unread message is longer than the expiration time of the first unread message, folding and displaying the first unread message in a message notification column;
when the unread time of the first unread message is greater than the threshold value of the first unread message, canceling to display the first unread message in the message notification bar, and when the unread time of the second unread message is greater than the expiration time of the second unread message and less than the threshold value of the second unread message, increasing the transparency of the corner mark according to the extension of the unread time of the second unread message;
acquiring a third unread message, and determining a threshold value of the third unread message according to the expiration time of the third unread message; wherein the first unread message, the second unread message, and the third unread message belong to a first application;
displaying the third unread message in a message notification bar, recovering the transparency of the corner mark to be initial transparency, and updating the number indicated by the corner mark to be the sum of the numbers of the first unread message, the second unread message and the third unread message, wherein the initial transparency refers to the transparency of the corner mark when the unread time of the first unread message is less than the expiration time of the first unread message;
And hiding the corner mark when the unread time of the third unread message is greater than the threshold value of the third unread message.
2. The method of claim 1, wherein the threshold of the first unread message, the second unread message, and the third unread message are each N times the corresponding expiration time, and wherein the expiration times of the first unread message, the second unread message, and the third unread message are each determined based on the corresponding message type and importance.
3. The method of claim 2, message types of the first unread message, the second unread message, and the third unread message each determined according to a type of the first application, the type of the first application being determined by a web query when the first application is installed;
the importance of the first unread message, the second unread message, and the third unread message are all set by the first application.
4. An electronic device, comprising: one or more processors, memory, and a display screen;
the memory is used for storing one or more programs;
the one or more processors are configured to execute the one or more programs to cause the electronic device to perform the method of message prompting of any one of claims 1 to 3.
5. A computer storage medium storing a computer program, which when executed is adapted to carry out a method of message prompting according to any one of claims 1 to 3.
CN202111305707.XA 2021-11-05 2021-11-05 Message prompting method, device and storage medium Active CN114168026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111305707.XA CN114168026B (en) 2021-11-05 2021-11-05 Message prompting method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111305707.XA CN114168026B (en) 2021-11-05 2021-11-05 Message prompting method, device and storage medium

Publications (2)

Publication Number Publication Date
CN114168026A CN114168026A (en) 2022-03-11
CN114168026B true CN114168026B (en) 2023-10-24

Family

ID=80478255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111305707.XA Active CN114168026B (en) 2021-11-05 2021-11-05 Message prompting method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114168026B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116032876A (en) * 2022-08-10 2023-04-28 荣耀终端有限公司 Unread message notification processing method, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866225A (en) * 2015-05-22 2015-08-26 上海斐讯数据通信技术有限公司 Electronic device having touch display screen and control method therefor
CN107463350A (en) * 2017-07-26 2017-12-12 深圳市金立通信设备有限公司 A kind of footmark method of adjustment and terminal
CN110069174A (en) * 2018-01-23 2019-07-30 阿里健康信息技术有限公司 A kind of method and device of Message Processing
CN112947838A (en) * 2021-01-28 2021-06-11 维沃移动通信有限公司 Control method and device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866225A (en) * 2015-05-22 2015-08-26 上海斐讯数据通信技术有限公司 Electronic device having touch display screen and control method therefor
CN107463350A (en) * 2017-07-26 2017-12-12 深圳市金立通信设备有限公司 A kind of footmark method of adjustment and terminal
CN110069174A (en) * 2018-01-23 2019-07-30 阿里健康信息技术有限公司 A kind of method and device of Message Processing
CN112947838A (en) * 2021-01-28 2021-06-11 维沃移动通信有限公司 Control method and device and electronic equipment

Also Published As

Publication number Publication date
CN114168026A (en) 2022-03-11

Similar Documents

Publication Publication Date Title
US11973732B2 (en) Messaging system with avatar generation
US8949739B2 (en) Creating and maintaining images of browsed documents
US20140189597A1 (en) Method and electronic device for presenting icons
CN111133723B (en) Application independent messaging system
CN106055190B (en) Apparatus and method for providing information via a portion of a display
WO2021000841A1 (en) Method for generating user profile photo, and electronic device
WO2019109797A1 (en) Method, device, terminal and storage medium for obtaining webpage resource
EP3166099A2 (en) Electronic device and method for controlling display thereof
US11561783B2 (en) Windowed writes
EP3340155A1 (en) Electronic device and method for displaying web page using the same
EP2993901A1 (en) Method for displaying images and electronic device thereof
WO2021252235A1 (en) Software development kit engagement monitor
US11159670B2 (en) Notification providing method and electronic device implementing same
CN114168026B (en) Message prompting method, device and storage medium
US20230208800A1 (en) Messaging system of partial and out-of-order events
CN113747199A (en) Video editing method, video editing apparatus, electronic device, storage medium, and program product
EP3092613B1 (en) Image processing method and electronic device implementing the same
WO2017148194A1 (en) Image presenting method and apparatus, and electronic device
CN111031377B (en) Mobile terminal and video production method
CN111275607B (en) Interface display method and device, computer equipment and storage medium
KR20160012583A (en) Method for controlling function and electronic device thereof
US11799846B2 (en) Password protecting selected message content
CN107368562B (en) Page display method and device and terminal
CN111192191B (en) Display method, device and readable storage medium
CN111158780B (en) Method, device, electronic equipment and medium for storing application data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant