The content of the invention
The present invention provides a kind of processing method and terminal of notification message, and its main purpose is without user's manual modificationThe setting of mobile phone or switch mobile phone pattern, you can automatic shield notification message releases shielding in time, is avoiding notifyingWhile the not timing interference of message, prevent from missing important message.
While being to reduce interference of the various not timing notification messages to user, important PUSH message is avoided missing.
To achieve the above object, the present invention provides a kind of processing method of notification message, the processing method of the notification messageIncluding:
When detecting notification message, the current positional information of mobile terminal is obtained, and judge according to the positional informationWhether the mobile terminal is located in fence area;
If the mobile terminal is located in the fence area, the notification message is intercepted, and by the notification messagePreserve to spatial cache;
When detecting that the mobile terminal leaves the fence area, the notice being stored in the spatial cache is obtainedMessage is simultaneously pushed.
Alternatively, the processing method of the notification message also includes step:
When detecting that the mobile terminal is in fence area and the current time belongs to preset time section, institute is detectedState in spatial cache and whether preserve notification message;
If the spatial cache preserves notification message, obtain the notification message being stored in the spatial cache and go forward side by sideRow push.
Alternatively, it is described to intercept the notification message, and the step of the notification message is preserved to preset buffer memory spaceBefore, the processing method of the notification message also includes step:
If the mobile terminal is located in the fence area, judge detect the notification message time point whetherBelong to preset time section;
When belonging to the preset time section at the time point for detecting the notification message, push detect it is described logicalKnow information;
When being not belonging to the preset time section at the time point for detecting the notification message, perform and intercept the noticeMessage, and the step of the notification message is preserved to preset buffer memory space.
Alternatively, described when detecting notification message, the step of obtaining mobile terminal current positional information, includes:
When detecting notification message, the current base station information of the mobile terminal is obtained from base station side, and according to describedBase station information determines the positional information of the mobile terminal.
Alternatively, it is described logical after the step of obtaining the notification message being stored in the spatial cache and being pushedKnowing the processing method of message also includes:
The notification message for having pushed to the mobile terminal is deleted from the spatial cache.
Alternatively, it is described when detecting notification message, the current positional information of mobile terminal is obtained, and according to institute's rhemeConfidence breath judges whether the mobile terminal is located at before the step in fence area, and the processing method of the notification message is also wrappedInclude:
Timing or the positional information and record for obtaining the mobile terminal in real time, according to the position recorded in preset durationThe resident position of mobile terminal described in acquisition of information, and create the fence area centered on the resident position.
In addition, to achieve the above object, the present invention also provides a kind of processing terminal of notification message, the place of the notification messageReason terminal includes:
Position judging module, for when detecting notification message, obtaining the current positional information of the terminal, and according toThe positional information judges whether the terminal is located in fence area;
Message caching module, if being located at for the terminal in the fence area, the notification message is intercepted, and willThe notification message is preserved to spatial cache;
Message notification module, for when detecting that the terminal leaves the fence area, acquisition to be stored in described slowDeposit the notification message in space and pushed.
Alternatively, the message caching module is additionally operable to:When detecting that the mobile terminal is in fence area and currentTime when belonging to preset time section, detect in the spatial cache whether preserve notification message;
The message notification module is additionally operable to:If the spatial cache preserves notification message, acquisition is stored in describedNotification message in spatial cache is simultaneously pushed.
Alternatively, the processing terminal of the notification message also includes:
Time judgment module, if being located at for the terminal in the fence area, judgement detects that the notice disappearsWhether the time point of breath belongs to preset time section;
The message notification module is additionally operable to:Belong to the preset time area when the time point for detecting the notification messageBetween when, push the announcement information detected;
The message caching module is additionally operable to:The preset time is not belonging to when the time point for detecting the notification messageDuring section, the notification message is intercepted, and the notification message is preserved to preset buffer memory space.
Alternatively, the position judging module is additionally operable to:When detecting notification message, the current base of the terminal is obtainedStand information, and the positional information of the terminal is determined according to the base station information.
Alternatively, the processing terminal of the notification message also includes:
Message deletion module, the notice that the terminal has been pushed to for being deleted from the spatial cache disappearBreath.
Alternatively, the processing terminal of the notification message also includes:
Fence creation module, obtain for timing or in real time the positional information and record of the terminal, according to it is default whenThe positional information of record obtains the resident position of the terminal in long, and the fence area is created centered on the resident positionDomain.
The processing method and terminal of notification message proposed by the present invention, when detecting notification message, obtain mobile terminalPositional information, according to positional information judge mobile terminal currently whether be located at fence area in, if so, then intercept notice disappearBreath, the notification message detected is preserved to spatial cache, and be not temporarily pushed to user, when detecting that mobile terminal leaves thisWhen fence is with region, then the announcement information cached in control is stored in mobile terminal push, that is to say, that method of the inventionAnd terminal, when detecting notification message, it is not direct PUSH message and reminds user, but judge whether mobile terminal is located atFence area, if so, then using intercepting and by the way of buffered message, it is deferred to mobile terminal and leaves after fence that sending out notice disappears againBreath, life, work of the not timing message to user can either be avoided to interfere, and user can also be avoided to leave fenceNotification message is missed behind region.
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.
The present invention provides a kind of processing method of notification message.It is the processing side of notification message of the present invention shown in reference picture 1The flow chart of method first embodiment.
In the present embodiment, the processing method of the notification message includes:
Step S10, when detecting notification message, the current positional information of mobile terminal is obtained, and according to the positionInformation judges whether the mobile terminal is located in fence area;
Step S20, if the mobile terminal is located in the fence area, the notification message is intercepted, and by described inNotification message is preserved to spatial cache;
It should be noted that the present embodiment propose notification message processing method in mobile terminal can be mobile phone,The intelligent terminals such as tablet personal computer.The method of the present embodiment for convenience of description, is illustrated by taking mobile phone as an example below.
Geography fence is a kind of application based on location-based service, exactly crosses a virtual geography with a virtual fenceBorder.When mobile phone enters, leaves some specific geographical area, or it is movable in the region when, mobile phone can receive automatic noticeAnd warning.The method that the present embodiment proposes, is handled notification message by geography fence mechanism, is avoided various logical on mobile phoneKnow that work and life of the message to user interfere.
User can pre-set mobile phone, be configured for the processing mode of notification message, be created for mobile terminal moreIndividual geography fence region, i.e., described fence area.Such as Administrative Area, residential area etc., using these regions as fence area.
On the setting of fence area, user can be on the configuration interface of fence area, the map interface of mobile phone offerThe upper resident position of selection or the coordinate of resident position, centered on residing the coordinate of position, are created according to default area sizeBuild fence area.
The major applications installed on mobile phone when there is new notification message, can carry out the prompting of notification message, for example,The social softwares such as wechat, microblogging or other subscription have the software of notification message, are shown typically on informing or desktop logicalKnow message, while the prompt tone of output notice information, in the present embodiment, enter for the notification message of each application on mobile phoneRow monitoring in real time, when having detected notification message, the current positional information of mobile phone is obtained, and according to the positional information gotJudge whether mobile phone is located in fence area, if so, notification message is then intercepted, not on the informing or display interface of mobile phoneIt has been shown that, does not also send prompt tone, but notification message is stored in into spatial cache.The spatial cache can be the storage in mobile phoneThe memory space marked off in region, for storing the announcement information received.
In the present embodiment, the positional information for obtaining mobile terminal can have various ways, be exemplified below two of which and enterRow explanation.
As a kind of embodiment, when detecting notification message, the current base of the mobile terminal is obtained from base station sideStand information, and the positional information of the mobile terminal is determined according to the base station information.The base station for being distributed in each position is formedCellular network, and each base station can the broadcast in real time base station information of itself, mobile phone entering covering for some base stationDuring lid scope, it becomes possible to get the base station information of the base station, and then it is current according to the base station information got to obtain mobile phonePositional information, such as latitude and longitude coordinates, this position acquisition mode, network is connected without mobile phone, has the situation of signal in mobile phoneUnder, you can positional information is obtained, is a kind of position acquisition mode for relatively saving mobile phone electricity.In other embodiments, also may be usedThe positional information of mobile phone is obtained in a manner of by being positioned according to the GPS of mobile terminal, utilizes the GPS location mould on mobile phoneThe position signalling of oneself is sent to positioning backstage to realize that mobile phone positions by block.Or when mobile phone connects wifi, based on wifiNetwork carries out positioning and obtains positional information.
Alternatively,, should by what is detected when storing announcement information in the form of buffer queue as a kind of embodimentAnnouncement information is preserved into buffer queue according to the time sequencing received, meanwhile, when storing announcement information, Ke YigenClassification storage is carried out according to different applications, and in storage information, the notice of the application is stored according to the form of application requirementInformation.
Step S30, when detecting that the mobile terminal leaves the fence area, acquisition is stored in the spatial cacheIn notification message and pushed.
Because mobile phone can obtain positional information in real time, detecting that mobile phone have left fence area according to positional informationAfterwards, obtain the notification message being stored in the spatial cache and pushed, be i.e. informing or display interface in mobile phoneNotification message is shown, it is alternatively possible to according to the time of storage by the early notification message for pushing storage one by one to evening, or according toThe priority of application, order from high to low push the notification message of each application of storage successively.Wherein, the priority of applicationIt can be pre-set according to demand by user.
Further, step is also included as a kind of embodiment, the processing method of the notification message:
When detecting that the mobile terminal is in fence area and the current time belongs to preset time section, institute is detectedState in spatial cache and whether preserve notification message;
If the spatial cache preserves notification message, obtain the notification message being stored in the spatial cache and go forward side by sideRow push.
When user is on duty, noon may have one section of time of having a rest, and during this period of time, user can wish that mobile phone can incite somebody to actionThe information for being stored in spatial cache is pushed out coming, and therefore, can preset and set a preset time section, when mobile phone is currently atWhen fence area and the entrance preset time region, the notification message being stored in the spatial cache is pushed out coming.
Alternatively, as a kind of embodiment, before step S10, the processing method of the notification message also includes step:
When detecting notification message, judge whether application belongs to default application corresponding to the notification message;
If so, then perform step S10;
If it is not, then push the announcement information detected.
Because for some important applications, user may need the instant notification message that gets, such as mailbox,User can receive prompting at once when may wish to new mail.Therefore, in this embodiment, user can be advanceSet need intercept message application, add it in default list of application, for important application can not be put into wherein,When having detected notification message, first judge whether application corresponding to it is default application, if so, then being intercepted, if it is not, thenDirect PUSH message.Further, after step S30, the processing method of the notification message is further comprising the steps of:
The notification message for having pushed to the mobile terminal is deleted from the spatial cache, avoids causing to storeThe waste in space.
The processing method for the notification message that the present embodiment proposes, when detecting notification message, obtains the position of mobile terminalConfidence ceases, and judges whether mobile terminal is currently located in fence area according to positional information, if so, notification message is then intercepted, willThe notification message detected is preserved to spatial cache, and is not temporarily pushed to user, when detecting that mobile terminal leaves the fenceDuring with region, then the announcement information cached in control is stored in mobile terminal push, that is to say, that detecting notification messageWhen, it is not direct PUSH message and reminds user, but judge whether mobile terminal is located at fence area, blocked if so, then usingCut and the mode of buffered message, be deferred to mobile terminal and leave after fence sending out notice message again, not timing can either be avoided to disappearCease the life to user, work interferes, and user can also be avoided to miss notification message after fence area is left.ThisKind mode is only needed to set mobile phone once, it is not necessary to which modification is set repeatedly, and the method for the embodiment simultaneously also use by reductionThe frequency that mobile phone is checked is lighted at family repeatedly, and the power consumption problem for alleviating frequent operation intelligent terminal and bringing also is prolonged to a certain extentThe stand-by time of mobile phone is grown.
The second embodiment of the processing method of notification message of the present invention is proposed based on first embodiment., should shown in reference picture 2The difference of embodiment and first embodiment is, in the present embodiment, before step S20, the processing method of the notification messageAlso include:
Step S40, if the mobile terminal is located in the fence area, judge detect the notification message whenBetween put whether belong to preset time section;
Step S50, when belonging to the preset time section at the time point for detecting the notification message, push detectsThe announcement information;
When being not belonging to the preset time section at the time point for detecting the notification message, step S20 is performed.
The method of the present embodiment sets preset time region as additional interception bar on the basis of first embodimentPart.For example, when being on duty, user may have one section of time of having a rest at noon, and during this period of time, user can wish that mobile phone canThe notification message that instant notice receives, therefore, user can pre-set a preset time section, detect noticeDuring message, even if current phone is in fence area, but detect that the time point of notification message belongs to preset time region, stillSo carry out the prompting of notification message.
The 3rd embodiment of the processing method of notification message of the present invention is proposed based on first embodiment or second embodiment.The difference of the embodiment and first embodiment or second embodiment is that in the present embodiment, before step S10, this is logicalKnow that the processing method of message is further comprising the steps of:
Timing or the positional information and record for obtaining the mobile terminal in real time, according to the position recorded in preset durationThe resident position of mobile terminal described in acquisition of information, and create the fence area centered on the resident position.
The method that the present embodiment proposes, there is provided a kind of mobile phone automatically creates the mode of fence area according to certain mechanism,Mobile phone can be concentrated by base station information from the positional information of the acquisition mobile phone of base station side not timing and storage to positional information,After preset duration, such as one week, according to the resident position of the position information set of storage acquisition mobile phone, for example, when mobile phone existsA certain place residence time then thinks that the position is resident position more than certain duration, centered on this resides position, pressesAccording to the size of default fence area, fence area is automatically created.After creating fence area, user can be as needed to creatingOne or more fence area configured, for example, different applications can be intercepted in different fence area, for example,, then can be by residential area when user is not desired to receive mail in residential area if there are working region, residential area etc. in fence areaDomain is arranged to intercept the notification message of mailbox, until leaving the region.
The processing method for the notification message that the present embodiment proposes, can be automatically determined out and enclose according to the use habit of userColumn region, it is not necessary to set, brought convenience for user manually.
The present invention also proposes a kind of processing terminal of notification message.
It is the high-level schematic functional block diagram of the processing terminal first embodiment of notification message of the present invention shown in reference picture 3.
In this embodiment, the processing terminal of the notification message includes:
Position judging module 10, for when detecting notification message, obtaining the current positional information of mobile terminal, and rootJudge whether the mobile terminal is located in fence area according to the positional information;
Message caching module 20, if being located at for the mobile terminal in the fence area, intercept the notice and disappearBreath, and the notification message is preserved to spatial cache;
It should be noted that the processing terminal for the notification message that the present embodiment proposes can be the intelligence such as mobile phone, tablet personal computerCan terminal.For the ease of explaining the present embodiment, illustrated below by taking mobile phone as an example.
Geography fence is a kind of application based on location-based service, exactly crosses a virtual geography with a virtual fenceBorder.When mobile phone enters, leaves some specific geographical area, or it is movable in the region when, mobile phone can receive automatic noticeAnd warning.The present embodiment is handled notification message by geography fence mechanism, avoid on mobile phone various notification messages toThe work and life at family interfere.
User can pre-set mobile phone, be configured for the processing mode of notification message, be created for mobile terminal moreIndividual geography fence region, i.e., described fence area.Such as Administrative Area, residential area etc., using these regions as fence area.
On the setting of fence area, user can be on the configuration interface of fence area, the map interface of mobile phone offerThe upper resident position of selection or the coordinate of resident position, centered on residing the coordinate of position, are created according to default area sizeBuild fence area.
The major applications installed on mobile phone when there is new notification message, can carry out the prompting of notification message, for example,The social softwares such as wechat, microblogging or other subscription have the software of notification message, are shown typically on informing or desktop logicalKnow message, while the prompt tone of output notice information, in the present embodiment, enter for the notification message of each application on mobile phoneRow monitoring in real time, when having detected notification message, position judging module 10 obtains the current positional information of mobile phone, and according to obtainingThe positional information got judges whether mobile phone is located in fence area, if so, then message caching module 20 intercepts notification message, noShown on the informing or display interface of mobile phone, also do not send prompt tone, but notification message is stored in spatial cache.The spatial cache can be the memory space marked off in the storage region of mobile phone, for storing the announcement information received.
In the present embodiment, the positional information for obtaining mobile terminal can have various ways, be exemplified below two of which and enterRow explanation.
As a kind of embodiment, position judging module 10 is additionally operable to:When detecting notification message, obtained from base station sideThe current base station information of the mobile terminal, and determine according to the base station information positional information of the mobile terminal.DistributionForm cellular network in the base station of each position, and each base station can the broadcast in real time base station information of itself, mobile phoneWhen entering the coverage of some base station, it becomes possible to the base station information of the base station is got, and then according to the base gotInformation of standing obtains the current positional information of mobile phone, such as latitude and longitude coordinates, this position acquisition mode, net is connected without mobile phoneNetwork, in the case where mobile phone has signal, you can obtain positional information, be a kind of position acquisition side for relatively saving mobile phone electricityFormula.In other embodiments, position judging module 10 can also be obtained by way of being positioned according to the GPS of mobile terminalThe positional information of mobile phone, the position signalling of oneself is sent to positioning backstage to realize hand using the d GPS locating module on mobile phoneMachine positions.Or when mobile phone connects wifi, position judging module 10 carries out positioning based on wifi network and obtains positional information.
Alternatively, as a kind of embodiment, when storing announcement information in the form of buffer queue, message caching module20 preserve the announcement information of the application detected into buffer queue according to the time sequencing received, meanwhile, it is logical in storageWhen knowing information, classification storage can be carried out according to different applications, and in storage information, deposited according to the form of application requirementStore up the announcement information of the application.
Message notification module 30, for when detecting that the mobile terminal leaves the fence area, acquisition to be stored inNotification message in the spatial cache is simultaneously pushed.
Because mobile phone can obtain positional information in real time, message notification module 30 is detecting mobile phone according to positional informationAfter have left fence area, obtain the notification message being stored in the spatial cache and pushed, be i.e. the notice in mobile phoneColumn or display interface show notification message, it is alternatively possible to push the logical of storage one by one to evening by early according to the time of storageKnow message, or the priority according to application, order from high to low pushes the notification message of each application of storage successively.ItsIn, the priority of application can be pre-set according to demand by user.
Further, it is additionally operable to as a kind of embodiment, message caching module 20:When detecting at the mobile terminalWhen belonging to preset time section in fence area and current time, detect and notice whether is preserved in the spatial cache disappearBreath;
Message notification module 30 is additionally operable to:If the spatial cache preserves notification message, acquisition is stored in described slowDeposit the notification message in space and pushed.
When user is on duty, noon may have one section of time of having a rest, and during this period of time, user can wish that mobile phone can incite somebody to actionThe information for being stored in spatial cache is pushed out coming, and therefore, can preset and set a preset time section, when mobile phone is currently atFence area and when entering the preset time region, notification message that message notification module 30 will be stored in the spatial cacheIt is pushed out coming.
Alternatively, also include as a kind of embodiment, the notification message processing terminal:
Using judge module, for when detecting notification message, judging whether application belongs to corresponding to the notification messageIn default application;
Position judging module 10 is additionally operable to:When detecting notification message, if application belongs to corresponding to the notification messageDefault application, then obtain the current positional information of the terminal, and judge whether the terminal is located at according to the positional informationIn fence area;
Message notification module 30 is additionally operable to:When detecting notification message, if application does not belong to corresponding to the notification messageIn default application, then the announcement information detected is pushed;
Because for some important applications, user may need the instant notification message that gets, such as mailbox,User can receive prompting at once when may wish to new mail.Therefore, in this embodiment, user can be advanceSet need intercept message application, add it in default list of application, for important application can not be put into wherein,Judge module is applied when having detected notification message, first judges whether application corresponding to it is default application, if so, then being blockedCut, if it is not, then direct PUSH message.
Further, the processing terminal of the notification message also includes following:
Message deletion module, the notice of the mobile terminal is pushed to for being deleted from the spatial cacheMessage, to avoid causing the waste of memory space.
The processing terminal for the notification message that the present embodiment proposes, when detecting notification message, obtains the position of mobile terminalConfidence ceases, and judges whether mobile terminal is currently located in fence area according to positional information, if so, notification message is then intercepted, willThe notification message detected is preserved to spatial cache, and is not temporarily pushed to user, when detecting that mobile terminal leaves the fenceDuring with region, then the announcement information cached in control is stored in mobile terminal push, that is to say, that detecting notification messageWhen, it is not direct PUSH message and reminds user, but judge whether mobile terminal is located at fence area, blocked if so, then usingCut and the mode of buffered message, be deferred to mobile terminal and leave after fence sending out notice message again, not timing can either be avoided to disappearLife, work of the breath to user interfere, and user can also be avoided to miss notification message after fence area is left.This sideFormula is only needed to set mobile phone once, it is not necessary to which modification is set repeatedly, while The present invention reduces user to light hand repeatedlyThe frequency that machine is checked, the power consumption problem for alleviating frequent operation intelligent terminal and bringing also extend treating for mobile phone to a certain extentThe machine time.
The second embodiment of the processing terminal of notification message of the present invention is proposed based on first embodiment., should shown in reference picture 4The difference of embodiment and first embodiment is that in the present embodiment, the processing terminal of the notification message also includes:
Time judgment module 40, if being located at for the mobile terminal in the fence area, judgement detects describedWhether the time point of notification message belongs to preset time section;
Message notification module 30 is additionally operable to:Belong to the preset time section when the time point for detecting the notification messageWhen, push the announcement information detected;
Message caching module 20 is additionally operable to:The preset time area is not belonging to when the time point for detecting the notification messageBetween when, intercept the notification message, and the notification message is preserved to preset buffer memory space.
The terminal of the present embodiment sets preset time region as additional interception bar on the basis of first embodimentPart.For example, when being on duty, user may have one section of time of having a rest at noon, and during this period of time, user can wish that mobile phone canThe notification message that instant notice receives, therefore, user can pre-set a preset time section, detect noticeDuring message, even if current phone is in fence area, but detect that the time point of notification message belongs to preset time region, disappearBreath notification module 30 still carries out the prompting of notification message.When detecting notification message, the current position of mobile phone is located at fence areaDomain, and when detecting that time point of the notification message is not belonging to preset time section, message caching module 20 intercepts notification message,And notification message is preserved to preset buffer memory space.
The 3rd embodiment of the processing terminal of notification message of the present invention is proposed based on first embodiment or second embodiment.Shown in reference picture 5, the difference of the embodiment and first embodiment or second embodiment is, in the present embodiment, the noticeThe processing terminal of message also includes:
Fence creation module 50, the positional information and record of the terminal are obtained for timing or in real time, according to defaultThe positional information of record obtains the resident position of the terminal in duration, and creates the fence centered on the resident positionRegion.
The terminal that the present embodiment proposes, there is provided a kind of mobile phone automatically creates the mode of fence area according to certain mechanism,Mobile phone can be concentrated by base station information from the positional information of the acquisition mobile phone of base station side not timing and storage to positional information,After preset duration, such as one week, according to the resident position of the position information set of storage acquisition mobile phone, for example, when mobile phone existsA certain place residence time then thinks that the position is resident position more than certain duration, centered on this resides position, pressesAccording to the size of default fence area, fence area is automatically created.After creating fence area, user can be as needed to creatingOne or more fence area configured, for example, different applications can be intercepted in different fence area, for example,, then can be by residential area when user is not desired to receive mail in residential area if there are working region, residential area etc. in fence areaDomain is arranged to intercept the notification message of mailbox, until leaving the region.
The processing terminal for the notification message that the present embodiment proposes, can be automatically determined out and enclose according to the use habit of userColumn region, it is not necessary to set, brought convenience for user manually.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hairThe equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skillsArt field, is included within the scope of the present invention.