CN107704491A - Message treatment method and device - Google Patents

Message treatment method and device Download PDF

Info

Publication number
CN107704491A
CN107704491A CN201710726992.XA CN201710726992A CN107704491A CN 107704491 A CN107704491 A CN 107704491A CN 201710726992 A CN201710726992 A CN 201710726992A CN 107704491 A CN107704491 A CN 107704491A
Authority
CN
China
Prior art keywords
data
browser
push message
message
push
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
CN201710726992.XA
Other languages
Chinese (zh)
Other versions
CN107704491B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710726992.XA priority Critical patent/CN107704491B/en
Publication of CN107704491A publication Critical patent/CN107704491A/en
Application granted granted Critical
Publication of CN107704491B publication Critical patent/CN107704491B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of message treatment method and device.Wherein, this method includes:Browser obtains the first data of server push;Browser carries out filtration treatment to the first data, obtains the second data, wherein, the data that the second data did not stored for the local of browser;Browser creates the first PUSH message of the second data instruction;Browser shows the first PUSH message.The present invention solves the technical problem that browser can not receive newest PUSH message.

Description

Message treatment method and device
Technical field
The present invention relates to Message Processing field, in particular to a kind of message treatment method and device.
Background technology
At present, with the development of internet, the intelligently pushing message based on user behavior record with user behavior big data Also it is more and more common.For example, having the function of message push in desktop operating system and regular desktop software, net can be passed through Location defines PUSH message, and latest news is fed back into user in the form of message notifying, but is not by browser PUSH message 's.
From the foregoing, the Message Processing of prior art is simply adapted in desktop end with being realized on desktop software, and And the function of only simple latest news push.Intelligent explorer all the time based on client browser B/S frameworks Information push function does not have continuity to come, and browser can not carry out the push of latest news.
The problem of can not receiving newest PUSH message for the browser in above-mentioned correlation technique, not yet propose have at present The solution of effect.
The content of the invention
The embodiments of the invention provide a kind of message treatment method and device, with least solve browser can not receive it is newest The technical problem of PUSH message.
A kind of one side according to embodiments of the present invention, there is provided message treatment method.The message treatment method includes: Browser obtains the first data of server push;Browser carries out filtration treatment to the first data, obtains the second data, its In, the second data are the data that the local of browser did not stored;Browser creates the first PUSH message of the second data instruction; Browser shows the first PUSH message.
Another aspect according to embodiments of the present invention, additionally provide a kind of message processing apparatus.The message processing apparatus bag Include:First acquisition unit, for making browser obtain the first data of server push;Filter element, for making browser pair First data carry out filtration treatment, obtain the second data, wherein, the data that the second data did not stored for the local of browser; Creating unit, for making browser create the first PUSH message of the second data instruction;Display unit, for showing browser First PUSH message.
Another aspect according to embodiments of the present invention, additionally provide a kind of storage medium.The storage medium includes storage Program, wherein, the message treatment method of execution embodiment of the present invention when program is run.
Another aspect according to embodiments of the present invention, additionally provide a kind of electronic installation.The electronic installation include memory, Processor and storage are on a memory and the computer program that can run on a processor, processor are performed by computer program The message treatment method of the embodiment of the present invention.
In embodiments of the present invention, the first data of server push are obtained by browser;Browser is to the first data Filtration treatment is carried out, obtains the second data, wherein, the data that the second data did not stored for the local of browser;Browser is created Build the first PUSH message of the second data instruction;Browser shows the first PUSH message.Due to push of the browser to receiving Data are filtered, and the local data not stored are obtained, using the PUSH message for ensuring to show as latest news, so as to reach Browser receives the technique effect of newest PUSH message, and then solves browser and can not receive the technology of newest PUSH message and ask Topic.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of the hardware environment of message treatment method according to embodiments of the present invention;
Fig. 2 is a kind of flow chart of message treatment method according to embodiments of the present invention;
Fig. 3 is the flow for the method that a kind of browser according to embodiments of the present invention carries out filtration treatment to the first data Figure;
Fig. 4 is the flow chart of another message treatment method according to embodiments of the present invention;
Fig. 5 is the method for the first PUSH message that a kind of browser according to embodiments of the present invention creates the instruction of the second data Flow chart;
Fig. 6 is the flow chart of another message treatment method according to embodiments of the present invention;
Fig. 7 is the flow chart of another message treatment method according to embodiments of the present invention;
Fig. 8 is the flow chart for the method that a kind of browser according to embodiments of the present invention shows the first PUSH message;
Fig. 9 is the flow chart of another message treatment method according to embodiments of the present invention;
Figure 10 is the flow chart of another message treatment method according to embodiments of the present invention;
Figure 11 is a kind of schematic diagram of data source storage according to embodiments of the present invention;
Figure 12 is a kind of schematic diagram of Message Processing structure according to embodiments of the present invention;
Figure 13 is a kind of schematic diagram of the communication means of Message Processing according to embodiments of the present invention;
Figure 14 is the schematic diagram that another browser according to embodiments of the present invention shows PUSH message;
Figure 15 is the schematic diagram that a kind of browser according to embodiments of the present invention shows PUSH message;
Figure 16 is the schematic diagram that another browser according to embodiments of the present invention shows PUSH message;
Figure 17 is a kind of schematic diagram of message processing apparatus according to embodiments of the present invention;And
Figure 18 is a kind of structured flowchart of electronic installation according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
In an embodiment of the invention, there is provided a kind of embodiment of message treatment method.
Alternatively, in the present embodiment, above-mentioned message treatment method can apply to as shown in Figure 1 by server 102 In the hardware environment formed with terminal 104.Fig. 1 is a kind of hardware environment of message treatment method according to embodiments of the present invention Schematic diagram.As shown in figure 1, server 102 is attached by network and terminal 104, above-mentioned network includes but is not limited to:Extensively Domain net, Metropolitan Area Network (MAN) or LAN, terminal 104 are not limited to PC, mobile phone, tablet personal computer etc..At the message of the embodiment of the present invention Reason method can be performed by server 102, can also be performed, be can also be by server 102 and terminal by terminal 104 104 common execution.Wherein, the message treatment method that terminal 104 performs the embodiment of the present invention can also be by mounted thereto Browser performs.
Fig. 2 is a kind of flow chart of message treatment method according to embodiments of the present invention.As shown in Fig. 2 this method can be with Comprise the following steps:
Step S202, browser obtain the first data of server push.
In the technical scheme that the application above-mentioned steps S202 is provided, browser obtains the first data of server push.
In this embodiment, browser initially sets up communication connection with server, can pass through Web Notifications Interface is established with server and communicated.Wherein, Web Notifications interfaces can allow webpage directly to eject on a web browser and disappear Dialog box is ceased, shows web page message, such as, the message push on the Message Processing such as instant messaging, Email website.
After browser and server establish communication connection, browser obtains the first data of server push, and this One propelling data can be the propelling data that application is sent by server to browser, such as, instant messaging application passes through clothes The propelling data that business device is sent to browser, the message pushed for generating server to browser.Browser is by server push The first data sent are put into default data cached pond, the first data in data cached pond can be entered by data thread Row is received and stored, such as, the first data are received and stored by rendering thread.
Step S204, browser carry out filtration treatment to the first data, obtain the second data.
In the technical scheme that the application above-mentioned steps S204 is provided, browser carries out filtration treatment to the first data, obtains To the second data, wherein, the data that the second data did not stored for the local of browser.
After browser and server establish communication connection, script and data source are loaded into advance.Script is information processing Method provides accessible file, and data source uses for script, and the data source can be asked to server in real time by preset protocol Ask and obtain multidirectional data source, such as, by WEBSOCKET agreements in real time to the multidirectional data source of server acquisition request, wherein, WEBSOCKET agreements are that one kind in HTML (HyperText Markup Language, referred to as HTML) is new Agreement, it realizes the full-duplex communication between browser and server, and multidirectional data source can come from information system, automation Management system (Automatic Management System, referred to as AMS), ad system etc., are not limited herein.
After the first data that browser obtains server push, browser carries out filtration treatment to the first data, obtains The second data not stored to the local of browser, the first data can be carried out using above-mentioned data source by data thread Contrast, to carry out filtration treatment to the first data, such as, it will be clicked on before user in the first data, browsed message pair The data filtering answered falls, and obtains the second data, and second data are the latest data that is pushed to browser of server, and then to the Two data are stored.
Alternatively, the browser of the embodiment can exist substantial amounts of task during being communicated with server Backstage Parallel Implementation, such as, when browser is also not received by the propelling data of server, other numbers can be handled from the background According to, when data need renewal, if browser is not received by the operation of user, such as, it is not received by download message Operation, then do not perform operation, after the operation of user is received, operation can be performed, the renewal of data is carried out, subsequently may be used With the PUSH message of the reception server again, and the operation behavior of user is submitted, improve response speed of the front end to PUSH message Degree.
Alternatively, server can analyze the historical viewings record of user, obtain user's information interested, browser connects Data corresponding to user's information interested of server push are received, so as to improve the experience of user, also improve system money The utilization rate in source.
Alternatively, the embodiment realizes that browser enters to the first data by the way that (Local Storage) interface is locally stored Row filtration treatment, the Local Storage interfaces can quickly make browser carry out at filtering the first data without plug-in unit Reason, renders beneficial to webpage, improves the utilization rate of system.
Step S206, browser create the first PUSH message of the second data instruction.
In the technical scheme that the application above-mentioned steps S206 is provided, browser creates the first push of the second data instruction Message.
Filtration treatment is carried out to the first data in browser, after obtaining the second data, browser creates the second data and referred to The first PUSH message shown, first PUSH message can be the notification message of server push, such as, it is server push For the notification message of application program.Browser can construct according to preset function to the second data, such as, pass through notice (Notification) function is constructed, and can construct the title in the first PUSH message, can also be constructed logical for strengthening The option known, such as, icon icon, text body etc., it is not limited herein.
Step S208, browser show the first PUSH message.
In the technical scheme that the application above-mentioned steps S208 is provided, browser shows the first PUSH message.
After the first PUSH message that browser creates the instruction of the second data, browser shows the first PUSH message, one After the PUSH message of denier first is created that, the predeterminated position of the page of browser is displayed immediately on, such as, the lower left corner position of the page Put.The first PUSH message that browser is shown can serve to indicate that the notification message of browser, such as, for indicating browser mesh Before the PUSH message that can effectively use.It can also be and be used to prompt the user whether notification received message, such as, for prompting Whether application program is allowed to be sent a notification message to desktop, user can select " to allow ", " not allowing ", the choosing such as " saying again later " Item is further confirmed that, can also show the PUSH message that user read, the PUSH message that display user does not read Quantity, so as to reach the purpose that browser shows PUSH message, and then improve Consumer's Experience.
By above-mentioned steps S202 to step S208, pass through the first data of browser acquisition server push;Browser Filtration treatment is carried out to the first data, obtains the second data, wherein, the number that the second data did not stored for the local of browser According to;Browser creates the first PUSH message of the second data instruction;Browser shows the first PUSH message.Because browser docks The propelling data received is filtered, and obtains the local data not stored, using the PUSH message for ensuring to show as latest news, The technique effect of newest PUSH message is received so as to reach browser, and then solves browser and can not receive newest push and disappear The technical problem of breath.
As an alternative embodiment, step S204, browser carries out filtration treatment to the first data, obtains second Data include:Browser filters out the data in the 3rd data for being included in and being locally stored from the first data, obtains the second number According to.
Fig. 3 is the flow for the method that a kind of browser according to embodiments of the present invention carries out filtration treatment to the first data Figure.As shown in figure 3, this method comprises the following steps:
Step S301, browser obtain the 3rd data being locally stored of browser.
In the technical scheme that the application above-mentioned steps S301 is provided, browser obtains the be locally stored the 3rd of browser Data.
After the first data that browser obtains server push, browser obtains the 3rd data being locally stored, should 3rd data are the data that are loaded into browser after the communication connection between browser and server is opened, can be based on The data that the historical operation behavior of user obtains, such as, data corresponding to PUSH message that user clicked on, can be to use Data corresponding to certain a kind of message interested of family, it can come from information system, automated management system AMS activity system, wide Data in announcement system, are not limited herein.3rd data can make for the script in the message treatment method of the embodiment With.
Step S302, browser filter out the data being included in the 3rd data from the first data, obtain the second data.
In the technical scheme that the application above-mentioned steps S302 is provided, browser filters out from the first data is included in the Data in three data, obtain the second data.
After the 3rd data being locally stored that browser obtains browser, browser filters switch from the first data The data in the 3rd data are included, obtain the second data, the browser can be by Local Storage interfaces from the first data In filter out the data being included in the 3rd data, can by identify thread postpone deposit in pond will be in the first data include Data filtering in 3rd data falls, and obtains the latest data that server pushes to browser.
The embodiment obtains the 3rd data being locally stored of browser by browser;Browser mistake from the first data The data being included in the 3rd data are filtered, obtain the second data, browser is realized and filtration treatment is carried out to the first data, obtain To the purpose of the second data, browser and then the first PUSH message for creating the instruction of the second data;Browser shows the first push Message, the technique effect of newest PUSH message is received so as to reach browser, so solve browser can not receive it is newest The technical problem of PUSH message.
As an alternative embodiment, in step S301, browser obtains the be locally stored the 3rd number of browser According to before, this method also includes:Browser sends the first request to server;Browser obtains data source, and data source is deposited Store up to the local of browser.
Fig. 4 is the flow chart of another message treatment method according to embodiments of the present invention.As shown in figure 4, this method bag Include following steps:
Step S401, browser send the first request to server.
In the technical scheme that the application above-mentioned steps S401 is provided, be locally stored the of browser is obtained in browser Before three data, browser sends the first request to server, wherein, first asks to include the 3rd for request server transmission The data source of data.
Before the 3rd data being locally stored that browser obtains browser, browser sends first to server please Ask, first request can be used for sending the data source and script for including the 3rd data in advance to server request, so as to browse Device is loaded into data source and script in advance, and the data source uses for the script in the message treatment method of the embodiment.
Alternatively, the data source is multidirectional data source, can come from information system AMS activity system, ad system etc. and is The data source of system, is not limited herein.First, which asks to be used for request server, sends from information system, AMS activity system, wide The data source of the systems such as announcement system.The data source can include the uninterested data of user, for filtering out in the first data The data being included in data source.
Step S402, browser obtains data source, and data source is stored to the local of browser.
In the technical scheme that the application above-mentioned steps S402 is provided, browser obtains data source, and data source is stored To the local of browser.
After browser sends the first request to server, server receives and responds the first request, obtains data source, Data source is sent to browser, browser obtains data source, the engine of data source is parsed, the data in data source are entered Row parsing, and collect the data that parsing obtains, storage is arranged, data source is stored to the local of browser.
Alternatively, in browser gets information system, automated management system AMS activity system, ad system After data, its engine used is parsed, is parsed in information system, automated management system AMS activity system, ad system Data, data are collected, be put in storage by data summarization final finishing, and the parameter by configuring is loaded into, it is multinomial to realize The loading of data source, the data source of the loading can include user clicked on before, data corresponding to browsed message.Its In, configuration parameter can be the information related to data source, such as, the column information of server push, website information etc., herein It is not limited.
The embodiment is by the way that before the 3rd data being locally stored that obtain browser in browser, browser is to server The first request is sent, wherein, first asks to send the data source for including the 3rd data for request server;Browser obtains number According to source, and data source is stored to the local of browser, browser and then filtered out from the first data and is included in data source Data, obtain the second data, create the first PUSH message of the second data instruction;Browser shows the first PUSH message, from And reached browser and received the technique effect of newest PUSH message, and then solve browser and can not receive newest PUSH message Technical problem.
As an alternative embodiment, step S202, the first data that browser obtains server push include:It is clear Device of looking at is obtained by the first data thread and the first data of storage server push;Step S204, browser is to the first data Filtration treatment is carried out, obtaining the second data includes:Browser carries out filtration treatment by the second data thread to the first data, obtains To the second data, wherein, the second data thread is different from the first data thread.
Data thread is a single sequential control flow in program, and more data threads are the same luck in single program The multiple threads of row complete different work.When browser obtains the first data of server push, browser passes through the first number The first data of simultaneously storage server push are obtained according to thread, first data thread can be to render thread, for receiving simultaneously Store the first data.
Alternatively, after unlatching Web Notification communicate between browser and server, rendering thread postpones The first data of server push are stored in deposit data pond.
Filtration treatment is carried out to the first data in browser, when obtaining the second data, browser can pass through the second data Thread carries out filtration treatment to the first data, and second data thread can be identification line journey, for being carried out to the first data What filter processing and push identified shows.Second data thread is different from the first data thread, can cause to the first data Storage and the filtration treatment Parallel Implementation to the first data, solve the problems, such as low side browser show with degraded performance, from And ensure that message treatment method also can be carried out swimmingly in low end machines, improve Consumer's Experience.
The first data that the embodiment is obtained by browser by the first data thread and storage server pushes are with reality Existing browser obtains the first data of server push, and the first data are filtered by the second data thread by browser Processing, the second data are obtained to realize that browser carries out filtration treatment to the first data, obtain the second data, browser and then wound Build the first PUSH message of the second data instruction;Browser shows the first PUSH message, newest so as to reach browser reception The technique effect of PUSH message, and then solve the technical problem that browser can not receive newest PUSH message.
As an alternative embodiment, step S206, browser creates the first PUSH message of the second data instruction Including:Browser is constructed by preset function to the second data, obtains the heading message in the first PUSH message, wherein, Heading message is used for the title for indicating the first PUSH message;And/or browser is constructed by preset function to the second data, The option information in the first PUSH message is obtained, wherein, option information is used to show the first PUSH message.
Fig. 5 is the method for the first PUSH message that a kind of browser according to embodiments of the present invention creates the instruction of the second data Flow chart.As shown in figure 5, this method comprises the following steps:
Step S501, browser are constructed by preset function to the second data, obtain the mark in the first PUSH message Inscribe information.
In the technical scheme that the application above-mentioned steps S501 is provided, browser is carried out by preset function to the second data Construction, obtains the heading message in the first PUSH message, wherein, heading message is used for the title for indicating the first PUSH message.
Filtration treatment is carried out to the first data in browser, after obtaining the second data, browser passes through preset function pair Second data are constructed, and the preset function is to generate the push of server for being constructed to the data of server push The function of message, such as, the preset function is Notifications constructed fuctions.The constructed fuction can be used for construction display Heading message in the second PUSH message, so that the theme of the PUSH message of user's fast explicit first.
Step S502, browser are constructed by preset function to the second data, obtain the choosing in the first PUSH message Item information.
In the technical scheme that the application above-mentioned steps S502 is provided, browser is carried out by preset function to the second data Construction, obtains the option information in the first PUSH message, wherein, option information is used to show the first PUSH message.
Filtration treatment is carried out to the first data in browser, after obtaining the second data, browser passes through preset function pair Second data are constructed, and obtain the option information in the first PUSH message., can for example option information is icon form icons For system icon, software icon etc., this icon extends entitled * .icon, * .ico.Option information can also be text Body, text body are the main bodys of definition document, contain all the elements of document, such as, include text, hyperlink, figure Picture, form and list etc..
The embodiment is constructed by browser by preset function to the second data, is obtained in the first PUSH message Heading message, wherein, heading message is used for the title for indicating the first PUSH message;And/or browser by preset function to Two data are constructed, and obtain the option information in the first PUSH message, wherein, option information is used to show that the first push disappears Breath, the purpose that browser creates the first PUSH message that the second data indicate is realized, browser and then display first, which push, to disappear Breath, the technique effect of newest PUSH message is received so as to reach browser, and then solve browser not receiving newest push away Send the technical problem of message.
As an alternative embodiment, in step S208, after browser shows the first PUSH message, this method is also Including:Browser triggers predeterminable event corresponding with the predetermined registration operation performed to the first PUSH message received.
Fig. 6 is the flow chart of another message treatment method according to embodiments of the present invention.As shown in fig. 6, this method is also Comprise the following steps:
Step S601, browser receive the predetermined registration operation performed to the first PUSH message.
In the technical scheme that the application above-mentioned steps S601 is provided, browser is received to the pre- of the first PUSH message execution If operation.
After browser creates the first PUSH message, browser shows the first PUSH message, browser reception pair immediately The predetermined registration operation that first PUSH message performs.Alternatively, browser receives the predetermined registration operation performed to the first pushed information and included At least one of:Browser receives to be operated to the display that the first pushed information performs, and the display operates to be shown for instruction First pushed information;Browser receives the clicking operation performed to the first pushed information, and the clicking operation is used to indicate that first pushes away Breath of delivering letters is clicked;Browser receives the shutoff operation performed to the first pushed information, and the shutoff operation is used to indicate to close the One pushed information, that is, the first PUSH message exits display.
Step S602, browser trigger predeterminable event corresponding with predetermined registration operation.
In the technical scheme that the application above-mentioned steps S602 is provided, browser triggering default thing corresponding with predetermined registration operation Part, wherein, predeterminable event is used for the current state for tracking the first PUSH message.
After browser receives the predetermined registration operation performed to the first PUSH message, in order to track working as the first PUSH message Preceding state, browser trigger predeterminable event corresponding with predetermined registration operation.Such as when the first PUSH message is displayed to user, Browser triggering display event (show);Click event (click) is triggered when user clicks on the first PUSH message.Push away when first When sending the message to close, browser triggering close event (close);When the first PUSH message makes a mistake, browser triggering is wrong Cause delay part (error), this is triggered when being often as the first PUSH message for some reason and can not show by browser.
After the embodiment in browser by showing the first PUSH message, browser receives to be performed to the first PUSH message Predetermined registration operation, predetermined registration operation be used for track the first PUSH message current state;Browser triggering is corresponding with predetermined registration operation Predeterminable event, so as to reach the purpose of the current state of the first PUSH message of tracking.
As an alternative embodiment, in step S208, after browser shows the first PUSH message, this method is also Including:The local of browser has identification information existing, and in the case of the second PUSH message not shown by browser, It is the first PUSH message to replace the second PUSH message;The local of browser has identification information in presence, and is shown by browser In the case of the second PUSH message crossed, the second PUSH message is closed, and show the first PUSH message.
Fig. 7 is the flow chart of another message treatment method according to embodiments of the present invention.As shown in fig. 7, this method is also Comprise the following steps:
Step S701, browser add identification information to the first PUSH message.
In the technical scheme that the application above-mentioned steps S701 is provided, browser adds mark letter to the first PUSH message Breath.
Browser is in the PUSH message of display server, when the substantial amounts of PUSH message of display server, when substantial amounts of There is user in PUSH message to have checked, or during uninterested PUSH message, can also make user worried, and then influence Consumer's Experience.For example if instant messaging application prompts the user with each incoming message by server, browser shows Show substantial amounts of PUSH message.In order to avoid substantial amounts of PUSH message is paved with desktop, it is necessary to the queue of one message on hold of adapter.
Alternatively, after browser shows the first PUSH message, browser adds identification information to the first PUSH message, The identification information is used for the PUSH message of mark first, and alternatively, identical or of a sort PUSH message have identical mark Know.
Step S702, the second PUSH message of replacement are the first PUSH message.
In the technical scheme that the application above-mentioned steps S702 is provided, the local of browser has identification information in presence, And in the case of the second PUSH message not shown by browser, the second PUSH message of replacement is the first PUSH message.
After browser adds identification information to the first PUSH message, pushed if the forward direction browser of server Second PUSH message also has identical identification information, and second PUSH message is not shown also by browser, then First PUSH message will replace the second PUSH message, can be shown by browser.
Step S703, the second PUSH message is closed, and show the first PUSH message.
In the technical scheme that the application above-mentioned steps S703 is provided, the local of browser has identification information in presence, And in the case of the second PUSH message shown by browser, the second PUSH message is closed, and show the first PUSH message.
After browser adds identification information to the first PUSH message, pushed if the forward direction browser of server Second PUSH message also has identical identification information, and second PUSH message is shown by browser, then closes Two PUSH messages, show the first newest PUSH message.
Alternatively, the PUSH message that browser is shown can be PUSH message caused by application, such as, instant messaging should With caused notification message, then depend on the circumstances, it will having two ways to be apprised of click event, there occurs in the program of application It is not turned off, or in the case of being transferred to backstage, browser can receive a click event, in the case of in addition, Browser can receive a system message.
After the embodiment in browser by showing the first PUSH message, browser is added to the first PUSH message and identified Information;The local of browser has identification information existing, and in the case of the second PUSH message not shown by browser, It is the first PUSH message to replace the second PUSH message;The local of browser has identification information in presence, and is shown by browser In the case of the second PUSH message crossed, the second PUSH message is closed, and shows the first PUSH message, so as to avoid browser Show the effect of substantial amounts of PUSH message.
As an alternative embodiment, step S208, browser shows that the first PUSH message includes:Browser calls And the first PUSH message after predeterminated position display adjustment.
Fig. 8 is the flow chart for the method that a kind of browser according to embodiments of the present invention shows the first PUSH message.Such as Fig. 8 Shown, this method comprises the following steps:
Step S801, browser adjust the first PUSH message, the first PUSH message after being adjusted.
In the technical scheme that the application above-mentioned steps S801 is provided, browser adjusts the first PUSH message, is adjusted The first PUSH message afterwards.
After the first PUSH message that browser creates the instruction of the second data, browser adjusts the first PUSH message, can To pass through HTML HTML, CSS (CascadingStyleSheets, referred to as CSS), literal translation formula pin This language (JavaScript, referred to as JS) adjusts the first PUSH message, the first PUSH message after being adjusted.Wherein, layer Stacking style table CSS it be a kind of to apply HTML or standard generalized markup language for one of performance standard generalized markup language The computer language of the file pattern such as a subset XML, literal translation formula script JS are a kind of regime type, weak type, are based on The language of prototype, built-in support type.
Step S802, browser calls and the first PUSH message after predeterminated position display adjustment.
In the technical scheme that the application above-mentioned steps S802 is provided, browser calls and after predeterminated position display adjustment The first PUSH message.
After browser the first PUSH message of adjustment, the first PUSH message after being adjusted, browser calls, and The first PUSH message after the predeterminated position display adjustment of the page of browser, such as, the first PUSH message that browser is shown The notification message of browser is can serve to indicate that, can also be and be used to prompt the user whether notification received message, such as, it is used for Whether prompting allows application program to be sent a notification message to desktop, can also show the number for the PUSH message that user read Amount, the quantity for the PUSH message do not read, the purpose of PUSH message is shown so as to reach browser, and then improve user Experience.
As an alternative embodiment, in step S208, after browser shows the first PUSH message, this method is also Including:Browser changes the data being locally stored of browser, obtains the 4th data, wherein, the 4th data include the second data, 4th data are used to carry out filtration treatment to the 5th data of server push.
After browser shows the first PUSH message, browser changes the data being locally stored of browser, that is, clear Device data storage according to corresponding to the second rewriting data local Local Storage interfaces is look at, by the second data added to local In the data of storage, the 4th data are obtained, wherein, the second data turn into the history propelling data of server, the first PUSH message As the history PUSH message of server, and then the contrast feedback of the propelling data for subsequent server, and in local friendship When mutual, feedback submits to the relevant information of server.Alternatively, browser obtains the 5th data of server push;It is clear Device of looking at obtains the 4th data being locally stored of browser;Browser filters out from the 5th data to be included in the 4th data Data, the 6th data are obtained, wherein, the data that the 6th data did not stored for the local of browser;Browser creates the 6th number According to the 3rd PUSH message of instruction;Browser shows the 3rd PUSH message, and newest PUSH message is received so as to reach browser Technique effect, and then solve the technical problem that browser can not receive newest PUSH message.
The embodiment by being loaded into data source in advance, by Web Notifications interface real-time capture propelling datas, Contrasted by Local Storage interfaces with local data, propelling data is filtered, rower also is entered to PUSH message Know, realize the purpose that browser shows newest PUSH message, avoid browser and show substantial amounts of PUSH message;The embodiment Coupled system is monitored to submit with data and fed back again, to feed back PUSH message to different user, so as to realize that the message of browser carries Awake function.In addition, the embodiment makes the message treatment method of the embodiment in multiple terminals and across flat by using HTML5 technologies Pushed under platform, Real-time Feedback;It is low with performance that the embodiment solves showing for low side browser using two data threads The problem of lower, so as to ensure that message treatment method also can be carried out swimmingly in low end machines, improve Consumer's Experience;The reality The data feedback of example and the quick obtaining approach of up-to-date information are applied, goes for multiple terminals, including desktop PC ends and movement are eventually The method of the acquisition PUSH message of the browsers such as end equipment.
The embodiment makes to browse by way of Web Notifications interfaces are combined with Local Storage interfaces Device realizes the filtering function to PUSH message, has reached good message push effect, and timely message notifying makes user fast PUSH message is got fastly, so as to improve Consumer's Experience, suitable for the message feedback of multiple terminals, reaches the energy on multiple terminals Enough intelligence rapidly shows the effect of prompting message.
In another embodiment, technical scheme is illustrated with reference to preferred embodiment.
In this embodiment, the smart message push of browser pushes away for the smart message of client browser B/S frameworks Send, for particularly mobile Internet epoch Internet era, there is real-time, intelligently pushing, historical record to screen property Significance.Wherein, message of the historical record screening property for record to push before user, and user is for PUSH message Operation behavior etc..
In view of the importance of the message push in browser end, the embodiment use webpage on the basis of HTML5 technologies Notify Web Notifications interfaces to obtain the propelling data of server, connect using interface Local Storage are locally stored Mouth is loaded into universal news data source in advance, makes to filter propelling data on client browser B/S frameworks, opens up The newest PUSH message that existing server end is sent in real time, and then user feeds back to the PUSH message, such as, click on, look into The operation such as see, mark, so as to obtain the good message feedback of user, improving Consumer's Experience, allow users to receive in time To the latest news of server push, beneficial to the property strengthened of the individual center community under the mobile Internet epoch.
The embodiment is loaded into script and data source in advance, wherein, script is required for the message treatment method of the embodiment File, data source for script use.After script and data are loaded into, propelling data that real-time capture arrives, and number will be pushed Contrasted according to the local data storage for including data source.Alternatively, obtained and serviced by Web Notifications interfaces The propelling data of device, propelling data and the data storage of local are contrasted by Local Storage interfaces, coupled system The user's operation listened to, the submission feedback of data is carried out, is disappeared so as to feed back to the push of different user by HTML5 technologies Breath, realize the prompting message function of desktop.
The embodiment by using HTML5 technologies make browser multiple terminals with it is cross-platform it is lower progress message push, specifically It can be contrasted using the propelling data and the data storage of local of server, to solve the problems, such as historical data filtering, and And the PUSH message indicated by the data after display filtering, feedback of the real-time reception user to the PUSH message.For some not The browser of HTML5 technologies is supported, simply generation plays frame message on the current web page of browser, low to solve low side browser Terminal device show and performance issue, so as to ensure that message push also can be swimmingly carried out in low end machines.
Fig. 9 is the flow chart of another message treatment method according to embodiments of the present invention.As shown in figure 9, this method bag Include following steps:
Step S901, open Web Notifications interface communications.
Web Notifications interface communications are opened between browser and server.The Web Notifications connect Mouth can allow webpage direct Pop-up message dialog box on a web browser, show web page message, such as, instant messaging application, electronics Message push on the Message Processing such as mail website.
Step S902, send ask to server in advance, and be loaded into data source.
After Web Notifications interface communications are opened, browser passes through WebSocket protocol agreements Send and ask to server in real time, WebSocket protocol protocol realizations browser and server full-duplex communication.Should Ask to be used for server acquisition request data source, wherein realizing browser and server full-duplex communication.The data source can From information system, automated management system AMS, ad system etc., not to be limited herein.Server receives the request, and Request is responded, data source is sent to browser.Browser passes through data summarization final finishing after data source is received Storage, the relevant information configured by data source, it is loaded into multidirectional data source and is loaded into script corresponding to data source and data source.
Figure 10 is the flow chart of another message treatment method according to embodiments of the present invention.As shown in Figure 10, this method It is further comprising the steps of:
Step S1001, open Web Notifications interface communications.
Browser establishes Web before the propelling data that the reception server is sent between server Notifications interface communications.
Step S1002, propelling data is stored to cache pool.
After Web Notifications interface communications are opened, the propelling data received is stored in and specified by browser Cache pool in, the buffer pool also be data cached pond.
Step S1003, unlatching render thread.
After the cache pool that browser specifies the propelling data received deposit, open and be used for being responsible for receiving data simultaneously The data thread of storage, thread is rendered that is, opening.
Step S1004, store propelling data.
After unlatching renders thread, propelling data is stored.
Step S1005, open identification thread.
After the cache pool that browser specifies the propelling data received deposit, open for filtering and pushing mark Show the data thread of feedback, that is, opening identification thread.
Alternatively, the browser of the embodiment can exist substantial amounts of task during being communicated with server Backstage Parallel Implementation, such as, when browser is also not received by the propelling data of server, other numbers can be handled from the background According to, when data need renewal, if browser is not received by the operation of user, such as, it is not received by download message Operation, then do not perform operation, after the operation of user is received, operation can be performed, the renewal of data is carried out, subsequently may be used With the PUSH message of the reception server again, and the operation behavior of user is submitted, improve response speed of the front end to PUSH message Degree.
Alternatively, server can analyze the historical viewings record of user, obtain user's information interested, browser connects Data corresponding to user's information interested of server push are received, so as to improve the experience of user, also improve system money The utilization rate in source.
Step S1006, contrast storage.
The propelling data of the server data storage local with browser is contrasted, wrapped with filtering out in propelling data The data in data are locally stored are included, the data after being filtered, and then the data after filtering are stored, realize logarithm According to orientation ratio compared with.
Alternatively, the embodiment is communicated by WebSocket agreements to carry out the data between browser and server, with Real-time Feedback is carried out, realizes local information storage with receiving data filtering contrast by Local Storage interfaces.
Step S1007, confirm the data that data are newest push.
After being stored to the data after filtering, the data that the data after filtering are newest push are confirmed.
Step S1008, style model integration is carried out to the data of newest push, obtains PUSH message.
After confirming data for the data of newest release, the data of newest push carry out style model integration, can adopt The PUSH message indicated by the data of newest release is constructed with Notifications constructed fuctions.This constructed fuction needs one Individual title and some options for being used for strengthening notice for being shown in PUSH message, such as, icon iconic formats are this Icon extends entitled * .icon, * .ico, or text body etc..
Step S1009, ejection is carried out to PUSH message and showed.
Style model integration is carried out in the data to newest release, after obtaining PUSH message, bullet is carried out to PUSH message Go out to show.
Figure 11 is a kind of schematic diagram of data source storage according to embodiments of the present invention.As shown in figure 11, pin is loaded into advance Sheet and data source.The data source of the embodiment is multidirectional data source, the number from information system AMS activity system, ad system According to source.First asks to send the data from systems such as information system, AMS activity system, ad systems for request server Source.After the data of data source of the systems such as information system, AMS activity system, ad system are got, data source is drawn Hold up and parsed, the data in data source are parsed, data are collected, and the parameter by configuring is loaded into, User agrees to that, to realize the loading of multinomial data source in the case of being loaded into, the data source of the loading can include clicking on before user Cross, data corresponding to browsed message.Wherein, configuration parameter can be the information related to data source, such as, server push The column information sent, website information etc., are not limited herein.
Alternatively, the data source includes the uninterested data of user, is included in data for filtering out in the first data Data in source.
Figure 12 is a kind of schematic diagram of Message Processing structure according to embodiments of the present invention.As shown in figure 12, using to connect Receive server PUSH message application program, this application include sending out notice Information frame, the sending out notice Information frame and Push client is connected, for receiving the PUSH message of push client transmissions.Push client and sending out notice message Sending out notice server is connected by the communications protocol between client and server, and the communications protocol can be WebSocket agreements, entered between sending out notice server and Web server by the communications protocol between server and server Row communication.Establish and communicate between push client and sending out notice server, between sending out notice server and Web server In the case of connection, Web server is led to by sending out notice server to push client push latest news, push client The message treatment method of the embodiment of the present invention can be performed by crossing notification message framework, to realize the purpose of the push of latest news.
The PUSH message of server can be notification message, and the embodiment creates after being filtered to propelling data Notification message corresponding to data after filtering, Notifications constructed fuctions can be used to carry out structure to the data after filtering Make.This constructed fuction needs a title and some options for being used for strengthening notice for being used for being shown in notice, such as, Icon iconic formats, or text body.
After once notification message is created out, notification message can be shown immediately.For tracking notifications message Current state, four events are had in Notifications example aspects and are triggered.Such as show events, work as notification message Triggered when being displayed to user;Click events, triggered when user clicks on notification message;Close events, when notification message quilt Triggered during closing;Error events, triggered when notification message makes a mistake, and this be typically notification message for some reason And can not normally it show.
In this embodiment, show that a large amount of notification messages can reduce the experience of user.For example if an instant messaging should With each incoming message is prompted the user with, then the desktop that hundreds of unnecessary notification message is paved with user is had.For The hundreds of unnecessary desktop for notifying to be paved with user is avoided, it is necessary to the queue of one message on hold of adapter.
Therefore, the new notification message for establishment adds a mark.If there is an other notification message also to have There is identical mark, and do not show also, then this new notification message is replaced above-mentioned with same tag Notification message.If an other notification message also has identical mark, and have shown that out, then upper closing is above-mentioned Notification message with same tag, show new notification message.
Figure 13 is a kind of schematic diagram of the communication means of Message Processing according to embodiments of the present invention.As shown in figure 13, it is clear Look between device and server and communicated by WebSocket agreements, browser is when notification message is closed, to server Send and close data frame (Close frame), server, which receives, closes after data frame, responds the closing data, is rung The closing data frame answered, namely, it is allowed to browser closes PUSH message.Server sends the closing data of response to browser Frame, browser closes PUSH message after the closing data frame of the response is received, no longer logical between browser and server WebSocket agreements are crossed to be communicated.
Alternatively, when user clicks on a notification message as caused by application, depend on the circumstances, it will have two ways It is apprised of the generation of click event.If application program is not turned off, or is transferred to backstage, then can receive a click thing Part.In other cases, a system message can be received.
The browser of the embodiment is laminated sample when the content genres push for carrying out notification message shows by HTML/CSS Formula table/JS literal translation formula script adjustment and call notification information.
Figure 14 is the schematic diagram that another browser according to embodiments of the present invention shows PUSH message.As shown in figure 14, The notification message for IE browser of display, such as, the notification message of display is " IE Web Notifications ", can be with It is effective browser at present to show the browser, such as, " Now available for internet Explorer ", from And reached browser and shown the purpose of PUSH message, and then improve Consumer's Experience.
Figure 15 is the schematic diagram that a kind of browser according to embodiments of the present invention shows PUSH message.As shown in figure 15, exist The PUSH message that the predeterminated position display server of browser page is sent, " Do you want mozillademos.org to send you desktop notifications”.In addition, also show for prompting whether allow application program to table Face is sent a notification message, and user can select " Allow ", " Deny ", and " option such as Not Now " is further confirmed that, may be used also To show the quantity of PUSH message that user read, the quantity for the PUSH message do not read, so as to reach browser The purpose of PUSH message is shown, and then improves Consumer's Experience.
Figure 16 is the schematic diagram that another browser according to embodiments of the present invention shows PUSH message.As shown in figure 16, The page of browser shows the PUSH message that user did not read, such as, user was read by the first colour code PUSH message (Notifications) is identified, and first colour code can be grey, pass through the second colour code pair The PUSH message that user does not read is identified, and can identify the PUSH message do not read by high shiny red, and show The quantity of message is not read, such as, it is 10.When user operates to button corresponding to second colour code, you can The PUSH message do not read is viewed, shows the purpose of PUSH message so as to reach browser, and then improve user's body Test.
The embodiment can also notify to change local data thread.User select after and have received server push letter After breath, rewrite local Local Storage and data are locally stored, the contrast that can be used for the data of subsequent server push is anti- Feedback, and feedback submits to the relevant information of server when local interaction, such as, user is submitted to push to server Operation information of message etc..
The embodiment catches push number in real time by being loaded into data source in advance, using Web Notifications interfaces According to, propelling data and local data are contrasted by Local Storage interfaces, realize the filtering to propelling data, and also It can be identified by Local Storage interfaces to data are locally stored, coupled system monitoring users are to PUSH message Operation behavior, carry out data and submit feedback, to feed back PUSH message to different user.The embodiment is by using HTML5 technologies Make it, in multiple terminals and cross-platform lower progress message push, to realize that data double-way differentiates using two data threads, it is anti-in real time Present to solve the problems, such as historical data filtering, the browser of HTML5 technologies is not supported for some, simply in the current of browser On webpage generation play frame message, with solve low side browser low end machines show and performance issue, so as to ensure in low side machine Also message push can be swimmingly carried out on device, good experience is brought for user, quick obtaining PUSH message is realized for user Approach, include desktop PC ends and mobile terminal device etc. suitable for multiple terminals.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
In another embodiment of the invention, a kind of Message Processing for being used to implement above-mentioned message treatment method is additionally provided Device.Figure 17 is a kind of schematic diagram of message processing apparatus according to embodiments of the present invention.As shown in figure 17, the device can wrap Include:First acquisition unit 10, filter element 20, creating unit 30 and display unit 40.
First acquisition unit 10, for making browser obtain the first data of server push.
Filter element 20, for making browser carry out filtration treatment to the first data, the second data are obtained, wherein, second The data that data did not stored for the local of browser.
Creating unit 30, for making browser create the first PUSH message of the second data instruction.
Display unit 40, for making browser show the first PUSH message.
It should be noted that the first acquisition unit 10 in the embodiment can be used for performing in the embodiment of the present application 1 Step S202, the filter element 20 in the embodiment can be used for performing the step S204 in the embodiment of the present application 1, the embodiment In creating unit 30 can be used for performing the step S206 in the embodiment of the present application 1, the display unit 40 in the embodiment can For performing the step S208 in the embodiment of the present application 1.
Alternatively, filter element 20 includes:First acquisition module and the first filtering module.Wherein, the first acquisition module, use The 3rd data being locally stored of browser are obtained in browser;First filtering module, for browser from the first data mistake The data being included in the 3rd data are filtered, obtain the second data.
Alternatively, the device also includes:Transmitting element and second acquisition unit.Wherein, transmitting element, in browser Before the 3rd data being locally stored for obtaining browser, browser is set to send the first request to server, wherein, the first request Being sent for request server includes the data source of the 3rd data;Second acquisition unit, for making browser obtain data source, and Data source is stored to the local of browser.
Alternatively, the first acquisition unit 10 includes:Second acquisition module, for making browser pass through the first data thread Obtain the first data of simultaneously storage server push;Filter element 20 includes:Second filtering module, for making browser by Two data threads carry out filtration treatment to the first data, obtain the second data, wherein, the second data thread and the first data thread It is different.
Alternatively, creating unit 30 includes:First constructing module, for making browser by preset function to the second data Constructed, obtain the heading message in the first PUSH message, wherein, heading message is used for the mark for indicating the first PUSH message Topic;And/or second constructing module, for making browser be constructed by preset function to the second data, obtain the first push Option information in message, wherein, option information is used to show the first PUSH message.
Alternatively, the device also includes:Receiving unit and trigger element.Wherein, receiving unit, for being shown in browser After first PUSH message, browser is set to receive the predetermined registration operation performed to the first PUSH message;Trigger element, for making to browse Device triggers predeterminable event corresponding with predetermined registration operation, wherein, predeterminable event is used for the current state for tracking the first PUSH message.
Alternatively, the device also includes:Adding device, replacement unit and closing unit.Wherein, adding device, for After browser shows the first PUSH message, browser is set to add identification information to the first PUSH message;Replacement unit, for making The local of browser has identification information existing, and in the case of the second PUSH message not shown by browser, replacement Second PUSH message is the first PUSH message;Closing unit, for making the local of browser that there is identification information existing, and by In the case of the second PUSH message that browser was shown, the second PUSH message is closed, and show the first PUSH message.
Alternatively, display unit 40 includes:Adjusting module and display module.Wherein, adjusting module, for adjusting browser Whole first PUSH message, the first PUSH message after being adjusted;Display module, for making browser call and in predeterminated position The first PUSH message after display adjustment.
Alternatively, the device also includes:Unit is changed, after showing the first PUSH message in browser, makes to browse Device changes the data being locally stored of browser, obtains the 4th data, wherein, the 4th data include the second data, the 4th data For carrying out filtration treatment to the 5th data of server push.
The embodiment makes browser obtain the first data of server push by first acquisition unit 10, passes through filtering list Member 20 make browser to the first data carry out filtration treatment, obtain the second data, wherein, the second data for browser local not The data stored, browser is set to create the first PUSH message that the second data indicate by creating unit 30, it is single by showing Member 40 is used to make browser show the first PUSH message, because browser filters to the propelling data received, obtains this The data that ground did not stored, using the PUSH message for ensuring display as latest news, newest push is received so as to reach browser The technique effect of message, and then solve the technical problem that browser can not receive newest PUSH message.
Herein it should be noted that example and application scenarios phase that said units and module are realized with corresponding step Together, but it is not limited to above-described embodiment disclosure of that.It should be noted that above-mentioned module can transport as a part of of device Go in hardware environment as shown in Figure 1, can be realized, can also be realized by hardware by software, wherein, hardware environment bag Include network environment.
In another embodiment of the invention, a kind of electronics dress for being used to implement above-mentioned message treatment method is additionally provided Put.
Figure 18 is a kind of structured flowchart of electronic installation according to embodiments of the present invention.As shown in figure 18, the electronics being somebody's turn to do Device can include:One or more (one is only shown in figure) processors 181, memory 183.Alternatively, as shown in figure 18, The electronic installation can also include transmitting device 185, input-output equipment 187.
Wherein, memory 183 can be used for storage software program and module, such as the message processing in the embodiment of the present invention Programmed instruction/module corresponding to method and device, processor 181 by operation be stored in software program in memory 183 and Module, so as to perform various function application and data processing, that is, realize above-mentioned message treatment method.Memory 183 can wrap Include high speed random access memory, nonvolatile memory can also be included, as one or more magnetic storage device, flash memory or Other non-volatile solid state memories of person.In some instances, memory 183 can further comprise remote relative to processor 181 The memory that journey is set, these remote memories can pass through network connection to electronic installation.The example of above-mentioned network include but It is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 185 is used to data are received or sent via network, can be also used for processor with Data transfer between memory.Above-mentioned network instantiation may include cable network and wireless network.In an example, Transmitting device 185 includes a network adapter (Network Interface Controller, NIC), and it can pass through netting twine It is connected with other network equipments with router so as to be communicated with internet or LAN.In an example, transmission dress It is radio frequency (Radio Frequency, RF) module to put 185, and it is used to wirelessly be communicated with internet.
Wherein, specifically, memory 183 is used to store application program.
Processor 181 can call the application program that memory 183 stores by transmitting device 185, to perform following steps Suddenly:
Browser obtains the first data of server push;
Browser carries out filtration treatment to the first data, obtains the second data, wherein, the second data are the local of browser The data not stored;
Browser creates the first PUSH message of the second data instruction;
Browser shows the first PUSH message.
Processor 181 is additionally operable to perform following step:Browser obtains the 3rd data being locally stored of browser;Browse Device filters out the data being included in the 3rd data from the first data, obtains the second data.
Processor 181 is additionally operable to perform following step:Browser obtain browser the 3rd data being locally stored it Before, browser sends the first request to server, wherein, first asks to send the number for including the 3rd data for request server According to source;Browser obtains data source, and data source is stored to the local of browser.
Processor 181 is additionally operable to perform following step:Browser is obtained by the first data thread and storage server pushes away The first data sent;Browser carries out filtration treatment by the second data thread to the first data, obtains the second data, wherein, Second data thread is different from the first data thread.
Processor 181 is additionally operable to perform following step:Browser is constructed by preset function to the second data, is obtained Heading message in first PUSH message, wherein, heading message is used for the title for indicating the first PUSH message;And/or browser The second data are constructed by preset function, obtain the option information in the first PUSH message, wherein, option information is used for Show the first PUSH message.
Processor 181 is additionally operable to perform following step:After browser shows the first PUSH message, browser reception pair The predetermined registration operation that first PUSH message performs;Browser triggers predeterminable event corresponding with predetermined registration operation, wherein, predeterminable event is used In the current state for tracking the first PUSH message.
Processor 181 is additionally operable to perform following step:After browser shows the first PUSH message, browser is to first PUSH message adds identification information;The local of browser has identification information, and second not shown by browser in presence In the case of PUSH message, the second PUSH message of replacement is the first PUSH message;The local of browser is present with mark letter Breath, and in the case of the second PUSH message shown by browser, the second PUSH message is closed, and show that the first push disappears Breath.
Processor 181 is additionally operable to perform following step:Browser adjusts the first PUSH message, and first after being adjusted pushes away Send message;Browser calls and the first PUSH message after predeterminated position display adjustment.
Processor 181 is additionally operable to perform following step:After browser shows the first PUSH message, browser modification is clear Look at the data being locally stored of device, obtain the 4th data, wherein, the 4th data include the second data, and the 4th data are used for clothes The 5th data that device pushes of being engaged in carry out filtration treatment.
Using the embodiment of the present invention, there is provided a kind of scheme of Message Processing.Server push is obtained by browser First data;Browser carries out filtration treatment to the first data, obtains the second data, wherein, the second data are the sheet of browser The data that ground did not stored;Browser creates the first PUSH message of the second data instruction;Browser shows the first PUSH message. Because browser filters to the propelling data received, the local data not stored are obtained, to ensure the push of display Message is latest news, and the technique effect of newest PUSH message is received so as to reach browser, so solve browser without Method receives the technical problem of newest PUSH message.
Alternatively, the specific example in the present embodiment may be referred to the example described in above-described embodiment, the present embodiment It will not be repeated here.
It will appreciated by the skilled person that the structure shown in Figure 18 is only to illustrate, electronic installation can be intelligence Mobile phone (such as Android phone, iOS mobile phones), tablet personal computer, palm PC and mobile internet device (Mobile Internet Devices, MID), the electronic equipment such as PAD.Figure 18 it does not cause to limit to the structure of above-mentioned electronic installation It is fixed.For example, electronic installation may also include the component more or less than shown in Figure 18 (such as network interface, display device Deng), or there is the configuration different from shown in Figure 18.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To instruct the related hardware of electronic equipment to complete by program, the program can be stored in a computer-readable storage In medium, storage medium can include:Flash disk, read-only storage (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
In another embodiment of the invention, a kind of storage medium is additionally provided.Alternatively, in the present embodiment, it is above-mentioned Storage medium can be used for the program code for performing message treatment method.
Alternatively, in the present embodiment, above-mentioned storage medium can be located at multiple in the network shown in above-described embodiment On at least one network equipment in the network equipment.
Alternatively, in the present embodiment, storage medium is arranged to the program code that storage is used to perform following steps:
Browser obtains the first data of server push;
Browser carries out filtration treatment to the first data, obtains the second data, wherein, the second data are the local of browser The data not stored;
Browser creates the first PUSH message of the second data instruction;
Browser shows the first PUSH message.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Browser obtains clear Look at the 3rd data being locally stored of device;Browser filters out the data being included in the 3rd data from the first data, obtains Second data.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Obtained in browser Before the 3rd data being locally stored of browser, browser sends the first request to server, wherein, first asks to be used to ask Server is asked to send the data source for including the 3rd data;Browser obtains data source, and data source is stored to the sheet of browser Ground.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Browser passes through One data thread obtains and the first data of storage server push;Browser is carried out by the second data thread to the first data Filtration treatment, the second data are obtained, wherein, the second data thread is different from the first data thread.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Browser passes through pre- If the data of function pair second are constructed, the heading message in the first PUSH message is obtained, wherein, heading message is used to indicate the The title of one PUSH message;And/or browser is constructed by preset function to the second data, is obtained in the first PUSH message Option information, wherein, option information be used for show the first PUSH message.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Shown in browser After first PUSH message, browser receives the predetermined registration operation performed to the first PUSH message;Browser triggers and predetermined registration operation Corresponding predeterminable event, wherein, predeterminable event is used for the current state for tracking the first PUSH message.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Shown in browser After first PUSH message, browser adds identification information to the first PUSH message;The local of browser is present with mark Information, and in the case of the second PUSH message not shown by browser, the second PUSH message of replacement is the first PUSH message; The local of browser has identification information existing, and in the case of the second PUSH message shown by browser, closing the Two PUSH messages, and show the first PUSH message.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Browser adjustment the One PUSH message, the first PUSH message after being adjusted;Browser calls and first after predeterminated position display adjustment pushes away Send message.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Shown in browser After first PUSH message, browser changes the data being locally stored of browser, obtains the 4th data, wherein, the 4th data Including the second data, the 4th data are used to carry out filtration treatment to the 5th data of server push.
Alternatively, the specific example in the present embodiment may be referred to the example described in above-described embodiment, the present embodiment It will not be repeated here.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. is various can be with the medium of store program codes.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and is used as independent product Sale or in use, the storage medium that above computer can be read can be stored in.Based on such understanding, skill of the invention The part or all or part of the technical scheme that art scheme substantially contributes to prior art in other words can be with soft The form of part product is embodied, and the computer software product is stored in storage medium, including some instructions are causing one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) perform each embodiment institute of the present invention State all or part of step of method.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment The part of detailed description, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed browser, can be by others side Formula is realized.Wherein, device embodiment described above is only schematical, such as the division of the unit, and only one Kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or Another system is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed it is mutual it Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (15)

  1. A kind of 1. message treatment method, it is characterised in that including:
    Browser obtains the first data of server push;
    The browser carries out filtration treatment to first data, obtains the second data, wherein, second data are described The data that the local of browser did not stored;
    The browser creates the first PUSH message of the second data instruction;
    The browser shows first PUSH message.
  2. 2. according to the method for claim 1, it is characterised in that the browser is carried out at filtering to first data Reason, obtaining second data includes:
    The browser obtains the 3rd data being locally stored of the browser;
    The browser filters out the data being included in the 3rd data from first data, obtains second number According to.
  3. 3. according to the method for claim 2, it is characterised in that obtain being locally stored for the browser in the browser The 3rd data before, methods described also includes:
    The browser sends the first request to the server, wherein, described first asks to be used to ask the server to be sent out Sending includes the data source of the 3rd data;
    The browser obtains the data source, and the data source is stored to the local of the browser.
  4. 4. according to the method for claim 1, it is characterised in that
    First data that the browser obtains the server push include:The browser passes through the first data thread Obtain and store first data of the server push;
    The browser carries out filtration treatment to first data, and obtaining second data includes:The browser passes through Second data thread carries out filtration treatment to first data, obtains second data, wherein, second data thread It is different from first data thread.
  5. 5. according to the method for claim 1, it is characterised in that the browser creates the described of the second data instruction First PUSH message includes:
    The browser is constructed by preset function to second data, obtains the title in first PUSH message Information, wherein, the heading message is used for the title for indicating first PUSH message;And/or
    The browser is constructed by preset function to second data, obtains the option in first PUSH message Information, wherein, the option information is used to show first PUSH message.
  6. 6. method as claimed in any of claims 1 to 5, it is characterised in that show described in the browser After one PUSH message, methods described also includes:
    The browser receives the predetermined registration operation performed to first PUSH message;
    The browser triggers predeterminable event corresponding with the predetermined registration operation, wherein, the predeterminable event is described for tracking The current state of first PUSH message.
  7. 7. method as claimed in any of claims 1 to 5, it is characterised in that show described in the browser After one PUSH message, methods described also includes:
    The browser adds identification information to first PUSH message;
    The local of the browser has the identification information in presence, and the second push not shown by the browser disappears In the case of breath, it is first PUSH message to replace second PUSH message;
    The local of the browser has the identification information, and second push shown by the browser in presence In the case of message, second PUSH message is closed, and show first PUSH message.
  8. 8. method as claimed in any of claims 1 to 5, the browser shows the first PUSH message bag Include:
    The browser adjusts first PUSH message, first PUSH message after being adjusted;
    The browser calls and first PUSH message after predeterminated position display adjustment.
  9. 9. method as claimed in any of claims 1 to 5, it is characterised in that show described in the browser After one PUSH message, methods described also includes:
    The browser changes the data being locally stored of the browser, obtains the 4th data, wherein, the 4th packet Second data are included, the 4th data are used to carry out filtration treatment to the 5th data of the server push.
  10. A kind of 10. message processing apparatus, it is characterised in that including:
    First acquisition unit, for making browser obtain the first data of server push;
    Filter element, for making the browser carry out filtration treatment to first data, the second data are obtained, wherein, institute State the data that the local that the second data are the browser did not stored;
    Creating unit, for making the browser create the first PUSH message of the second data instruction;
    Display unit, for making the browser show first PUSH message.
  11. 11. device according to claim 10, it is characterised in that filter element includes:
    First acquisition module, the 3rd data being locally stored of the browser are obtained for the browser;
    First filtering module, the number being included in the 3rd data is filtered out from first data for the browser According to obtaining second data.
  12. 12. device according to claim 11, it is characterised in that described device also includes:
    Transmitting element, for before the 3rd data being locally stored of the browser acquisition browser, making institute State browser and send the first request to the server, wherein, described first asks to be used to ask the server transmission to include The data source of 3rd data;
    Second acquisition unit, for making the browser obtain the data source, and the data source is stored to described and browsed The local of device.
  13. 13. device according to claim 10, it is characterised in that
    The first acquisition unit includes:Second acquisition module, for making the browser be obtained simultaneously by the first data thread Store first data of the server push;
    The filter element includes:Second filtering module, for making the browser by the second data thread to described first Data carry out filtration treatment, obtain second data, wherein, second data thread and first data thread are not Together.
  14. A kind of 14. storage medium, it is characterised in that the storage medium includes the program of storage, wherein, when described program is run Perform the message treatment method described in any one of claim 1 to 9.
  15. 15. a kind of electronic installation, including memory, processor and it is stored on the memory and can transports on the processor Capable computer program, it is characterised in that the processor performs the claim 1 to 9 times by the computer program Message treatment method described in one.
CN201710726992.XA 2017-08-22 2017-08-22 Message processing method and device Active CN107704491B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710726992.XA CN107704491B (en) 2017-08-22 2017-08-22 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710726992.XA CN107704491B (en) 2017-08-22 2017-08-22 Message processing method and device

Publications (2)

Publication Number Publication Date
CN107704491A true CN107704491A (en) 2018-02-16
CN107704491B CN107704491B (en) 2022-01-04

Family

ID=61170970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710726992.XA Active CN107704491B (en) 2017-08-22 2017-08-22 Message processing method and device

Country Status (1)

Country Link
CN (1) CN107704491B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769069A (en) * 2019-10-30 2020-02-07 许继集团有限公司 Method and device for pushing alarm information

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001002995A1 (en) * 1999-06-30 2001-01-11 Silverbrook Research Pty Ltd Method and system for navigating a history list
CN1529863A (en) * 2001-07-16 2004-09-15 �ʼҷ����ֵ������޹�˾ Personalized filter for web browsing
CN101431484A (en) * 2008-11-24 2009-05-13 阿里巴巴集团控股有限公司 Message transmission method and apparatus
WO2011003986A1 (en) * 2009-07-08 2011-01-13 Ddn Ip Holdings Limited Message handling method and system
US20110247073A1 (en) * 2008-12-08 2011-10-06 FnF Group Pty Ltd System and method for adapting an internet and intranet filtering system
CN102622443A (en) * 2012-03-13 2012-08-01 北京邮电大学 Customized screening system and method for microblog
US20130166517A1 (en) * 2011-12-22 2013-06-27 Magnet Forensics Inc. Systems and methods for locating application specific data
CN103327049A (en) * 2012-03-22 2013-09-25 腾讯科技(深圳)有限公司 Rich content pushing method and system based on browser address bar
CN103399861A (en) * 2013-07-04 2013-11-20 百度在线网络技术(北京)有限公司 Website recommendation method, device and system in website navigation
CN103581249A (en) * 2012-07-31 2014-02-12 腾讯科技(上海)有限公司 Information push method, system and client terminal
US20150081768A1 (en) * 2013-09-16 2015-03-19 Peking University Founder Group Co., Ltd. Server, terminal and data pushing method
CN104778226A (en) * 2015-03-26 2015-07-15 小米科技有限责任公司 Webpage content item shielding method and webpage content item shielding device
CN105827510A (en) * 2016-03-31 2016-08-03 维沃移动通信有限公司 Push message processing method for mobile terminal, and mobile terminal
CN105915612A (en) * 2016-04-19 2016-08-31 北京金山安全软件有限公司 Push message acquisition method, message push method and device
CN106202427A (en) * 2016-07-12 2016-12-07 腾讯科技(深圳)有限公司 Application processing method and device
WO2017012662A1 (en) * 2015-07-22 2017-01-26 Deutsche Telekom Ag A system for providing recommendation information for user device

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001002995A1 (en) * 1999-06-30 2001-01-11 Silverbrook Research Pty Ltd Method and system for navigating a history list
CN1529863A (en) * 2001-07-16 2004-09-15 �ʼҷ����ֵ������޹�˾ Personalized filter for web browsing
CN101431484A (en) * 2008-11-24 2009-05-13 阿里巴巴集团控股有限公司 Message transmission method and apparatus
US20110247073A1 (en) * 2008-12-08 2011-10-06 FnF Group Pty Ltd System and method for adapting an internet and intranet filtering system
WO2011003986A1 (en) * 2009-07-08 2011-01-13 Ddn Ip Holdings Limited Message handling method and system
US20130166517A1 (en) * 2011-12-22 2013-06-27 Magnet Forensics Inc. Systems and methods for locating application specific data
CN102622443A (en) * 2012-03-13 2012-08-01 北京邮电大学 Customized screening system and method for microblog
CN103327049A (en) * 2012-03-22 2013-09-25 腾讯科技(深圳)有限公司 Rich content pushing method and system based on browser address bar
CN103581249A (en) * 2012-07-31 2014-02-12 腾讯科技(上海)有限公司 Information push method, system and client terminal
CN103399861A (en) * 2013-07-04 2013-11-20 百度在线网络技术(北京)有限公司 Website recommendation method, device and system in website navigation
US20150081768A1 (en) * 2013-09-16 2015-03-19 Peking University Founder Group Co., Ltd. Server, terminal and data pushing method
CN104778226A (en) * 2015-03-26 2015-07-15 小米科技有限责任公司 Webpage content item shielding method and webpage content item shielding device
WO2017012662A1 (en) * 2015-07-22 2017-01-26 Deutsche Telekom Ag A system for providing recommendation information for user device
CN105827510A (en) * 2016-03-31 2016-08-03 维沃移动通信有限公司 Push message processing method for mobile terminal, and mobile terminal
CN105915612A (en) * 2016-04-19 2016-08-31 北京金山安全软件有限公司 Push message acquisition method, message push method and device
CN106202427A (en) * 2016-07-12 2016-12-07 腾讯科技(深圳)有限公司 Application processing method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
QING LI等: "Clustering approach for hybrid recommender system", 《PROCEEDINGS IEEE/WIC INTERNATIONAL CONFERENCE ON WEB INTELLIGENCE》 *
韦锐: "基于阅读兴趣的社交网络推荐系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769069A (en) * 2019-10-30 2020-02-07 许继集团有限公司 Method and device for pushing alarm information

Also Published As

Publication number Publication date
CN107704491B (en) 2022-01-04

Similar Documents

Publication Publication Date Title
DE60129412T2 (en) MULTI-MODE GUIDANCE FOR MESSAGE AND ADMINISTRATION
CN106330687B (en) Message treatment method, apparatus and system
DE69635338T2 (en) Method and architecture for an interactive two-way communication network
CN109828903A (en) Automated testing method, device, computer installation and storage medium
CN104253741B (en) A kind of method for sending information, relevant apparatus and system
CN108702389A (en) For being remotely controlled IOT(Internet of Things)The framework of equipment
US20090254616A1 (en) Simultaneous Instant Messaging In Single Window
CN103297528B (en) A kind of method and apparatus obtaining ticket information
EP3192233A1 (en) System and method for recording and recreating interactive user-sessions involving an on-line server
CN109799938A (en) Control display management method, terminal device and computer readable storage medium
CN104601445B (en) Message handling method, device, terminal and server
CN108268332A (en) Webpage abnormality monitoring method, equipment and system
CN108540565A (en) A method of the mobile terminal push based on MQTT agreements and statistics
CN106227780A (en) Automatization's sectional drawing evidence collecting method of a kind of magnanimity webpage and system
CN106406851A (en) Webpage image capture method and system
CN102413068A (en) Cloud computing-based system and method for controlling internet of things terminal device
CN106293355A (en) The method and apparatus that instant messaging window shows
CN106096034A (en) application log management method and device
CN103905597B (en) A kind of method and system of computer control managing VoIP phones
CN106020622A (en) Method and device for collecting emoticons
CN108924030A (en) Electronic device, the method for dynamically configuration message exhibition method and storage medium
CN104065679B (en) The method and client of a kind of remote desktop operation
CN107783807A (en) A kind of method and device of screenshot capture
CN107528767A (en) The treating method and apparatus of session
CN107704491A (en) Message treatment method and device

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