CN109889651A - A kind of notification message processing method, terminal and computer readable storage medium - Google Patents

A kind of notification message processing method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109889651A
CN109889651A CN201811444553.0A CN201811444553A CN109889651A CN 109889651 A CN109889651 A CN 109889651A CN 201811444553 A CN201811444553 A CN 201811444553A CN 109889651 A CN109889651 A CN 109889651A
Authority
CN
China
Prior art keywords
notification message
screen locking
message processing
terminal
interface
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.)
Granted
Application number
CN201811444553.0A
Other languages
Chinese (zh)
Other versions
CN109889651B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811444553.0A priority Critical patent/CN109889651B/en
Publication of CN109889651A publication Critical patent/CN109889651A/en
Application granted granted Critical
Publication of CN109889651B publication Critical patent/CN109889651B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides a kind of notification message processing method, terminal and computer readable storage medium, the notification message processing method includes: when terminal receives notification message, the notice process run in controlling terminal calls intermediate management to service provided first interface, obtains screen locking state of a process;When determining that screen locking process is in the lock state, then when it switches to unlocked state, control screen locking process call intermediate management service provided by second interface to notice process send locking end notification;The comparison result that the notification message time interval to screen locking process switching to unlocked state and preset duration threshold value is received according to terminal determines corresponding first notification message processing strategie and executes.The interface communicated between notice process and screen locking process is provided by intermediate management service, the two directly passes through bound intermediate management service and is communicated, communication process is simplified, the real-time of communication is enhanced, improves the notification message processing experience of user.

Description

A kind of notification message processing method, terminal and computer readable storage medium
Technical field
The present invention relates to intelligent terminal technical field, more specifically to a kind of notification message processing method, terminal and Computer readable storage medium.
Background technique
With the continuous development of terminal technology, the popularity rate of intelligent terminal in social life is higher and higher, and user is in day Often also higher and higher using the frequency of intelligent terminal in life, the intelligent terminal for applying various new technologies also comes into being, and makes Obtaining intelligent terminal becomes the indispensable important tool of people.
In practical applications, operation has screen locking keyguard process in terminal, for providing a user screen locking/unlock clothes Business, and also operation has notice process, is independent for providing a user prompt service namely the two processes of notification message Process, need to realize interaction based on certain communication mechanism between the two, usually use in the prior art The modes such as sharedPreferences, ContentProvider, broadcast or messenger realize between the two logical Letter interaction, however these interactive modes have some limitations, wherein sharedPreferences do not support two into Journey goes to execute write operation simultaneously, and bottom is realized by read/write xml document, and concurrently writing is clearly to be likely to occur problem;Extensively Although it is relatively simple practical to broadcast operation, it is possible that can postpone, it just will appear the state updated not in time, people can be allowed to feel Entanglement;In addition, the communication interaction mechanism under ContentProvider operation is similar with sharedPreferences, Messager It can not accomplish that notice process obtains information to keyguard process in real time.It can be seen that in the prior art notice process with Communication interaction realization mechanism between keyguard process is complex, real-time is poor, and then leads to whole communication information Processing experience is poor.
Summary of the invention
The technical problem to be solved in the present invention is that the notice process and keyguard that are run in terminal in the prior art Communication interaction realization mechanism between process is complex, real-time is poor, and caused whole communication information handles experience It is poor, for the technical problem, provide a kind of notification message processing method, terminal and computer readable storage medium.
In order to solve the above technical problems, the present invention provides a kind of notification message processing method, the notification message processing method Include:
When terminal is currently received notification message, the notice process run in controlling terminal calls intermediate management service Provided first interface obtains screen locking state of a process information;Notice process is tied up with screen locking process by intermediate management service It is fixed;
When determining that screen locking process is in the lock state, then in screen locking process switching to unlocked state, screen locking process is controlled It calls intermediate management to service provided second interface and sends locking end notification to notice process;
Time between at the time of at the time of receiving notification message according to terminal to screen locking process switching to unlocked state Interval, the comparison result with preset duration threshold value determine corresponding first notification message processing strategie;
Execute the first notification message processing strategie.
Optionally, the notice process run in controlling terminal calls intermediate management to service provided first interface, Before acquisition screen locking state of a process information, further includes:
Determine whether the type of message of notification message meets preset notification message processing trigger condition;
If so, the notice process run in controlling terminal calls intermediate management to service provided first interface, obtain Take screen locking state of a process information.
Optionally, determine that corresponding first notification message processing strategie includes:
When time interval is less than or equal to preset duration threshold value, corresponding first notification message processing strategie is determined are as follows: The pop-up that notification message is carried out on screen locking process switching to unlocked state and the terminal main interface that triggers is shown.
Optionally, it when the notification message that do not read currently has multiple, is triggered in screen locking process switching to unlocked state The pop-up that notification message is carried out in terminal main interface, which is shown, includes:
Only to the notification message being currently received in the terminal main interface that screen locking process switching to unlocked state triggers Pop-up is carried out to show.
Optionally, determine that corresponding first notification message processing strategie includes:
When time interval is greater than preset duration threshold value, corresponding first notification message processing strategie is determined are as follows: will notify The heart in the notification in message set.
Optionally, intermediate management service is expansible service.
Optionally, which is characterized in that after executing the first notification message processing strategie, further includes:
In screen locking process switching to lock state, control screen locking process is called intermediate management to service provided third and is connect Mouthful, Xiang Tongzhi process obtains the quantity for the notification message that do not read currently;
When the quantity that screen locking process is got is greater than preset quantity threshold value, preset second notification message processing plan is executed Slightly.
Optionally, second notification message processing strategie includes: the terminal screen locking after screen locking process switching to lock state Notification message prompt is not read on interface.
Further, the present invention also provides a kind of terminal, which includes processor, memory, communication bus;
Communication bus is for realizing the connection communication between processor, memory;
Processor is for executing one or more program stored in memory, to realize above-mentioned notification message processing The step of method.
Further, the present invention also provides a kind of computer readable storage medium, which is deposited One or more program is contained, one or more program can be executed by one or more processor, above-mentioned to realize The step of notification message processing method.
Beneficial effect
The present invention provides a kind of notification message processing method, terminal and computer readable storage medium, for the prior art Communication interaction realization mechanism in middle terminal between the notice process run and keyguard process is complex, real-time compared with Poor defect is experienced in difference, caused whole communication information processing, which includes: current in terminal When receiving notification message, the notice process run in controlling terminal calls intermediate management to service provided first interface, Obtain screen locking state of a process information;Notice process and screen locking process pass through intermediate management service binding;When determining screen locking process It is in the lock state, then in screen locking process switching to unlocked state, control screen locking process calls intermediate management service to be provided Second interface to notice process send locking end notification;It is cut at the time of receiving notification message according to terminal to screen locking process Time interval between at the time of shifting to unlocked state, the comparison result with preset duration threshold value determine corresponding first notice Message Processing strategy;Execute the first notification message processing strategie.There is provided by intermediate management service notice process with The interface of communication interaction is carried out between keyguard process, the two directly passes through bound intermediate management service and carries out communication friendship Mutually, the communication interaction process for simplifying the two, enhances the real-time of communication interaction, improves the notification message processing body of user It tests.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the basic flow chart for the notification message processing method that first embodiment of the invention provides;
Fig. 4 is the interface schematic diagram that a kind of notification message that first embodiment of the invention provides handles interface;
Fig. 5 is the interface schematic diagram that another notification message that first embodiment of the invention provides handles interface;
Fig. 6 is the refined flow chart for the notification message processing method that second embodiment of the invention provides;
Fig. 7 is the structural schematic diagram for the terminal that third embodiment of the invention provides.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
First embodiment
To solve the communication interaction reality in terminal in the prior art between the notice process run and keyguard process Existing mechanism is complex, real-time is poor, and poor defect is experienced in caused whole communication information processing, and the present embodiment mentions A kind of notification message processing method has been supplied, the basic procedure of notification message processing method provided in this embodiment is illustrated in figure 3 Figure, it should be appreciated that the notification message processing method in the present embodiment can be applied to various types of terminal device, Such as: the terminal devices such as Intelligent bracelet, smart phone, tablet computer, laptop, the notification message processing method specifically wrap Include following steps:
S301, when terminal is currently received notification message, the notice process run in controlling terminal calls intermediate tube Reason services provided first interface, obtains screen locking state of a process information;Notice process and screen locking process pass through intermediate management Service binding.
The currently received notification message of terminal can be system notification message, third-party application notice in the present embodiment Various types of notification messages such as message, for the real-time for realizing communication interaction, it is necessary to exclude communication time-consuming, that amount is big and account for With information channel, what the binding that the present embodiment passes through aidl can be very perfect accomplishes these, intermediate tube provided by the present embodiment Reason service WatchListenerService.aidl is a management screen locking service WatchScreenLockService and notice The intermediate administrator of NotificationService is serviced, notice service is bound screen locking service by intermediate management service, locked The screen service opposite also binding past.In practical applications, while terminal receives notification message and trigger notice message notifying, Notice process can be serviced at this time by intermediate management in added isShowingKeyguard () interface come active obtain lock Shield state of a process, to determine that the currently provided service of screen locking process is screen locking service or unlocking screen service, I.e. screen locking process is in the lock state still unlocked state.
Optionally, the notice process run in controlling terminal calls intermediate management to service provided first interface, Before acquisition screen locking state of a process information, further includes: determine whether the type of message of notification message meets preset notice and disappear Breath processing trigger condition;If so, the notice process run in controlling terminal is called first provided by intermediate management service Interface obtains screen locking state of a process information.
Specifically, in practical applications, notification message processing of the invention is not provided under any application scenarios to be needed It asks, such as when currently received notice is the rubbish notification messages such as advertisement notification message, since this kind of notification message is logical Often it is not the desired notification message obtained of user, certain puzzlement can be brought instead for user, therefore in such feelings It under condition, does not need further to execute the subsequent notification message process flow of the present embodiment, is based on this, is only working as in the present embodiment When the type of message of preceding received notification message meets preset trigger condition, the notification message processing stream of ability triggering following Journey, to realize that user actually uses the compromise of demand and terminal capabilities saving.
S302, when determining that screen locking process is in the lock state, then in screen locking process switching to unlocked state, control screen locking Process calls intermediate management to service provided second interface and sends locking end notification to notice process.
Specifically, in practical applications, if screen locking process is in the unlocked state, conventional notifier processes stream can be executed Journey, such as notification message is subjected to pop-up prompt in terminal main interface, or notification message is concentrated on into special notice center, User can recall notice center to check to notification message.It should be noted that in the present embodiment determine screen locking into When journey is in the lock state, then it can trigger screen locking process at subsequent screen locking process switching to unlocked state and pass through intermediate management The notice that added changeKeyguardState () interface actively reports screen lock state to terminate to notice process in service, Here screen locking process is realized when sending locking end notification to notice process again by intermediate management service, with Front is the difference is that the interface called is different.
Optionally, intermediate management service is expansible service.
Specifically, to each provide two different interfaces different to realize for intermediate management service in S301 and S302 Communication interaction process, and in practical applications, the usage scenario faced is difference, to may face subsequent Change demand or newly increased requirement use to meet user, are based on this, and the intermediate management service in the present embodiment is expansible clothes Business, can rewrite interface added in service to change demand.
S303, at the time of receive notification message according to terminal to screen locking process switching to unlocked state at the time of between Time interval, the comparison result with preset duration threshold value determine corresponding first notification message processing strategie.
S304, the first notification message processing strategie is executed.
Specifically, terminal received notification message in the present embodiment and to conduct when user's trigger notice message notifying Timing initial time, the timer for opening terminal inner starts to carry out timing, if screen locking process when terminal receives notification message It is in the lock state, then as at the end of timing at the time of getting the locking end notification of screen locking process transmission using notice process It carves and stops timing, the comparison result that the time interval counted according to timer is compared with preset duration threshold value comes true Fixed subsequent notification message processing strategie.In practical applications, the time interval risen in timer is shorter, then illustrates that user exists It receives and terminal is unlocked in the notification message shorter time, and it is logical according to the time interval length of the unlock of user The urgent degree or the notification message that the notification message can be often known to user carry out centainly the significance level of user Reflection determines corresponding notification message processing strategie hereby based on the time interval, more adapts to the reality of user's diversification Use demand, compared with the existing technology in, after user's unlock, that notification message concentrated on notice center etc. is single using unified One processing mode, the present embodiment effectively improve the intelligence and user friendly of notification message processing.
Optionally, determine that corresponding first notification message processing strategie includes: to be less than or equal to preset duration in time interval When threshold value, corresponding first notification message processing strategie is determined are as follows: in the terminal that screen locking process switching to unlocked state triggers The pop-up that notification message is carried out in main interface is shown.
Specifically, in practical applications, if to receive the time interval that notification message is unlocked to user shorter for terminal, say Bright user is higher to the attention rate of the notification message, which has higher importance relative to user, as a result, this reality The notification message processing strategie for applying corresponding use in example is, logical to this in the terminal main interface entered after terminal is unlocked Know that message carries out pop-up and shows, to prompt user, to meet the needs of notification message reaches user immediately.Such as Fig. 4 It is shown a kind of interface schematic diagram at notification message processing interface provided in this embodiment, notification message processing interface here is Terminal main interface, it is to be shown in terminal main interface to notification message that the shade suspended window at the top of interface is located in figure Pop-up.
Optionally, it when the notification message that do not read currently has multiple, is triggered in screen locking process switching to unlocked state The pop-up that notification message is carried out in terminal main interface shows to include: the terminal master triggered in screen locking process switching to unlocked state Only pop-up is carried out to the notification message being currently received on interface to show.
It should be noted that in some cases, user might have it is a plurality of do not read notification message be do not check state, and A kind of most typical application scenarios of screen locking process switching to unlocked state are this newest notification messages before this at this moment Notification message is not read with higher importance relative to previous, is caused the attention rate of user and is made user's needs will be whole End unlock and carry out the processing of notification message, this is based on, in the present embodiment in the pop-up display for carrying out notification message, only to working as Preceding this received notification message namely this newest notification message carry out pop-up and show.It should be understood that other The processing mode for not reading notification message in some embodiments, can be and concentrated on notice center, and selected by user It selects and whether is checked into notice center.
Optionally, determine that corresponding first notification message processing strategie includes: to be greater than preset duration threshold value in time interval When, determine corresponding first notification message processing strategie are as follows: notification message is concentrated on into notice center.
Specifically, in practical applications, if to receive the time interval that notification message is unlocked to user shorter for terminal, say Bright user is lower to the attention rate of the notification message, corresponding, and the importance of the notification message is relatively low, as a result, this reality The notification message processing strategie for applying corresponding use in example is, notification message is concentrated on special notice center, and user can be with Notice center is recalled to check to notification message, and pop-up specially is not carried out to it and is shown, to avoid this kind of letter The dislike for carrying out active prompt and causing user is ceased, and the normal use of user is impacted.It is illustrated in figure 5 the present embodiment The interface schematic diagram at another notification message processing interface of offer, notification message processing interface here is notice center circle Face, user can recall notice center interface by pulling down gesture in the present embodiment, and four shade frameworks in figure are logical Know the notification message that center is concentrated.
The pop-up that notification message is shown as in terminal main interface.
Optionally, after executing the first notification message processing strategie, further includes: in screen locking process switching to lock state When, control screen locking process calls intermediate management to service provided third interface, and Xiang Tongzhi process obtains the notice that do not read currently The quantity of message;When the quantity that screen locking process is got is greater than preset quantity threshold value, execute at preset second notification message Reason strategy.
Specifically, in the present embodiment when screen locking process switching to lock state, namely when terminal is locked from unlocked state switchback It when screen state, is also provided that corresponding notification message processing strategie, is achieved in that, triggering screen locking process passes through intermediate tube Added getUnreadNotificationCount () interface actively obtains notice center to notice process and works as in reason service The quantity of preceding accumulation people of unread information, when the quantity is greater than preset threshold, triggering executes second notification message processing strategie, as A kind of preferred embodiment, which is set as 0, namely there is currently people of unread information to execute second notification message processing Strategy.
Optionally, second notification message processing strategie includes: the terminal screen locking after screen locking process switching to lock state Notification message prompt is not read on interface.
Specifically, in the present embodiment, after terminal enters screen lock state, to not reading notification message on locking screen interface It is prompted, prompting mode here, which can be, only to be prompted to have not read notification message, is also possible to the number for not reading notification message Amount is prompted.It should be noted that screen locking process keep lock state in the case where, if notice process continue to it is new Notification message, can to do not read notification message prompt carry out adaptability update.
The present invention provides a kind of notification message processing method, for the notice process that is run in terminal in the prior art with Communication interaction realization mechanism between keyguard process is complex, real-time is poor, caused whole communication information Poor defect is experienced in processing, which includes: the controlling terminal when terminal is currently received notification message Interior run notice process calls intermediate management to service provided first interface, obtains screen locking state of a process information;It is logical Know that process and screen locking process pass through intermediate management service binding;When determining that screen locking process is in the lock state, then in screen locking process When switching to unlocked state, control screen locking process calls intermediate management to service provided second interface and sends lock to notice process Determine end notification;Between at the time of at the time of receiving notification message according to terminal to screen locking process switching to unlocked state when Between be spaced, the comparison result with preset duration threshold value determines corresponding first notification message processing strategie;The first notice is executed to disappear Cease processing strategie.It is provided by intermediate management service and carries out connecing for communication interaction between notice process and keyguard process Mouthful, the two directly passes through bound intermediate management service and carries out communication interaction, simplifies the communication interaction process of the two, enhancing The real-time of communication interaction improves the notification message processing experience of user.
Second embodiment
In order to better understand the present invention, the present embodiment says notification message processing method with a specific example Bright, Fig. 6 is the refined flow chart for the notification message processing method that second embodiment of the invention provides, the notification message processing method Include:
S601, when terminal is currently received notification message, it is preset to determine whether the type of message of notification message meets Notification message handles trigger condition;If so, S602 is executed, if it is not, then executing S601.
In practical applications, notification message process demand of the invention, this reality are not provided under any application scenarios It applies in example only when the type of message of currently received notification message meets preset trigger condition, the notice of ability triggering following Message Processing process, to realize that user actually uses the compromise of demand and terminal capabilities saving.
The notice process run in S602, controlling terminal calls intermediate management to service provided first interface, obtains Screen locking state of a process information;Notice process and screen locking process pass through intermediate management service binding.
For the real-time for realizing communication interaction, notice process and keyguard process directly pass through bound in the present embodiment Intermediate management service WatchListenerService.aidl carry out communication interaction, wherein notice process can pass through in real time Added isShowingKeyguard () interface actively obtains screen locking process in WatchListenerService.aidl State.
S603, when determining that screen locking process is in the lock state, then in screen locking process switching to unlocked state, control screen locking Process calls intermediate management to service provided second interface and sends locking end notification to notice process.
It, then can be in subsequent screen locking process switching to unlocking shape in the present embodiment when determining that screen locking process is in the lock state When state, triggering screen locking process passes through added in WatchListenerService.aidl in real time The notice that changeKeyguardState () interface actively reports screen lock state to terminate to notice process.
S604, at the time of receive notification message according to terminal to screen locking process switching to unlocked state at the time of between Time interval, the comparison result with preset duration threshold value determine corresponding first notification message processing strategie.
S605, the first notification message processing strategie is executed.
In the present embodiment by terminal receive notification message and to when user's trigger notice message notifying as at the beginning of timing Begin the moment, as timing finish time at the time of getting the locking end notification of screen locking process transmission using notice process, according to The comparison result that the time interval counted is compared with preset duration threshold value determines subsequent notification message processing strategie, More adapt to the actual use demand of user's diversification, compared with the existing technology in, after user's unlock, will be led to using unified Know in message set the single processing mode such as heart in the notification, the present embodiment effectively improve notification message processing intelligence and User friendly.
S606, in screen locking process switchback lock state, control screen locking process is called the provided by intermediate management service Three interfaces, Xiang Tongzhi process obtain the quantity for the notification message that do not read currently.
S607, the quantity that screen locking process is got be greater than preset quantity threshold value when, execute preset second notification message Processing strategie.
In the present embodiment when screen locking process switching to lock state, also triggers screen locking process and pass through intermediate management service Added getUnreadNotificationCount () interface is actively to logical in WatchListenerService.aidl Know that process obtains the quantity that people of unread information is currently accumulated at notice center, when the quantity is greater than preset threshold, triggering executes second Notification message processing strategie.
The present invention provides a kind of notification message processing method, uniformly provided by intermediate management service notice process with The interface that communication interaction is carried out between keyguard process, by bound intermediate management service, the process of notice can be direct Carry out keyguard process current state acquisition, keyguard process can when switching to unlocked state directly to notify into Journey reports locking end notification, and keyguard process can not read to notify in switchback lock state to the acquisition of notice process The quantity of message enhances the real-time of communication interaction to simplify the communication interaction process of the two, improves the logical of user Know that Message Processing is experienced.
3rd embodiment
A kind of terminal is present embodiments provided, it is shown in Figure 7, including processor 701, memory 702, communication bus 703;
Communication bus 703 is for realizing the connection communication between processor 701, memory 702;
Memory 702 is for storing one or more programs, and processor 701 is for executing one stored in memory 702 A or multiple programs, it is no longer superfluous herein the step of to realize notification message processing method shown in the various embodiments described above It states.
Fourth embodiment
The present invention also provides a kind of computer readable storage medium, one is stored in the computer readable storage medium Or multiple programs, which can be executed by one or more processor, to realize the various embodiments described above Shown in notification message processing method the step of, details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of notification message processing method, which is characterized in that the notification message processing method includes:
When terminal is currently received notification message, controls the notice process run in the terminal and call intermediate management service Provided first interface obtains screen locking state of a process information;The notice process and the screen locking process pass through in described Between management service bind;
When determining that the screen locking process is in the lock state, then in the screen locking process switching to unlocked state, described in control Screen locking process calls the intermediate management to service provided second interface and sends locking end notification to the notice process;
Between at the time of at the time of receiving notification message according to the terminal to the screen locking process switching to unlocked state Time interval, the comparison result with preset duration threshold value determine corresponding first notification message processing strategie;
Execute the first notification message processing strategie.
2. notification message processing method as described in claim 1, which is characterized in that is run in the control terminal is logical Know process call intermediate management service provided by first interface, obtain screen locking state of a process information before, further includes:
Determine whether the type of message of the notification message meets preset notification message processing trigger condition;
It calls intermediate management to service provided first interface if so, controlling the notice process run in the terminal, obtains Take screen locking state of a process information.
3. notification message processing method as described in claim 1, which is characterized in that corresponding first notification message of the determination Processing strategie includes:
When the time interval is less than or equal to the preset duration threshold value, corresponding first notification message processing strategie is determined Are as follows: the pop-up that notification message is carried out in the terminal main interface that the screen locking process switching to unlocked state triggers is shown.
4. notification message processing method as claimed in claim 3, which is characterized in that have in the notification message that do not read currently multiple When, the pop-up that notification message is carried out in the terminal main interface that the screen locking process switching to unlocked state triggers is shown Include:
Only to the notice being currently received in the terminal main interface that the screen locking process switching to unlocked state triggers Message carries out pop-up and shows.
5. notification message processing method as described in claim 1, which is characterized in that corresponding first notification message of the determination Processing strategie includes:
When the time interval is greater than the preset duration threshold value, corresponding first notification message processing strategie is determined are as follows: will The notification message concentrates on notice center.
6. notification message processing method as described in claim 1, which is characterized in that the intermediate management service is expansible clothes Business.
7. such as notification message processing method described in any one of claims 1 to 6, which is characterized in that executing described first After notification message processing strategie, further includes:
In the screen locking process switching to lock state, controls the screen locking process and the intermediate management service is called to be provided Third interface, the quantity of notification message that do not read currently is obtained to the notice process;
When the quantity that the screen locking process is got is greater than preset quantity threshold value, execute at preset second notification message Reason strategy.
8. notification message processing method as claimed in claim 7, which is characterized in that the second notification message processing strategie packet It includes: not being read notification message prompt in the terminal screen lock interface after the screen locking process switching to lock state.
9. a kind of terminal, which is characterized in that the terminal includes processor, memory, communication bus;
The communication bus is for realizing the connection communication between processor, memory;
The processor is for executing one or more program stored in memory, to realize as appointed in claim 1 to 8 The step of notification message processing method described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize such as claim 1 to 8 Any one of described in notification message processing method the step of.
CN201811444553.0A 2018-11-29 2018-11-29 Notification message processing method, terminal and computer readable storage medium Active CN109889651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811444553.0A CN109889651B (en) 2018-11-29 2018-11-29 Notification message processing method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811444553.0A CN109889651B (en) 2018-11-29 2018-11-29 Notification message processing method, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109889651A true CN109889651A (en) 2019-06-14
CN109889651B CN109889651B (en) 2021-01-26

Family

ID=66924970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811444553.0A Active CN109889651B (en) 2018-11-29 2018-11-29 Notification message processing method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109889651B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110557500A (en) * 2019-07-22 2019-12-10 珠海格力电器股份有限公司 prompt message display method and device and terminal
CN113079080A (en) * 2021-03-18 2021-07-06 维沃移动通信有限公司 Message processing method and device and electronic equipment
CN113382110A (en) * 2020-02-25 2021-09-10 华为技术有限公司 Method and terminal for avoiding repeated reminding of notification message

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468356A (en) * 2015-11-16 2016-04-06 北京金山安全软件有限公司 Notification message control method and device
CN105979088A (en) * 2016-05-06 2016-09-28 北京小米移动软件有限公司 Message pushing method and device
CN106095463A (en) * 2016-06-22 2016-11-09 北京金山安全软件有限公司 Notification bar message processing method and device and terminal equipment
CN107682563A (en) * 2017-11-14 2018-02-09 程桂平 Handle the method and system and its smart mobile phone of short message

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468356A (en) * 2015-11-16 2016-04-06 北京金山安全软件有限公司 Notification message control method and device
CN105979088A (en) * 2016-05-06 2016-09-28 北京小米移动软件有限公司 Message pushing method and device
CN106095463A (en) * 2016-06-22 2016-11-09 北京金山安全软件有限公司 Notification bar message processing method and device and terminal equipment
CN107682563A (en) * 2017-11-14 2018-02-09 程桂平 Handle the method and system and its smart mobile phone of short message

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110557500A (en) * 2019-07-22 2019-12-10 珠海格力电器股份有限公司 prompt message display method and device and terminal
CN113382110A (en) * 2020-02-25 2021-09-10 华为技术有限公司 Method and terminal for avoiding repeated reminding of notification message
CN113382110B (en) * 2020-02-25 2023-11-03 华为技术有限公司 Method and terminal for avoiding repeated reminding of notification message
CN113079080A (en) * 2021-03-18 2021-07-06 维沃移动通信有限公司 Message processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN109889651B (en) 2021-01-26

Similar Documents

Publication Publication Date Title
CN110175062A (en) A kind of screen-refresh frame per second method, mobile terminal and the storage medium of mobile terminal
CN107395858A (en) A kind of reminding method of notification message, terminal and computer-readable recording medium
CN109521925A (en) Icon arrangement method, mobile terminal and computer readable storage medium
CN109407957A (en) Screen touch control method, terminal and computer readable storage medium
CN109040441A (en) Using display methods of attending to anything else, mobile terminal and computer readable storage medium
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN109462700A (en) A kind of call method, mobile terminal and computer readable storage medium
CN109683766A (en) Interactive interface control method, mobile terminal and computer readable storage medium
CN109376669A (en) Control method, mobile terminal and the computer readable storage medium of intelligent assistant
CN109889651A (en) A kind of notification message processing method, terminal and computer readable storage medium
CN108829302A (en) A kind of interaction regulation method, equipment and computer readable storage medium
CN108958936A (en) Application programe switch-over method, mobile terminal and computer readable storage medium
CN110096213A (en) Terminal operation method, mobile terminal and readable storage medium storing program for executing based on gesture
CN109890072A (en) Saving power for terminal control method, device, mobile terminal and readable storage medium storing program for executing
CN109587341A (en) A kind of voice communication control method, terminal and computer readable storage medium
CN109389394A (en) A kind of multi-screen payment control method, equipment and computer readable storage medium
CN108881542A (en) Mobile terminal call method, mobile terminal and computer readable storage medium
CN108958932A (en) A kind of control method of background application, terminal and computer readable storage medium
CN109947330A (en) Prompt operation processing method, mobile terminal and computer readable storage medium
CN110032313A (en) A kind of screen switching, terminal and computer readable storage medium
CN109683796A (en) A kind of interaction control method, equipment and computer readable storage medium
CN110096173A (en) Method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN110012155A (en) A kind of call recording method, terminal and computer readable storage medium
CN110007817A (en) A kind of message treatment method and mobile terminal, computer readable storage medium
CN109658883A (en) Screen display method, terminal and computer readable storage medium

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