CN112187879A - Notification message control method and device, storage medium and terminal - Google Patents
Notification message control method and device, storage medium and terminal Download PDFInfo
- Publication number
- CN112187879A CN112187879A CN202010947432.9A CN202010947432A CN112187879A CN 112187879 A CN112187879 A CN 112187879A CN 202010947432 A CN202010947432 A CN 202010947432A CN 112187879 A CN112187879 A CN 112187879A
- Authority
- CN
- China
- Prior art keywords
- message
- terminal
- notification
- notification message
- user
- 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.)
- Withdrawn
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/224—Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the application discloses a control method and device of a notification message, a storage medium and a terminal, and belongs to the technical field of computers. The method comprises the following steps: the terminal receives the notification message from the application program and judges whether a message shielding key arranged on the terminal is opened or not; if the message shielding key arranged on the terminal is opened, the notification message is added into the message set, and the terminal does not send a prompt to the notification message in the message set, so that a user can control the terminal to prompt the notification message or not prompt the notification message according to the needs of the user, and the notification message prompted by the terminal cannot be disturbed when the user opens the message shielding key.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for controlling a notification message, a storage medium, and a terminal.
Background
With the popularization of mobile terminals, more and more users are gradually used to install various applications on the mobile terminals, and receive notification messages pushed by the respective applications through the mobile terminals, or send interactive messages through the respective applications on the mobile terminals. In the related art, when the terminal receives various notification messages, the notification messages are displayed in a pop-up frame or other display forms to remind a user to check the notification messages in time, but when the user works, plays games and watches videos through the mobile terminal, the notification messages which are popped up irregularly may disturb the user, the user experience is poor, and meanwhile, if the notification messages also contain privacy information, the risk that the user privacy is revealed is caused.
Disclosure of Invention
The embodiment of the application provides a method and a device for controlling a notification message, a storage medium and a terminal, which can solve the problem that a user is easily disturbed by the notification message pushed by the terminal in the related art. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for controlling a notification message, where the method includes:
receiving a notification message from an application;
judging whether a message shielding key arranged on the terminal is opened or not;
if so, adding the notification message into a message set; and the terminal does not send out a prompt to the notification message in the message set.
In a second aspect, an embodiment of the present application provides a device for controlling a notification message, where the device includes:
the receiving module is used for receiving the notification message from the application program;
the judging module is used for judging whether a message shielding key arranged on the terminal is opened or not;
the adding module is used for adding the notification message into a message set if the notification message is positive; and the terminal does not send out a prompt to the notification message in the message set.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides a terminal, including: a processor, a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
when the scheme of the embodiment of the application is executed, the terminal receives the notification message from the application program and judges whether the message shielding key arranged on the terminal is opened or not; if the message shielding key arranged on the terminal is opened, the notification message is added into the message set, and the terminal does not send a prompt to the notification message in the message set, so that a user can control the terminal to prompt the notification message or not prompt the notification message according to the needs of the user, and the notification message prompted by the terminal cannot be disturbed when the user opens the message shielding key.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a terminal provided in an embodiment of the present application;
FIG. 2 is a schematic structural diagram of an operating system and a user space provided in an embodiment of the present application;
FIG. 3 is an architectural diagram of the android operating system of FIG. 1;
FIG. 4 is an architecture diagram of the IOS operating system of FIG. 1;
fig. 5 is a flowchart illustrating a method for controlling a notification message according to an embodiment of the present application;
fig. 6 is another schematic flowchart of a method for controlling a notification message according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal provided in an embodiment of the present application;
FIG. 8 is a schematic diagram of a terminal display interface provided in an embodiment of the present application;
fig. 9 is a schematic diagram of a control device for notification messages according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Referring to fig. 1, a block diagram of a terminal according to an exemplary embodiment of the present application is shown. A terminal in the present application may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, memory 120, input device 130, and output device 140 may be connected by a bus 150.
The Memory 120 may include a Random Access Memory (RAM) or a read-only Memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable medium. The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like, and the operating system may be an Android (Android) system (including a system based on Android system depth development), an IOS system developed by apple inc (including a system based on IOS system depth development), or other systems. The storage data area may also store data created by the terminal in use, such as a phonebook, audio-video data, chat log data, and the like.
Referring to fig. 2, the memory 120 may be divided into an operating system space, in which an operating system runs, and a user space, in which native and third-party applications run. In order to ensure that different third-party application programs can achieve a better operation effect, the operating system allocates corresponding system resources for the different third-party application programs. However, the requirements of different application scenarios in the same third-party application program on system resources are different, for example, in a local resource loading scenario, the third-party application program has a higher requirement on the disk reading speed; in the animation rendering scene, the third-party application program has a high requirement on the performance of the GPU. The operating system and the third-party application program are independent from each other, and the operating system cannot sense the current application scene of the third-party application program in time, so that the operating system cannot perform targeted system resource adaptation according to the specific application scene of the third-party application program.
In order to enable the operating system to distinguish a specific application scenario of the third-party application program, data communication between the third-party application program and the operating system needs to be opened, so that the operating system can acquire current scenario information of the third-party application program at any time, and further perform targeted system resource adaptation based on the current scenario.
Taking an operating system as an Android system as an example, programs and data stored in the memory 120 are as shown in fig. 3, and a Linux kernel layer 320, a system runtime library layer 340, an application framework layer 360, and an application layer 380 may be stored in the memory 120, where the Linux kernel layer 320, the system runtime library layer 340, and the application framework layer 360 belong to an operating system space, and the application layer 380 belongs to a user space. The Linux kernel layer 320 provides underlying drivers for various hardware of the terminal, such as a display driver, an audio driver, a camera driver, a bluetooth driver, a Wi-Fi driver, a power management, and the like. The system runtime library layer 340 provides a main feature support for the Android system through some C/C + + libraries. For example, the SQLite library provides support for a database, the OpenGL/ES library provides support for 3D drawing, the Webkit library provides support for a browser kernel, and the like. Also provided in the system runtime library layer 340 is an Android runtime library (Android runtime), which mainly provides some core libraries that can allow developers to write Android applications using the Java language. The application framework layer 360 provides various APIs that may be used in building an application, and developers may build their own applications by using these APIs, such as activity management, window management, view management, notification management, content provider, package management, session management, resource management, and location management. At least one application program runs in the application layer 380, and the application programs may be native application programs carried by the operating system, such as a contact program, a short message program, a clock program, a camera application, and the like; or a third-party application developed by a third-party developer, such as a game-like application, an instant messaging program, a photo beautification program, a shopping program, and the like.
Taking an operating system as an IOS system as an example, programs and data stored in the memory 120 are shown in fig. 4, and the IOS system includes: a Core operating system Layer 420(Core OS Layer), a Core Services Layer 440(Core Services Layer), a Media Layer 460(Media Layer), and a touchable Layer 480(Cocoa Touch Layer). The kernel operating system layer 420 includes an operating system kernel, drivers, and underlying program frameworks that provide functionality closer to hardware for use by program frameworks located in the core services layer 440. The core services layer 440 provides system services and/or program frameworks, such as a Foundation framework, an account framework, an advertisement framework, a data storage framework, a network connection framework, a geographic location framework, a motion framework, and so forth, as required by the application. The media layer 460 provides audiovisual related interfaces for applications, such as graphics image related interfaces, audio technology related interfaces, video technology related interfaces, audio video transmission technology wireless playback (AirPlay) interfaces, and the like. Touchable layer 480 provides various common interface-related frameworks for application development, and touchable layer 480 is responsible for user touch interaction operations on the terminal. Such as a local notification service, a remote push service, an advertising framework, a game tool framework, a messaging User Interface (UI) framework, a User Interface UIKit framework, a map framework, and so forth.
In the framework shown in FIG. 4, the framework associated with most applications includes, but is not limited to: a base framework in the core services layer 440 and a UIKit framework in the touchable layer 480. The base framework provides many basic object classes and data types, provides the most basic system services for all applications, and is UI independent. While the class provided by the UIKit framework is a basic library of UI classes for creating touch-based user interfaces, iOS applications can provide UIs based on the UIKit framework, so it provides an infrastructure for applications for building user interfaces, drawing, processing and user interaction events, responding to gestures, and the like.
The Android system can be referred to as a mode and a principle for realizing data communication between the third-party application program and the operating system in the IOS system, and details are not repeated herein.
The input device 130 is used for receiving input instructions or data, and the input device 130 includes, but is not limited to, a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used for outputting instructions or data, and the output device 140 includes, but is not limited to, a display device, a speaker, and the like. In one example, the input device 130 and the output device 140 may be combined, and the input device 130 and the output device 140 are touch display screens, i.e., display units, for receiving touch operations of a user on or near the touch display screens using any suitable object, such as a finger, a touch pen, and displaying user interfaces of respective applications. The touch display screen is generally provided at a front panel of the terminal. The touch display screen may be designed as a full-face screen, a curved screen, or a profiled screen. The touch display screen can also be designed to be a combination of a full-face screen and a curved-face screen, and a combination of a special-shaped screen and a curved-face screen, which is not limited in the embodiment of the present application.
In addition, those skilled in the art will appreciate that the configurations of the terminals illustrated in the above-described figures do not constitute limitations on the terminals, as the terminals may include more or less components than those illustrated, or some components may be combined, or a different arrangement of components may be used. For example, the terminal further includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a bluetooth module, and other components, which are not described herein again.
In the embodiment of the present application, the main body of execution of each step may be the terminal described above, and in the description of the present application, the terminal device and the mobile terminal are the same description of the terminal. Optionally, the execution subject of each step is an operating system of the terminal. The operating system may be an Android system, an IOS system, or another operating system, which is not limited in the embodiments of the present application.
In the terminal shown in fig. 1, the processor 110 may be configured to call an application program stored in the memory 120, and specifically execute the control method of the notification message according to the embodiment of the present application.
In the following method embodiments, for convenience of description, only the main execution body of each step is described as a terminal.
The following describes in detail a control method for a notification message provided in an embodiment of the present application with reference to fig. 5 to 6.
Please refer to fig. 5, which is a flowchart illustrating a method for controlling a notification message according to an embodiment of the present application. The present embodiment is exemplified by a method for controlling a notification message, which is applied to a terminal, and the method for controlling the notification message may include the following steps:
s501, receiving a notification message from an application.
The application programs refer to various third-party application programs installed in the terminal; the notification message refers to a message that the terminal can receive messages from each application program in the process of using the terminal by the user, that is, a message used for prompting the user from each application program, such as: short message messages, chat messages, news messages, background feedback messages, and the like.
Generally, a plurality of applications are installed in a terminal, such as: the terminal comprises a chat application program, a browser application program, a shopping application program, a learning application program and the like, wherein under the condition that the terminal normally works, each application program in the terminal can generate different notification messages according to the respective working condition, and the terminal can correspondingly detect and receive the notification messages from each application program.
For example, the following steps are carried out: the method comprises the steps that a WeChat application program is installed in a terminal, a user can send information to friends of the user by the WeChat application program, news messages can be checked by the WeChat application program, and when the WeChat application program receives the information sent by the friends of the user, the terminal receives a notification message which is generated by the WeChat application program and used for reminding new information; when the WeChat application program has a new version, the terminal receives a notification message for updating the version, which is generated by the WeChat application program; and a new news message exists in the WeChat application program, and the terminal receives a notification message which is generated by the WeChat application program and used for pushing news.
S502, when the message shielding key arranged on the terminal is determined to be opened, the notification message is added into the message set.
The message shielding key is an entity key for controlling the notification message in the terminal, and can be arranged on the side of the terminal shell; when a message shielding key on the terminal is turned on, the terminal shields the notification message and does not prompt the received notification message; when the message shielding key on the terminal is opened, the terminal normally receives the notification message and makes a corresponding prompt for the received notification message. The message set is a set used for storing respective notification messages received by the terminal, the message set comprises at least one notification message, when a message shielding key on the terminal is opened, the message set stores the notification messages received by the terminal from each application program, and the terminal does not send out prompts to the notification messages in the message set, so that the shielding processing of the notification messages in the terminal is realized.
Generally, a user can set the on and off of a message shielding key on a terminal according to own needs, when the user turns on the message shielding key on the terminal, the terminal shields a notification message, adds the received notification message reported by each application program into a message set, and does not prompt the notification message in the message set. Meanwhile, icons corresponding to the message sets are displayed on a desktop of the terminal, and when notification messages exist in the message sets, corresponding quantity marks are displayed at preset positions of the icons, wherein the quantity marks correspond to the quantity of the notification messages in the message sets; when the opening operation of the user for the icon is detected, the terminal verifies the identity of the user, whether the identity of the current user is legal or not can be verified in a face recognition mode or a fingerprint recognition mode of the user, when the identity of the current user is determined to be legal, the icon is opened through identity verification, at the moment, a notification message list is displayed on the terminal and comprises all notification messages in a message set, and the user can conveniently check the notification messages by opening the icon on a desktop of the terminal when needing. And if the subsequent user closes the opened message shielding key, the terminal sends a prompt to the notification message in the message set, and prompts the user to view the notification message in a normal notification message form from each application program.
According to the content, the scheme provides the control method of the notification message, the terminal receives the notification message from the application program, and meanwhile, whether the message shielding key arranged on the terminal is opened or not is judged; if the message shielding key arranged on the terminal is opened, the notification message is added into the message set, and the terminal does not send a prompt to the notification message in the message set, so that a user can control the terminal to prompt the notification message or not prompt the notification message according to the needs of the user, and the notification message prompted by the terminal cannot be disturbed when the user opens the message shielding key.
Referring to fig. 6, another flow chart of a method for controlling a notification message is provided according to an embodiment of the present application. The present embodiment is exemplified by a method for controlling a notification message applied to a terminal. The control method of the notification message may include the steps of:
s601, receives a notification message from an application.
The application programs refer to various third-party application programs installed in the terminal; the notification message refers to a message that the terminal can receive messages from each application program in the process of using the terminal by the user, that is, a message used for prompting the user from each application program, such as: short message messages, chat messages, news messages, background feedback messages, and the like.
Generally, a plurality of applications are installed in a terminal, such as: the terminal comprises a chat application program, a browser application program, a shopping application program, a learning application program and the like, wherein under the condition that the terminal normally works, each application program in the terminal can generate different notification messages according to the respective working condition, and the terminal can correspondingly detect and receive the notification messages from each application program.
For example, the following steps are carried out: the method comprises the steps that a WeChat application program is installed in a terminal, a user can send information to friends of the user by the WeChat application program, news messages can be checked by the WeChat application program, and when the WeChat application program receives the information sent by the friends of the user, the terminal receives a notification message which is generated by the WeChat application program and used for reminding new information; when the WeChat application program has a new version, the terminal receives a notification message for updating the version, which is generated by the WeChat application program; and a new news message exists in the WeChat application program, and the terminal receives a notification message which is generated by the WeChat application program and used for pushing news.
S602, judging whether a message shielding key arranged on the terminal is opened.
The message shielding key is an entity key for controlling a notification message in the terminal, and generally, the message shielding key may be disposed at a side of a terminal housing.
Generally, a user can set the opening and closing of a message shielding key on a terminal according to own needs, when the user opens the message shielding key on the terminal, the terminal shields a notification message, adds the received notification message reported by each application program into a message set, and does not prompt the notification message in the message set; when the message shielding key on the terminal is opened, the terminal normally receives the notification message and makes a corresponding prompt for the received notification message.
For example, the following steps are carried out: referring to the schematic structural diagram of the terminal in fig. 7, the message shielding button 702 is disposed at a side of the terminal, and may be located at the same side of the volume key 703 and the switch key 704 of the terminal, so that a user may control the message shielding button 702 to be turned on or turned off according to the need of the user.
S603, when the message shielding key arranged on the terminal is not opened, the terminal sends a prompt to the notification message in the message set.
The message set is used for storing respective notification messages received by the terminal, the message set comprises at least one notification message, when a message shielding key on the terminal is opened, the message set stores the notification messages received by the terminal from each application program, and the terminal does not send out prompts to the notification messages in the message set, so that the shielding processing of the notification messages in the terminal is realized.
Generally, when a user needs a terminal to prompt a notification message, the user can set a message shielding key on the terminal to be in a closed state, and at this time, after the terminal receives the notification message reported by each application program, the terminal can prompt the received notification message in real time to prompt the user to check the notification message in time.
S604, when the message shielding key arranged on the terminal is determined to be opened, the notification message is added to the message set.
Generally, a user can set the on and off of a message shielding key on a terminal according to own needs, when the user turns on the message shielding key on the terminal, the terminal shields a notification message, adds the received notification message reported by each application program into a message set, and does not prompt the notification message in the message set. Meanwhile, icons corresponding to the message sets are displayed on a desktop of the terminal, and when notification messages exist in the message sets, corresponding quantity marks are displayed at preset positions of the icons, wherein the quantity marks correspond to the quantity of the notification messages in the message sets; when the opening operation of the user for the icon is detected, the terminal verifies the identity of the user, whether the identity of the current user is legal or not can be verified in a face recognition mode or a fingerprint recognition mode of the user, when the identity of the current user is determined to be legal, the icon is opened through identity verification, at the moment, a notification message list is displayed on the terminal and comprises all notification messages in a message set, and the user can conveniently check the notification messages by opening the icon on a desktop of the terminal when needing.
S605, counting the number of the notification messages contained in the message set, and generating a corresponding number mark based on the number.
The number mark is a sign displayed in a digital form, and can be used for displaying the number of the notification messages in the message set.
Generally, a terminal receives notification messages reported by each application program in the terminal at irregular time, when a user starts a message shielding key on the terminal, the terminal adds the received notification messages to a message set and performs shielding processing on the notification messages in the message set, that is, the terminal does not send a prompt to the notification messages in the message set, so that the user is prevented from being disturbed by the prompt of the notification messages; counting the number corresponding to a plurality of notification messages contained in the message set, and generating a number mark according to the counted number of the notification messages, wherein the number mark can be displayed on a preset position of an icon corresponding to the message set on a terminal desktop and used for prompting the number of the notification messages contained in the message set for a user.
And S606, displaying the quantity mark on the preset position of the icon through a display unit.
The preset position refers to a designated area on the icon, and the preset position can be set arbitrarily according to the needs of a user or can be an area on the icon defaulted by the terminal.
Generally, icons corresponding to a message set are displayed on a desktop of the terminal, the terminal generates corresponding quantity marks based on the quantity of notification messages in the message set, and displays the quantity marks at preset positions of the icons, so that the user can be prompted in time that the notification messages with the quantity corresponding to the quantity marks are to be viewed.
For example, the following steps are carried out: referring to the message box icon 701 in the schematic structural diagram of the terminal in fig. 7, the message box icon 701 is an icon corresponding to a message set displayed on a desktop of the terminal, and if the message set includes 8 notification messages, the corresponding number is marked as 8, and the icon is located at the upper right corner of the message box icon 701 for display.
S607, an opening instruction for the icon by the user is received.
The opening instruction is an instruction which is correspondingly generated when the terminal monitors the opening operation of the user for the icon, the opening instruction can indicate the terminal to verify the identity of the user, and the opening operation of the user for the icon can be the operation of clicking or touching the icon by the user.
S608, the identity of the user is verified, and the verification result is determined to be passed.
Generally, when it is monitored that a user performs an opening operation on an icon, a terminal verifies the identity of the user, and determines whether the icon can be opened currently according to whether the identity of the user is legal. Generally, the identity of a user can be verified by means of face recognition and/or fingerprint recognition: the terminal can open a camera to collect a face image of a current user, and when the similarity between the currently collected face image and a preset face image obtained by analysis is larger than a preset similarity threshold value, the identity of the current user can be determined to be legal, namely the verification is passed and an icon is opened; or the fingerprint identification unit identifies the fingerprint information of the current user, and when the matching degree of the fingerprint information and the preset fingerprint information obtained through analysis is larger than the preset matching degree threshold value, the identity of the current user can be determined to be legal, namely the verification is passed and the icon is opened.
And S609, responding to the opening instruction, and determining the type information corresponding to each notification message contained in the message set.
The type information refers to a message type corresponding to the notification message, each notification message has a message type corresponding to the notification message, and the notification messages can be divided into different types according to different application programs corresponding to the notification messages. Such as: the notification messages from the applications such as WeChat and QQ can be classified as chat type messages, the notification messages from the applications such as today's headline and Tencent news can be classified as news type messages, the notification messages from the terminal system can be classified as background feedback type messages, and the notification messages from the applications such as Taobao and Jingdong can be classified as shopping type messages.
S610, classifying each notification message based on the type information to obtain at least one type of message classification set.
The message classification set refers to a set obtained by classifying each notification message according to the type information corresponding to each notification message in the message set, and different types of notification messages correspond to different message classification sets.
For example, the following steps are carried out: the notification messages from the applications such as WeChat and QQ can be classified as chat type messages, and the notification messages from the applications such as WeChat and QQ can form a chat message set; the notification messages from the application programs such as the headline today and the Tencent news can be classified as news type messages, and the notification messages from the application programs such as the headline today and the Tencent news can form a news message set; the notification message from the terminal system can be classified into a background feedback type message, and the notification message from the terminal system can be classified into a system message set; the notification messages from the applications of Taobao, Jingdong, etc. can be classified as shopping type messages, and the notification messages from the applications of Taobao, Jingdong, etc. can be classified as shopping message sets; the chat message set, the news message set, the system message set and the shopping message set are different types of message classification sets.
S611, obtain time information corresponding to each notification message included in at least one type of message classification set.
The time information refers to the time when the terminal receives each notification message, that is, the time when each application program reports the notification message to the terminal, the times corresponding to different notification messages are different, and the display sequence of the notification messages can be determined based on the time information reported by each notification message.
S612, determining the arrangement sequence corresponding to the notification messages contained in the at least one type of message classification set based on the time information.
The order of arrangement is the order of the display positions of the notification messages when they are displayed in order, and generally, the closer the time information corresponding to the notification message is to the current time, the closer the corresponding notification message display position is.
Generally, the display sequence of the notification messages in each message classification set can be determined according to the time information corresponding to each notification message, wherein the closer the time information is to the notification message at the current moment, the closer the display position is, and correspondingly, the farther the time information is from the notification message at the current moment, the farther the display position is.
S613, after the notification messages contained in the at least one type of message classification set are sorted based on the arrangement sequence, the notification messages are displayed in a notification message list form according to the respective corresponding types through the display unit.
The notification message list is a limited sequence with the notification messages displayed, the notification messages in the notification message list are divided into different areas according to different message classification sets to display the notification messages in each message classification set, and the notification messages in each message classification set are displayed in an ordering mode according to the corresponding time information.
Generally, when the terminal determines that the user identity is legal, the terminal may classify each notification message based on the type information corresponding to each notification message to obtain a plurality of message classification sets, and determine the front-back order of the display position of each notification message based on the time information corresponding to each notification message in the message classification sets. The notification messages displayed on the notification message list may be completely displayed or incompletely displayed, when the notification messages cannot be completely displayed, summary information corresponding to the notification messages is displayed in a manner that the notification messages are folded and hidden, after each notification message is classified according to the type information of each notification message to obtain a plurality of message classification sets, each message classification set can display an application icon corresponding to the notification message included in each notification message on the notification message list to prompt a user of which application the notification message comes from, and display the notification message corresponding to the application icon below the application icon.
For example, the following steps are carried out: referring to the schematic diagram of the terminal display interface of fig. 8, after the terminal opens the message box icon, the display interface of the terminal displays a notification message list, the terminal receives notification messages reported by the QQ, the wechat and the system, and divides the notification messages into a chat message set 801 and a system message set 804 according to the type information of the received notification messages, the chat message set includes notification messages 805 corresponding to the QQ (QQ message 1, QQ message 2, and QQ message 3) and notification messages 806 corresponding to the wechat (wechat message 1, wechat message 2, and wechat message 3), the system message set 804 includes version update messages reported by the system (system message 1 and system message 807 2), the chat message set 801 displays a QQ application icon 802 and a wechat application icon 803, and notification messages corresponding to the QQ application icon 802 and the wechat application icon 803, the notification messages corresponding to the QQs are displayed below the QQ application icon 802, and the QQ notification messages are arranged in sequence according to the respective corresponding time information (the notification messages with the time information close to the current time are arranged above other notification messages); the notification messages corresponding to the WeChat are displayed below the WeChat application icon 803, and the WeChat notification messages are arranged in sequence according to the corresponding time information (the notification messages with the time information close to the current time are arranged above other notification messages); the system messages 1 and 2 in the system message set 804 are arranged in sequence according to the respective corresponding time information (the system message 1 whose time information is close to the current time is arranged above the system message 2).
As can be seen from the above, in the method for controlling notification messages provided in this embodiment, a terminal receives a notification message from an application program, determines whether a message blocking key set on the terminal is turned on, when it is determined that the message blocking key set on the terminal is not turned on, the terminal sends a prompt to the notification messages in a message set, when it is determined that the message blocking key set on the terminal is turned on, adds the notification message to the message set, counts the number of the notification messages included in the message set, generates a corresponding number flag based on the number, displays the number flag at a preset position of an icon through a display unit, receives an opening instruction of a user for the icon, verifies the identity of the user, determines that the verification result is passed, determines type information corresponding to each notification message included in the message set in response to the opening instruction, classifies each notification message based on the type information to obtain at least one type of message classification set, the method comprises the steps of obtaining time information corresponding to notification messages contained in at least one type of message classification set, determining arrangement sequences corresponding to the notification messages contained in the at least one type of message classification set based on the time information, sequencing the notification messages contained in the at least one type of message classification set based on the arrangement sequences, and displaying the notification messages in a notification message list form according to the corresponding types through a display unit, so that a user can control a terminal to prompt the notification messages or not prompt the notification messages according to own needs, the notification messages prompted by the terminal cannot be disturbed when the user starts a message shielding key, and meanwhile the terminal can protect the privacy of the user under special use scenes.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 9, a schematic structural diagram of a control apparatus for notification messages according to an exemplary embodiment of the present application is shown, which is hereinafter referred to as apparatus 9. The means 9 may be implemented in software, hardware or a combination of both as all or part of a terminal. The device 9 is applied to a terminal, and the device 9 comprises:
a receiving module 901, configured to receive a notification message from an application;
a judging module 902, configured to judge whether a message shielding key set on a terminal is turned on;
an adding module 903, configured to add the notification message to a message set if the notification message is received; and the terminal does not send out a prompt to the notification message in the message set.
Optionally, the apparatus 9 further includes:
the receiving unit is used for receiving an opening instruction of a user for the icon; the icons are icons corresponding to the message sets, and are displayed on a desktop of the terminal through a display unit;
and the first display unit is used for responding to the opening instruction and displaying a notification message list through the display unit based on each notification message contained in the message set.
Optionally, the apparatus 9 further includes:
the first processing unit is used for counting the number of the notification messages contained in the message set and generating corresponding number marks based on the number;
and the second display unit is used for displaying the quantity mark on the preset position of the icon through the display unit.
Optionally, the apparatus 9 further includes:
and the verification unit is used for verifying the identity of the user and determining that the verification result is passed.
Optionally, the apparatus 9, comprises:
a determining unit, configured to determine type information corresponding to each notification message included in the message set;
the second processing unit is used for carrying out classification processing on each notification message based on the type information to obtain at least one type of message classification set;
and the third display unit is used for displaying the notification messages contained in the at least one type of message classification set in the form of the notification message list according to the respective corresponding types through the display unit.
Optionally, the apparatus 9, comprises:
an obtaining unit, configured to obtain time information corresponding to each notification message included in the at least one type of message classification set;
a determining unit, configured to determine, based on the time information, an arrangement order corresponding to each of the notification messages included in the at least one type of message classification set;
and the third processing unit is used for sorting the notification messages contained in the at least one type of message classification set based on the sorting order and then displaying the notification messages in the form of the notification message list according to the respective corresponding types through the display unit.
Optionally, the sending module 904 further includes:
and the fourth processing unit is used for sending out a prompt to the notification message in the message set by the terminal when the message shielding key arranged on the terminal is determined not to be opened.
It should be noted that, when the control device for a notification message provided in the foregoing embodiment executes the control method for a notification message, the above-mentioned division of each functional module is merely used as an example, and in practical applications, the above-mentioned function distribution may be completed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to complete all or part of the above-mentioned functions. In addition, the control apparatus for notification messages and the control method embodiment for notification messages provided in the foregoing embodiments belong to the same concept, and details of implementation processes thereof are referred to in the method embodiments and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Embodiments of the present application also provide a computer storage medium that may store a plurality of instructions adapted to be loaded by a processor and to perform the method steps as described above.
The application also provides a terminal, which comprises a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.
Claims (10)
1. A method for controlling a notification message, the method comprising:
receiving a notification message from an application;
judging whether a message shielding key arranged on the terminal is opened or not;
if so, adding the notification message into a message set; and the terminal does not send out a prompt to the notification message in the message set.
2. The method of claim 1, further comprising:
receiving an opening instruction of a user for an icon; the icons are icons corresponding to the message sets, and are displayed on a desktop of the terminal through a display unit;
and responding to the opening instruction, and displaying a notification message list through a display unit based on each notification message contained in the message set.
3. The method of claim 2, further comprising:
counting the number of the notification messages contained in the message set, and generating corresponding number marks based on the number;
and displaying the quantity mark on the preset position of the icon through the display unit.
4. The method according to claim 2, wherein the displaying, in response to the open instruction, a notification message list based on each notification message included in the message set via a display unit further comprises:
and verifying the identity of the user, and determining that the verification result is passed.
5. The method according to claim 4, wherein the displaying a notification message list through a display unit based on each notification message included in the message set comprises:
determining type information corresponding to each notification message contained in the message set;
classifying each notification message based on the type information to obtain at least one type of message classification set;
and displaying the notification messages contained in the at least one type of message classification set in the form of the notification message list according to the respective corresponding types through the display unit.
6. The method according to claim 5, wherein the displaying, by the display unit, the notification messages included in the at least one type of message classification set in the form of the notification message list according to respective corresponding types comprises:
acquiring time information corresponding to the notification messages contained in the at least one type of message classification set;
determining the arrangement sequence corresponding to the notification messages contained in the at least one type of message classification set based on the time information;
and after the notification messages contained in the at least one type of message classification set are sorted based on the sorting order, the notification messages are displayed in a form of the notification message list according to the respective corresponding types through the display unit.
7. The method of claim 1, further comprising:
and when the message shielding key arranged on the terminal is determined not to be opened, the terminal sends a prompt to the notification message in the message set.
8. An apparatus for controlling a notification message, the apparatus comprising:
the receiving module is used for receiving the notification message from the application program;
the judging module is used for judging whether a message shielding key arranged on the terminal is opened or not;
the adding module is used for adding the notification message into a message set if the notification message is positive; and the terminal does not send out a prompt to the notification message in the message set.
9. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to carry out the method steps according to any one of claims 1 to 7.
10. A terminal, comprising: a processor, a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010947432.9A CN112187879A (en) | 2020-09-10 | 2020-09-10 | Notification message control method and device, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010947432.9A CN112187879A (en) | 2020-09-10 | 2020-09-10 | Notification message control method and device, storage medium and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112187879A true CN112187879A (en) | 2021-01-05 |
Family
ID=73920379
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010947432.9A Withdrawn CN112187879A (en) | 2020-09-10 | 2020-09-10 | Notification message control method and device, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112187879A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116506542A (en) * | 2023-05-05 | 2023-07-28 | 维沃移动通信有限公司 | Notification message prompting method, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017041617A1 (en) * | 2015-09-11 | 2017-03-16 | 北京金山安全软件有限公司 | Method and device for controlling notification bar of mobile terminal, and mobile terminal |
US20170325171A1 (en) * | 2014-11-28 | 2017-11-09 | Huawei Technologies Co., Ltd. | Message Processing Method and Apparatus |
CN111143090A (en) * | 2019-12-25 | 2020-05-12 | 上海传英信息技术有限公司 | Application interaction method, device and computer-readable storage medium |
-
2020
- 2020-09-10 CN CN202010947432.9A patent/CN112187879A/en not_active Withdrawn
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170325171A1 (en) * | 2014-11-28 | 2017-11-09 | Huawei Technologies Co., Ltd. | Message Processing Method and Apparatus |
WO2017041617A1 (en) * | 2015-09-11 | 2017-03-16 | 北京金山安全软件有限公司 | Method and device for controlling notification bar of mobile terminal, and mobile terminal |
CN111143090A (en) * | 2019-12-25 | 2020-05-12 | 上海传英信息技术有限公司 | Application interaction method, device and computer-readable storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116506542A (en) * | 2023-05-05 | 2023-07-28 | 维沃移动通信有限公司 | Notification message prompting method, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108762937B (en) | Configuration information sending method, configuration information obtaining method, configuration information sending device, configuration information obtaining device and terminal | |
CN107889070B (en) | Picture processing method, device, terminal and computer readable storage medium | |
CN107491683B (en) | Application decryption method and device, terminal and computer readable storage medium | |
WO2020156308A1 (en) | Message processing method, device, terminal, and storage medium | |
CN111708470A (en) | Notification message display method and device | |
CN111459586B (en) | Remote assistance method, device, storage medium and terminal | |
WO2020156199A1 (en) | Application login method and device, terminal and storage medium | |
CN111596971B (en) | Application cleaning method and device, storage medium and electronic equipment | |
CN110413347B (en) | Advertisement processing method and device in application program, storage medium and terminal | |
CN113268212A (en) | Screen projection method and device, storage medium and electronic equipment | |
CN111767554A (en) | Screen sharing method and device, storage medium and electronic equipment | |
CN112653670A (en) | Service logic vulnerability detection method, device, storage medium and terminal | |
CN111198724A (en) | Application program starting method and device, storage medium and terminal | |
CN109391734A (en) | Data transmission method for uplink, device, terminal and storage medium | |
CN112817498A (en) | Application authority management method, device, storage medium and terminal | |
CN112218130A (en) | Control method and device for interactive video, storage medium and terminal | |
CN108845733B (en) | Screen capture method, device, terminal and storage medium | |
CN112187879A (en) | Notification message control method and device, storage medium and terminal | |
CN113126859A (en) | Contextual model control method, contextual model control device, storage medium and terminal | |
CN113950043B (en) | Communication method, device, storage medium and terminal | |
CN111556482B (en) | Virtual SIM card switching method and device, storage medium and terminal | |
CN113934501A (en) | Translation method, translation device, storage medium and electronic equipment | |
CN113825022A (en) | Play control state detection method and device, storage medium and electronic equipment | |
CN112328339A (en) | Notification message display method and device, storage medium and electronic equipment | |
CN111538997A (en) | Image processing method, image processing device, storage medium and terminal |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20210105 |