CN107734012A - Information push method, system and computer-readable recording medium - Google Patents

Information push method, system and computer-readable recording medium Download PDF

Info

Publication number
CN107734012A
CN107734012A CN201710903448.8A CN201710903448A CN107734012A CN 107734012 A CN107734012 A CN 107734012A CN 201710903448 A CN201710903448 A CN 201710903448A CN 107734012 A CN107734012 A CN 107734012A
Authority
CN
China
Prior art keywords
push
push message
message
server
browser
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
CN201710903448.8A
Other languages
Chinese (zh)
Other versions
CN107734012B (en
Inventor
倪秉炬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710903448.8A priority Critical patent/CN107734012B/en
Publication of CN107734012A publication Critical patent/CN107734012A/en
Application granted granted Critical
Publication of CN107734012B publication Critical patent/CN107734012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of information push method, including:Browser pushes push-mechanism corresponding to bag based on preset unification, sends PUSH message request to server, so that the server is asked according to the PUSH message, feeds back corresponding PUSH message, wherein, the unification pushes bag and adapts to various different browsers;When receiving the PUSH message of the server feedback, the PUSH message is transferred to corresponding page, to show the PUSH message.The invention also discloses a kind of system and computer-readable recording medium.Present invention reduces the cost of PUSH message push.

Description

Information push method, system and computer-readable recording medium
Technical field
The present invention relates to Internet technical field, more particularly to a kind of information push method, system and computer-readable deposit Storage media.
Background technology
With the development of Internet technology, Push Service has been widely used among client and browser, for Family obtains various PUSH messages at any time.At present, for browser, different browsers correspond to different pushers System, therefore, it is necessary to develop the push bag configured corresponding to various browsers, this undoubtedly make it that development cost is high, namely realizes and push away Send the cost of message higher.Also, because push-mechanism is different, server is in order to be adapted to different browsers, it usually needs logical Cross corresponding third party's service and send PUSH message to realize to browser, and third party's service is typically all to need what is charged. Therefore, in summary, at present, the cost for obtaining PUSH message is higher.
The content of the invention
It is a primary object of the present invention to propose a kind of information push method, system and computer-readable recording medium, purport In the higher technical problem of the cost for solving acquisition PUSH message in the prior art.
To achieve the above object, the invention provides a kind of information push method, applied to browser end, the message pushes away Delivery method includes:
Browser pushes push-mechanism corresponding to bag based on preset unification, and PUSH message request is sent to server, with Asked for the server according to the PUSH message, feed back corresponding PUSH message, wherein, the unified push bag adapts to Various different browsers;
When receiving the PUSH message of the server feedback, the PUSH message is transferred to corresponding page, To show the PUSH message.
Alternatively, it is described to send PUSH message request to server, so that the server please according to the PUSH message Ask, feeding back corresponding PUSH message step includes:
PUSH message request static resource file request corresponding with obtaining the page is merged and sent to the service Device, so that the PUSH message is fed back to the browser by the server together with corresponding static resource Piece file mergence.
Alternatively, it is described to send PUSH message request to server, so that the server please according to the PUSH message The step of asking, feeding back corresponding PUSH message includes:
The PUSH message is asked to merge with invoking server interface requests transmission to the server, for the clothes The PUSH message is fed back to the browser by business device together with the merging of corresponding interface return value.
Alternatively, it is described when receiving the PUSH message of the server feedback, the PUSH message is transmitted Include to corresponding page, the step of to show the PUSH message:
When the PUSH message is to merge PUSH message corresponding to multiple projects, the merging PUSH message is solved Analysis, obtains PUSH message corresponding to each project;
Successively using each project as current project, judge whether the page is opened corresponding to the current project;
If so, PUSH message corresponding to the current project is then transferred to the page, to show the PUSH message.
Alternatively, the browser is sent to server and pushed based on push-mechanism corresponding to preset unified push bag Before the step of message request, in addition to:
Monitor the page operation in the session term of validity of browser;
If not monitoring page operation always in the session term of validity, start default timer, timing performs It is described to send the step of PUSH message is asked to server.
In addition, to achieve the above object, present invention also offers a kind of information push method, applied to server end, institute Stating information push method includes:
Server is receiving PUSH message of the browser based on push-mechanism transmission corresponding to preset unified push bag During request, asked according to the PUSH message, obtain corresponding PUSH message;
The PUSH message is fed back into the browser, so that the browser is when receiving the PUSH message, The PUSH message is transferred to corresponding page, to show the PUSH message.
Alternatively, it is described that the PUSH message is fed back into the browser, for the browser receive it is described During PUSH message, the PUSH message is transferred to corresponding page, included the step of to show the PUSH message:
If the PUSH message is multiple PUSH messages corresponding to multiple projects, the multiple PUSH message is closed And handle;
The multiple PUSH message after merging is fed back into the browser, so that the browser is by the institute after merging State multiple PUSH messages to be parsed, obtain PUSH message corresponding to each project, and successively using each project as working as Preceding project, judge whether the page is opened corresponding to the current project, if so, then by PUSH message corresponding to the current project The page is transferred to, to show the PUSH message.
Alternatively, the server is receiving browser based on push-mechanism transmission corresponding to preset unified push bag PUSH message request when, asked according to the PUSH message, the step of obtaining corresponding PUSH message includes:
In the PUSH message request static resource file corresponding with obtaining the page for receiving the browser transmission During request, the PUSH message and corresponding static resource file are obtained, wherein, the browser is based on the unified push Push-mechanism corresponding to bag, PUSH message request static resource file request corresponding with the acquisition page is merged and sent out Deliver to server;
The described the step of PUSH message is fed back into the browser, includes:
The PUSH message is fed back into the browser together with the static resource Piece file mergence.
Alternatively, the server is receiving browser based on push-mechanism transmission corresponding to preset unified push bag PUSH message request when, asked according to the PUSH message, the step of obtaining corresponding PUSH message includes:
When receiving PUSH message request and the invoking server interface requests that the browser is sent, institute is obtained PUSH message and corresponding interface return value are stated, wherein, the browser is based on pusher corresponding to the unified push bag System, the PUSH message is asked to merge with the invoking server interface requests transmission to server;
The described the step of PUSH message is fed back into the browser, includes:
The PUSH message is fed back into the browser together with interface return value merging.
In addition, to achieve the above object, present invention also offers a kind of message push system, including browser and service Device, wherein:
The browser, for based on push-mechanism corresponding to preset unified push bag, sending and pushing away to the server Message request is sent, wherein, the unified push bag adapts to various different browsers;And receiving the server feedback PUSH message when, show the PUSH message in the browser corresponding page;
The server, for when receiving the PUSH message request that the browser is sent, being pushed away according to described Message request is sent, feeds back corresponding PUSH message.
In addition, to achieve the above object, the present invention also proposes a kind of computer-readable recording medium, described computer-readable Message push products is stored with storage medium, disappearing as described above is realized when the message push products is executed by processor The step of ceasing method for pushing.
Scheme proposed by the present invention, by the preset unified push bag for adapting to various different browsers, browser is based on Push-mechanism corresponding to the unified push bag, sends PUSH message request, server is according to the PUSH message to respective server Request, PUSH message corresponding to acquisition, and browser is fed back to, because all browsers use unified push-mechanism, Server need not be adapted to different browsers again, and PUSH message is sent out to realize to browser by corresponding third party's service , therefore, also avoid the need for buying corresponding third party's service again, so as to save the cost of message push.Also, due to this Unified push bag adapts to various browsers, thus also no longer needs to configure corresponding push bag for various browsers, develops into This is also reduced, and then also further reduces the cost of PUSH message push..
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the terminal for realizing each embodiment of the present invention;
Fig. 2 is a kind of communications network system Organization Chart for realizing each embodiment of the present invention;
Fig. 3 is the schematic flow sheet of information push method first embodiment of the present invention;
Fig. 4 is to disappear in information push method second embodiment of the present invention in the push for receiving the server feedback During breath, the PUSH message is transferred to corresponding page, to show the schematic flow sheet of the PUSH message;
Fig. 5 is the schematic flow sheet of information push method 3rd embodiment of the present invention;
Fig. 6 is the schematic flow sheet of information push method fourth embodiment of the present invention;
Fig. 7 is that the PUSH message is fed back into the browser in the embodiment of information push method the 5th of the present invention, with For the browser when receiving the PUSH message, the PUSH message is transferred to corresponding page, to be pushed away described in display Send the schematic flow sheet of message;
Fig. 8 is the block schematic illustration of message push system of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The solution of the embodiment of the present invention is mainly:Pushed by preset the unified of various different browsers that adapt to Bag, browser are based on the unification and push push-mechanism corresponding to bag, and PUSH message request, server root are sent to respective server Asked according to the PUSH message, PUSH message corresponding to acquisition, and fed back to browser, browser pushes to PUSH message Corresponding page, to show PUSH message.By the technical scheme of the embodiment of the present invention, it is higher to solve acquisition PUSH message cost The problem of.
Reference picture 1, Fig. 1 are a kind of hardware architecture diagram for the terminal for realizing each embodiment of the present invention.
In the present invention, terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can be included such as Mobile phone, tablet personal computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), the mobile terminal such as portable media player (Portable Media Player, PMP), can also include such as digital The terminal of the fixed types such as TV, desktop computer.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Referring to Fig. 1, its hardware architecture diagram for a kind of terminal of each embodiment of the realization present invention, the terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108, storage The parts such as device 109, processor 110, power supply 111.It will be understood by those skilled in the art that the terminal structure shown in Fig. 1 is not The restriction of structure paired terminal, terminal can be included than illustrating more or less parts, either combine some parts or difference Part arrangement.
The all parts of terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and terminal can help user's transceiver electronicses postal by WiFi module 102 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 is shown WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for terminal, can not change as needed completely Become in the essential scope of invention and omit.
Audio output unit 103 can be in call signal reception pattern, call mode, logging mode, language in terminal 100 It is receiving or depositing by radio frequency unit 101 or WiFi module 102 when under the isotypes such as sound recognition mode, broadcast reception mode It is sound that the voice data stored in reservoir 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 may be used also With the specific function provided to terminal 100 performs, related audio output is (for example, call signal receives sound, message sink sound Sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjusts the brightness of display panel 1061, and proximity transducer can close display panel when terminal 100 is moved in one's ear 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three axles) and add The size of speed, size and the direction of gravity are can detect that when static, application (such as the horizontal/vertical screen available for identification mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for mobile phone also Configurable fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, temperature The other sensors such as meter, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produces and set with the user of terminal Put and the input of key signals that function control is relevant.Specifically, user input unit 107 may include contact panel 1071 and its His input equipment 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation (ratio of the user on or near it Such as user is using finger, any suitable object of stylus or annex on contact panel 1071 or near contact panel 1071 Operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detecting apparatus With two parts of touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect what touch operation was brought Signal, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and it is changed Into contact coordinate, then processor 110 is given, and the order sent of reception processing device 110 and can be performed.Furthermore, it is possible to adopt Contact panel 1071 is realized with polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of terminal and output function, but in some embodiments it is possible to will Contact panel 1071 is integrated with display panel 1061 and realizes input and the output function of terminal, does not limit herein specifically.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with terminal 100.It is for example, outside Device can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless number According to port, memory card port, for connecting the port of device with identification module, audio input/output (I/O) port, regarding Frequency I/O ports, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, data are believed Breath, electric power etc.) and one or more elements that the input received is transferred in terminal 100 or can be used at end Data are transmitted between end 100 and external device (ED).
Memory 109 can be used for storage software program and various data.In the present invention, in the memory 109 of terminal 100 It is stored with message push products.Memory 109 can mainly include storing program area and storage data field, wherein, storing program area Can storage program area, application program (such as sound-playing function, image player function etc.) needed at least one function etc.; Storage data field can store uses created data (such as voice data, phone directory etc.) etc. according to mobile phone.In addition, storage Device 109 can include high-speed random access memory, can also include nonvolatile memory, for example, at least a disk storage Device, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of terminal, using various interfaces and the various pieces of the whole terminal of connection, is led to Cross operation or perform the software program and/or module being stored in memory 109, and call and be stored in memory 109 Data, the various functions and processing data of terminal are performed, so as to carry out integral monitoring to terminal.Processor 110 may include one Or multiple processing units;Preferably, processor 110 can integrate application processor and modem processor, wherein, using processing Device mainly handles operating system, user interface and application program etc., and modem processor mainly handles radio communication.It can manage Solution, above-mentioned modem processor can not also be integrated into processor 110.
In the present invention, processor 110 performs the message push products being stored in memory 109, to perform operations described below:
Based on push-mechanism corresponding to preset unified push bag, PUSH message request is sent to server, for described Server is asked according to the PUSH message, feeds back corresponding PUSH message, wherein, the unified push bag adapt to it is various not Same browser;
When receiving the PUSH message of the server feedback, the PUSH message is transferred to corresponding page, To show the PUSH message.
Further, processor 110 performs the message push products being stored in memory 109, also performs following operate:
PUSH message request static resource file request corresponding with obtaining the page is merged and sent to the service Device, so that the PUSH message is fed back to the browser by the server together with corresponding static resource Piece file mergence.
Further, processor 110 performs the message push products being stored in memory 109, also performs following operate:
The PUSH message is asked to merge with invoking server interface requests transmission to the server, for the clothes The PUSH message is fed back to the browser by business device together with the merging of corresponding interface return value.
Further, processor 110 performs the message push products being stored in memory 109, also performs following operate:
When the PUSH message is to merge PUSH message corresponding to multiple projects, the merging PUSH message is solved Analysis, obtains PUSH message corresponding to each project;
Successively using each project as current project, judge whether the page is opened corresponding to the current project;
If so, PUSH message corresponding to the current project is then transferred to the page, to show the PUSH message.
Further, processor 110 performs the message push products being stored in memory 109, also performs following operate:
Monitor the page operation in the session term of validity of browser;
If not monitoring page operation always in the session term of validity, start default timer, regularly to clothes Business device sends PUSH message request.
Terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 can be with It is logically contiguous by power-supply management system and processor 110, so as to by power-supply management system realize management charging, electric discharge, with And the function such as power managed.
Although Fig. 1 is not shown, terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the terminal of the present invention is retouched State.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned terminal hardware structure and communications network system, each implementation of information push method of the present invention is proposed Example.
Reference picture 3, Fig. 3 are the schematic flow sheet of information push method first embodiment of the present invention.
In the first embodiment, the information push method is applied to browser end, comprises the following steps:
Step S10, based on preset unified push bag, PUSH message request is sent to server, for the server Asked according to the PUSH message, feed back corresponding PUSH message, wherein, the unified push bag adapts to various different viewings Device;
Step S20, when receiving the PUSH message of the server feedback, the PUSH message is transferred to pair The page is answered, to show the PUSH message.
In the present invention, in order to reduce message push cost, be provided with a various types that adapt in advance and browse The unified push bag of device, unification push bag refers to program bag, such as JAR bags.The unified push includes server end pair The acquisition message pushing method answered, and the PUSH message side in the return value of resolution server corresponding to client browser Method, wherein, the calling of these methods is all based on java or js versatility code realization.
When the corresponding browser of user's unlatching, the page corresponding to opening respective item, pushed away to obtain corresponding to the page Message is sent, browser is sent PUSH message corresponding to the page and asked based on push-mechanism corresponding to preset unified push bag To respective server.
For server, when receiving the PUSH message request of browser transmission, unified push can be called first Message pushing method is obtained in bag, obtains PUSH message corresponding to PUSH message request, and the PUSH message of acquisition is added Into return value corresponding to PUSH message request, the return value is fed back to browser.
, can first after return value corresponding to the PUSH message request of server feedback is received for browser The message pushing method parsed in unified push bag in return value is called, return value is parsed, corresponding push is obtained and disappears Breath, and PUSH message is transferred to corresponding page, to show PUSH message on this page.
Due to obtaining message pushing method, and resolution server corresponding to client browser corresponding to server end Message pushing method in return value, the calling of these methods is all based on java or js versatility code realization, and takes Enter row data communication between business device and browser and use general http protocol, they need not all be fitted with browser Match somebody with somebody, can compatible various types of browsers.
Therefore, server need not be adapted to different browsers again, by corresponding third party's service, such as GoEasy, PUSH message is sent out to realize to browser, therefore, also avoids the need for buying corresponding third party's service again.
Alternatively, browser can send PUSH message request to server in a variety of situations.It is set forth below Two kinds of browsers send the mode of PUSH message request to server.
1), mode one, for browser when obtaining static resource file corresponding to the page to server, being sent to server should PUSH message is asked.Specifically, in which, the step S10 includes:
Step a, PUSH message request static resource file request corresponding with obtaining the page is merged and sent to institute State server, for the server PUSH message fed back to together with corresponding static resource Piece file mergence it is described clear Look at device.
Generally, after user opens some page based on browser, it is corresponding that browser meeting whereabouts server obtains the page Static resource file.Based on this point, in this approach, when browser will obtain static resource text corresponding to the page to server During part, browser will obtain static resource file request corresponding to the page accordingly and merge transmission to service with PUSH message request Device.
When server receives the PUSH message request static resource text corresponding with obtaining the page of browser merging transmission When part is asked, server is asked according to PUSH message respectively, obtains PUSH message corresponding to the page, and according to the acquisition page pair The static resource file request answered, obtain static resource file corresponding to the page.Afterwards, server by the PUSH message of acquisition with And static resource Piece file mergence feeds back to browser together corresponding to the page.For example, alternatively, server merges PUSH message Browser is fed back to together to static resource tail of file.
2), mode two, browser send PUSH message request in invoking server interface, to server.Specifically, In which, the step S10 includes:
Step b, PUSH message request is merged with invoking server interface requests and sent to the server, for The PUSH message is fed back to the browser by the server together with the merging of corresponding interface return value.
Generally, in each page that browser is opened, the interface of oriented server request, such as HTTP are all included (HyperText Transfer Protocol, HTTP) interface.Based on this point, in this approach, work as browser When will be to server calls interface, corresponding invoking server interface requests be merged transmission extremely by browser with PUSH message request Server.
When server, which receives browser, merges the invoking server interface requests sent with PUSH message request, service Device is asked according to PUSH message respectively, obtains PUSH message corresponding to the page, and according to invoking server interface requests, obtain Corresponding interface return value.Afterwards, the PUSH message of acquisition and interface return value are merged to feed back to together and browsed by server Device.For example, alternatively, PUSH message is merged into interface return value and feeds back to browser together by server.
It is above-mentioned enumerate to server obtain the page corresponding to static resource file when, send the push to server and disappear Breath request, and in invoking server interface, PUSH message request is sent to server, browser need not individually send and push away Message request is sent to server;Similarly, server is by the PUSH message of acquisition static resource Piece file mergence corresponding with the page Browser is fed back to together, or, the PUSH message of acquisition is fed back into browser together with interface return value merging, and do not have to PUSH message is sent out individually to browser, thus, reduce the interaction times between browser and server, disappear so as to improve Cease the efficiency of push.
It should be noted that browser except can by it is above-mentioned enumerate obtained to server it is static corresponding to the page During resource file, PUSH message request is sent to server, or in invoking server interface, send this to server and push away Both modes of message request are sent to send beyond PUSH message request, can also come to send to server by other means The PUSH message is asked, and specifically browser does not limit in the present embodiment to the mode of server transmission PUSH message request System.
The scheme that the present embodiment provides, pass through the preset unified push bag for adapting to various different browsers, browser base In push-mechanism corresponding to the unified push bag, PUSH message request is sent to respective server, server disappears according to the push Breath request, PUSH message corresponding to acquisition, and browser is fed back to, because all browsers use unified pusher System, server need not be adapted to different browsers again, be pushed by corresponding third party's service to realize to send out to browser Message, therefore, also avoid the need for buying corresponding third party's service again, so as to save the cost of message push.Also, by Various browsers are adapted in unification push bag, thus are also no longer needed cumbersomely for the corresponding push of various browsers configuration Bag, development cost reduce, and then also further reduce the cost of PUSH message push.
Further, as shown in figure 4, proposing information push method second embodiment of the present invention.Information push method second The difference of embodiment and information push method first embodiment is, in information push method second embodiment, the step S20 includes:
Step S21, when the PUSH message is to merge PUSH message corresponding to multiple projects, the merging push is disappeared Breath is parsed, and obtains PUSH message corresponding to each project;
Step S22, successively using each project as current project, judge whether the page is beaten corresponding to the current project Open;If so, then perform step S23;If it is not, then perform step S24;
Step S23, PUSH message corresponding to the current project is transferred to the page, to show that the push disappears Breath;
Step S24, terminate the push of PUSH message corresponding to the current project.
In the present embodiment, in order to improve the pushing efficiency of PUSH message, when the PUSH message of user to be pushed to is including more When individual, wherein, the plurality of PUSH message is probably PUSH message corresponding to a project, it is also possible to is pushed away corresponding to multiple projects Message is sent, server merges this multiple PUSH message, then, multiple PUSH messages after merging is fed back to and browsed Device, so as to effectively reduce the push times of PUSH message, improve the pushing efficiency of PUSH message.
When browser receives multiple PUSH messages of the merging of server feedback, multiple PUSH messages of merging are entered Row parsing, obtains each corresponding PUSH message.If the plurality of PUSH message be same project corresponding to PUSH message, sentence Whether the page corresponding to the project of breaking is opened;If so, the plurality of PUSH message then is transferred into the page corresponding to the project, with PUSH message is shown on the page;If it is not, then terminating the push of PUSH message, handled without response.
If the plurality of PUSH message is PUSH message corresponding to multiple projects, successively using each project as currentitem Mesh, judges whether the page corresponding to current project is opened;If so, PUSH message corresponding to current project is then transferred to the page Face, to show PUSH message on this page;If it is not, the push of PUSH message corresponding to current project is then terminated, without sound It should handle.
The scheme that the present embodiment provides, when needing multiple PUSH messages pushing to browser, the plurality of push is disappeared Breath merges push, and browser is parsed the PUSH message of merging when receiving multiple PUSH messages of merging, from And each PUSH message is obtained, and then shown in respective page, complete the push of PUSH message.Because multiple push disappear Breath merges push, effectively reduces the push times of PUSH message, this improves the pushing efficiency of PUSH message.
Further, as shown in figure 5, proposing information push method 3rd embodiment of the present invention.Information push method the 3rd The difference of embodiment and information push method first embodiment or information push method second embodiment is, in message push side In method 3rd embodiment, before the step S10, in addition to:
Step S30, monitor the page operation in the session term of validity of browser;
Step S40, if not monitoring page operation always in the session term of validity, start default timer, Timing performs the step S10.
Due to being typically all that (Transmission Control Protocol are transmitted by TCP between browser and server Control protocol) length is connected into row data communication, and some browsers can prevent the push of TCP length connections, browser has session Inefficacy mechanism, it is corresponding with the corresponding session term of validity, such as half an hour.If user is in the session term of validity without any behaviour To make, then its logging status of browser just fails, and once failed, browser will be unable to receive PUSH message again, so, PUSH message will be caused to be pushed in time, user may miss useful PUSH message.
Therefore, in the present embodiment, in order to obtain the PUSH message from server in time, it is corresponding to pre-set one Timer.Under normal circumstances, the timer does not start.When user opens browser, browser is in after logging status, In the session term of validity of browser, page operation corresponding to browser is monitored, namely monitoring is in the session term of validity, it is clear Whether device of looking at, which has to server, sends PUSH message request, or whether browser has to server transmission acquisition static resource text Part is asked, or whether browser has to server transmission invoking server interface requests etc..If in the session term of validity, prison Corresponding page operation is measured, such as browser has the above-mentioned a certain operation enumerated of execution, then continues to timer and do not open It is dynamic.If all not monitoring corresponding page operation always in the session term of validity, that is, it is not carried out above-mentioned any one enumerated Operation, then start timer, run timing task, regularly send PUSH message request to server.
Afterwards, server and the corresponding operating in browser execution first embodiment or in second embodiment, are pushed The push of message, specific operation process refer to first embodiment or second embodiment, will not be repeated here.Therefore, in this reality Apply in example, after user opens browser, no matter there is page operation in the session term of validity or without page operation, can Ensure to obtain PUSH message in time.
The scheme that the present embodiment provides, by a preset timer, after launching the browser, monitors the session in browser Page operation in the term of validity, if not monitoring page operation always in the session term of validity, start timer, timing performs To server send PUSH message request, so as in time obtain server push PUSH message, it is ensured that PUSH message it is timely Push.
Further, reference picture 6, Fig. 6 are the schematic flow sheet of information push method fourth embodiment of the present invention.
In the fourth embodiment, the information push method is applied to server, comprises the following steps:
Step S50, server are receiving what browser was sent based on push-mechanism corresponding to preset unified push bag When PUSH message is asked, asked according to the PUSH message, obtain corresponding PUSH message;
Step S60, the PUSH message is fed back into the browser, so that the browser is receiving the push During message, the PUSH message is transferred to corresponding page, to show the PUSH message.
In the present invention, be provided with a unified push bag for adapting to various types of browsers in advance, that is, provide One unified code bag, the code bag can realize that various types of browser obtains PUSH message, so, based on clear The various projects that device of looking at is run are integrated in the code bag and used, without going to realize various corresponding push-mechanisms respectively again.
When the corresponding browser of user's unlatching, the page corresponding to opening respective item, pushed away to obtain corresponding to the page Message is sent, browser is sent PUSH message corresponding to the page and asked based on push-mechanism corresponding to preset unified push bag To respective server.
For server, because browser is based on push-mechanism corresponding to unified push bag, sent out to server PUSH message request has been sent, push-mechanism is applied to various types of browser corresponding to the unified push bag, therefore, Server need not be adapted to different browsers again, by corresponding third party's service, such as GoEasy, to realize to browser PUSH message is sent out, therefore, also avoids the need for buying corresponding third party's service again.In the present embodiment, when server receives During the PUSH message request that browser is sent, server can be asked directly according to the PUSH message, and getting the PUSH message please Corresponding PUSH message is sought, namely obtains PUSH message corresponding to the page.Afterwards, server will push corresponding to the page of acquisition Message feedback is to browser.
Alternatively, in one embodiment, the step S50 includes:
Step c, in the PUSH message request static money corresponding with obtaining the page for receiving the browser transmission When source file is asked, the PUSH message and corresponding static resource file are obtained, wherein, the browser is based on the system Push-mechanism corresponding to one push bag, by PUSH message request static resource file request corresponding with the acquisition page Merge and send to server;
The step S60 includes:
Step d, the PUSH message is fed back into the browser together with the static resource Piece file mergence.
Generally, after user opens some page based on browser, it is corresponding that browser meeting whereabouts server obtains the page Static resource file.Based on this point, in this approach, when browser will obtain static resource text corresponding to the page to server During part, browser is based on push-mechanism corresponding to unified push bag, and will obtain static resource file corresponding to the page accordingly please Ask and merge transmission to server with PUSH message request.
When server receives the PUSH message request static resource text corresponding with obtaining the page of browser merging transmission When part is asked, server is asked according to PUSH message respectively, obtains PUSH message corresponding to the page, and according to the acquisition page pair The static resource file request answered, obtain static resource file corresponding to the page.Afterwards, server by the PUSH message of acquisition with And static resource Piece file mergence feeds back to browser together corresponding to the page.For example, alternatively, server merges PUSH message Browser is fed back to together to static resource tail of file.
Alternatively, in another embodiment, the step S50 includes:
Step e, when receiving PUSH message request and the invoking server interface requests that the browser is sent, The PUSH message and corresponding interface return value are obtained, wherein, the browser is based on corresponding to the unified push bag Push-mechanism, the PUSH message is asked to merge with the invoking server interface requests transmission to server;
The step S60 includes:
Step e, the PUSH message is fed back into the browser together with interface return value merging.
Generally, in each page that browser is opened, the interface of oriented server request, such as HTTP interface are all included. Based on this point, in this approach, when browser will be to server calls interface, browser is based on pushing away corresponding to unified push bag Mechanism is sent, corresponding invoking server interface requests are merged into transmission to server with PUSH message request.
When server, which receives browser, merges the invoking server interface requests sent with PUSH message request, service Device is asked according to PUSH message respectively, obtains PUSH message corresponding to the page, and according to invoking server interface requests, obtain Corresponding interface return value.Afterwards, the PUSH message of acquisition and interface return value are merged to feed back to together and browsed by server Device.For example, alternatively, PUSH message is merged into interface return value and feeds back to browser together by server.
It is above-mentioned enumerate to server obtain the page corresponding to static resource file when, send the push to server and disappear Breath request, and in invoking server interface, PUSH message request is sent to server, browser need not individually send and push away Message request is sent to server;Similarly, server is by the PUSH message of acquisition static resource Piece file mergence corresponding with the page Browser is fed back to together, or, the PUSH message of acquisition is fed back into browser together with interface return value merging, and do not have to PUSH message is sent out individually to browser, thus, reduce the interaction times between browser and server, disappear so as to improve Cease the efficiency of push.
Browser is based on push-mechanism corresponding to unified push bag, will when receiving the PUSH message of server feedback PUSH message is transferred to corresponding page, to show PUSH message on this page.
The scheme that the present embodiment provides, pass through the preset unified push bag for adapting to various different browsers, browser base In push-mechanism corresponding to the unified push bag, PUSH message request is sent to respective server, server disappears according to the push Breath request, PUSH message corresponding to acquisition, and browser is fed back to, because all browsers use unified pusher System, server need not be adapted to different browsers again, be pushed by corresponding third party's service to realize to send out to browser Message, therefore, also avoid the need for buying corresponding third party's service again, so as to save the cost of message push.Also, by Various browsers are adapted in unification push bag, thus are also no longer needed cumbersomely for the corresponding push of various browsers configuration Bag, development cost reduce, and then also further reduce the cost of PUSH message push.
Further, as shown in fig. 7, proposing the embodiment of information push method the 5th of the present invention.Information push method the 5th The difference of embodiment and information push method fourth embodiment is, in the embodiment of information push method the 5th, the step S60 includes:
Step S61, if the PUSH message is multiple PUSH messages corresponding to multiple projects, the multiple push is disappeared Breath merges processing;
Step S22, the multiple PUSH message after merging is fed back into the browser, so that the browser will close The multiple PUSH message after and is parsed, and obtains PUSH message corresponding to each project, and successively by each Mesh judges whether the page is opened corresponding to the current project, if so, then by corresponding to the current project as current project PUSH message is transferred to the page, to show the PUSH message.
In the present embodiment, in order to improve the pushing efficiency of PUSH message, when the PUSH message of user to be pushed to is including more When individual, wherein, the plurality of PUSH message is probably PUSH message corresponding to a project, it is also possible to is pushed away corresponding to multiple projects Message is sent, server merges this multiple PUSH message, then, multiple PUSH messages after merging is fed back to and browsed Device, so as to effectively reduce the push times of PUSH message, improve the pushing efficiency of PUSH message.
When browser receives multiple PUSH messages of the merging of server feedback, multiple PUSH messages of merging are entered Row parsing, obtains each corresponding PUSH message.If the plurality of PUSH message be same project corresponding to PUSH message, sentence Whether the page corresponding to the project of breaking is opened;If so, the plurality of PUSH message then is transferred into the page corresponding to the project, with PUSH message is shown on the page;If it is not, then terminating the push of PUSH message, handled without response.
If the plurality of PUSH message is PUSH message corresponding to multiple projects, successively using each project as currentitem Mesh, judges whether the page corresponding to current project is opened;If so, PUSH message corresponding to current project is then transferred to the page Face, to show PUSH message on this page;If it is not, the push of PUSH message corresponding to current project is then terminated, without sound It should handle.
The scheme that the present embodiment provides, will be the plurality of when server needs multiple PUSH messages pushing to browser PUSH message merges push, and browser is carried out the PUSH message of merging when receiving multiple PUSH messages of merging Parsing, so as to obtain each PUSH message, and then is shown in respective page, completes the push of PUSH message.Due to more Individual PUSH message merges push, effectively reduces the push times of PUSH message, and this improves the push of PUSH message effect Rate.
In addition, the embodiment of the present invention also proposes a kind of message push system.
Reference picture 8, Fig. 8 are the block schematic illustration of message push system of the present invention.The message push system of the present invention includes Browser and server, wherein:
The browser, for based on push-mechanism corresponding to preset unified push bag, sending and pushing away to the server Message request is sent, wherein, the unified push bag adapts to various different browsers;And receiving the server feedback PUSH message when, the PUSH message is shown in browser corresponding page;
The server, for when receiving the PUSH message request that the browser is sent, being pushed away according to described Message request is sent, feeds back corresponding PUSH message.
In the present embodiment, message push system is formed by server and browser.In order to reduce message push cost, in advance A unified push bag for adapting to various types of browsers is configured with, unification push bag refers to program bag, such as JAR bags.The unified push includes obtaining message pushing method corresponding to server end, and corresponding to client browser Message pushing method in the return value of resolution server, wherein, the calling of these methods is all based on the general of java or js Code is realized.
When the corresponding browser of user's unlatching, the page corresponding to opening respective item, pushed away to obtain corresponding to the page Message is sent, browser is sent PUSH message corresponding to the page and asked based on push-mechanism corresponding to preset unified push bag To respective server.
For server, when receiving the PUSH message request of browser transmission, unified push can be called first Message pushing method is obtained in bag, obtains PUSH message corresponding to PUSH message request, and the PUSH message of acquisition is added Into return value corresponding to PUSH message request, the return value is fed back to browser.
, can first after return value corresponding to the PUSH message request of server feedback is received for browser The message pushing method parsed in unified push bag in return value is called, return value is parsed, corresponding push is obtained and disappears Breath, and PUSH message is transferred to corresponding page, to show PUSH message on this page.
Due to obtaining message pushing method, and resolution server corresponding to client browser corresponding to server end Message pushing method in return value, the calling of these methods is all based on java or js versatility code realization, and takes Enter row data communication between business device and browser and use general http protocol, they need not all be fitted with browser Match somebody with somebody, can compatible various types of browsers.
Therefore, server need not be adapted to different browsers again, by corresponding third party's service, such as GoEasy, PUSH message is sent out to realize to browser, therefore, also avoids the need for buying corresponding third party's service again.
The scheme that the present embodiment provides, pass through the preset unified push bag for adapting to various different browsers, browser base In push-mechanism corresponding to the unified push bag, PUSH message request is sent to respective server, server disappears according to the push Breath request, PUSH message corresponding to acquisition, and browser is fed back to, because all browsers use unified pusher System, server need not be adapted to different browsers again, be pushed by corresponding third party's service to realize to send out to browser Message, therefore, also avoid the need for buying corresponding third party's service again, so as to save the cost of message push.Also, by Various browsers are adapted in unification push bag, thus are also no longer needed cumbersomely for the corresponding push of various browsers configuration Bag, development cost reduce, and then also further reduce the cost of PUSH message push.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium On be stored with message push products, following operation is realized when the message push products is executed by processor:
Based on push-mechanism corresponding to preset unified push bag, PUSH message request is sent to server, for described Server is asked according to the PUSH message, feeds back corresponding PUSH message, wherein, the unified push bag adapt to it is various not Same browser;
When receiving the PUSH message of the server feedback, the PUSH message is transferred to corresponding page, To show the PUSH message.
Further, following operation is also realized when the message push products is executed by processor:
PUSH message request static resource file request corresponding with obtaining the page is merged and sent to the service Device, so that the PUSH message is fed back to the browser by the server together with corresponding static resource Piece file mergence.
Further, following operation is also realized when the message push products is executed by processor:
The PUSH message is asked to merge with invoking server interface requests transmission to the server, for the clothes The PUSH message is fed back to the browser by business device together with the merging of corresponding interface return value.
Further, following operation is also realized when the message push products is executed by processor:
When the PUSH message is to merge PUSH message corresponding to multiple projects, the merging PUSH message is solved Analysis, obtains PUSH message corresponding to each project;
Successively using each project as current project, judge whether the page is opened corresponding to the current project;
If so, PUSH message corresponding to the current project is then transferred to the page, to show the PUSH message.
Further, following operation is also realized when the message push products is executed by processor:
Monitor the page operation in the session term of validity of browser;
If not monitoring page operation always in the session term of validity, start default timer, regularly to clothes Business device sends PUSH message request.
The scheme that the present embodiment provides, pass through the preset unified push bag for adapting to various different browsers, browser base In push-mechanism corresponding to the unified push bag, PUSH message request is sent to respective server, server disappears according to the push Breath request, PUSH message corresponding to acquisition, and browser is fed back to, because all browsers use unified pusher System, server need not be adapted to different browsers again, be pushed by corresponding third party's service to realize to send out to browser Message, therefore, also avoid the need for buying corresponding third party's service again, so as to save the cost of message push.Also, by Various browsers are adapted in unification push bag, thus are also no longer needed cumbersomely for the corresponding push of various browsers configuration Bag, development cost reduce, and then also further reduce the cost of PUSH message push.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (11)

1. a kind of information push method, applied to browser end, it is characterised in that the information push method includes following step Suddenly:
Browser sends PUSH message request, for institute based on push-mechanism corresponding to preset unified push bag to server State server to be asked according to the PUSH message, feed back corresponding PUSH message, wherein, the unified push bag adapts to various Different browsers;
When receiving the PUSH message of the server feedback, the PUSH message is transferred to corresponding page, with aobvious Show the PUSH message.
2. information push method as claimed in claim 1, it is characterised in that it is described to send PUSH message request to server, So that the server is asked according to the PUSH message, feeding back corresponding PUSH message step includes:
PUSH message request static resource file request corresponding with obtaining the page is merged and sent to the server, with The PUSH message together with corresponding static resource Piece file mergence is fed back into the browser for the server.
3. information push method as claimed in claim 1, it is characterised in that it is described to send PUSH message request to server, So that the server is asked according to the PUSH message, the step of feeding back corresponding PUSH message, includes:
The PUSH message is asked to merge with invoking server interface requests transmission to the server, for the server The PUSH message is fed back into the browser together with the merging of corresponding interface return value.
4. information push method as claimed in claim 1, it is characterised in that described to receive the institute of the server feedback When stating PUSH message, the PUSH message is transferred to corresponding page, included the step of to show the PUSH message:
When the PUSH message is to merge PUSH message corresponding to multiple projects, the merging PUSH message is parsed, Obtain PUSH message corresponding to each project;
Successively using each project as current project, judge whether the page is opened corresponding to the current project;
If so, PUSH message corresponding to the current project is then transferred to the page, to show the PUSH message.
5. the information push method as described in claim any one of 1-4, it is characterised in that the browser is based on preset system Push-mechanism corresponding to one push bag, before sending the step of PUSH message is asked to server, in addition to:
Monitor the page operation in the session term of validity of browser;
If not monitoring page operation always in the session term of validity, start default timer, regularly described in execution The step of PUSH message request being sent to server.
6. a kind of information push method, applied to server end, it is characterised in that the information push method includes following step Suddenly:
Server is receiving PUSH message request of the browser based on push-mechanism transmission corresponding to preset unified push bag When, asked according to the PUSH message, obtain corresponding PUSH message;
The PUSH message is fed back into the browser, so that the browser is when receiving the PUSH message, by institute State PUSH message and be transferred to corresponding page, to show the PUSH message.
7. information push method as claimed in claim 6, it is characterised in that it is described the PUSH message is fed back to it is described clear Look at device, so that the browser is when receiving the PUSH message, the PUSH message is transferred to corresponding page, with display The step of PUSH message, includes:
If the PUSH message is multiple PUSH messages corresponding to multiple projects, the multiple PUSH message is merged into place Reason;
The multiple PUSH message after merging is fed back into the browser, so that the browser will be described more after merging Individual PUSH message is parsed, and obtains PUSH message corresponding to each project, and successively using each project as currentitem Mesh, judge whether the page is opened corresponding to the current project, if so, then by PUSH message transmission corresponding to the current project To the page, to show the PUSH message.
8. information push method as claimed in claim 6, it is characterised in that the server is receiving browser based on pre- During the PUSH message request that push-mechanism corresponding to the unified push bag put is sent, asked according to the PUSH message, obtain phase The step of PUSH message answered, includes:
In the PUSH message request static resource file request corresponding with obtaining the page for receiving the browser transmission When, the PUSH message and corresponding static resource file are obtained, wherein, the browser is based on the unified push bag pair The push-mechanism answered, PUSH message request static resource file request corresponding with the acquisition page is merged and sent extremely Server;
The described the step of PUSH message is fed back into the browser, includes:
The PUSH message is fed back into the browser together with the static resource Piece file mergence.
9. information push method as claimed in claim 6, it is characterised in that the server is receiving the browser base When the PUSH message request that push-mechanism corresponding to preset unified push bag is sent, asked, obtained according to the PUSH message The step of taking corresponding PUSH message includes:
When receiving PUSH message request and the invoking server interface requests that the browser is sent, pushed away described in acquisition Message and corresponding interface return value are sent, wherein, the browser is based on push-mechanism corresponding to the unified push bag, by The PUSH message request merges transmission with the invoking server interface requests to server;
The described the step of PUSH message is fed back into the browser, includes:
The PUSH message is fed back into the browser together with interface return value merging.
A kind of 10. message push system, it is characterised in that the message push system includes browser and server, wherein:
The browser, for based on push-mechanism corresponding to preset unified push bag, sending push to the server and disappearing Breath request, wherein, the unified push bag adapts to various different browsers;And receiving pushing away for the server feedback When sending message, the PUSH message is shown in the browser corresponding page;
The server, for when receiving the PUSH message request that the browser is sent, being disappeared according to the push Breath request, feeds back corresponding PUSH message.
11. a kind of computer-readable recording medium, it is characterised in that be stored with message on the computer-readable recording medium and push away Program is sent, the message push as any one of claim 1 to 5 is realized when the message push products is executed by processor The step of method.
CN201710903448.8A 2017-09-27 2017-09-27 Message pushing method, system and computer readable storage medium Active CN107734012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710903448.8A CN107734012B (en) 2017-09-27 2017-09-27 Message pushing method, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710903448.8A CN107734012B (en) 2017-09-27 2017-09-27 Message pushing method, system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107734012A true CN107734012A (en) 2018-02-23
CN107734012B CN107734012B (en) 2021-06-15

Family

ID=61208983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710903448.8A Active CN107734012B (en) 2017-09-27 2017-09-27 Message pushing method, system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107734012B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110719145A (en) * 2018-07-13 2020-01-21 深圳兆日科技股份有限公司 Method and device for sending read receipt and computer readable storage medium
CN111294369A (en) * 2018-12-06 2020-06-16 阿里巴巴集团控股有限公司 Page request processing method and device and electronic equipment
CN111917811A (en) * 2019-05-10 2020-11-10 北京车和家信息技术有限公司 Message pushing method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100223283A1 (en) * 2007-11-09 2010-09-02 Electronics And Telecommunications Research Institute Apparatus and method for processing query
CN102333128A (en) * 2011-10-31 2012-01-25 河南省电力公司计量中心 Active transmission method for real-time Web data
CN102724324A (en) * 2012-06-28 2012-10-10 用友软件股份有限公司 Information pushing and integrating device and information pushing and integrating method
CN103902616A (en) * 2012-12-28 2014-07-02 腾讯科技(深圳)有限公司 Method, device and system for pushing webpage application messages
US20150356078A1 (en) * 2014-06-06 2015-12-10 Hitachi, Ltd. Storage system, computer system and data migration method
CN105897884A (en) * 2016-04-07 2016-08-24 四川大学 Android mobile phone push platform based on eXtensive messaging presence protocol (XMPP)
CN106412104A (en) * 2016-10-28 2017-02-15 努比亚技术有限公司 Application message pushing device and method
CN106453382A (en) * 2016-10-28 2017-02-22 努比亚技术有限公司 Message pushing method and device
CN106899641A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 The acquisition methods of data resource, server, control device and communication system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100223283A1 (en) * 2007-11-09 2010-09-02 Electronics And Telecommunications Research Institute Apparatus and method for processing query
CN102333128A (en) * 2011-10-31 2012-01-25 河南省电力公司计量中心 Active transmission method for real-time Web data
CN102724324A (en) * 2012-06-28 2012-10-10 用友软件股份有限公司 Information pushing and integrating device and information pushing and integrating method
CN103902616A (en) * 2012-12-28 2014-07-02 腾讯科技(深圳)有限公司 Method, device and system for pushing webpage application messages
US20150356078A1 (en) * 2014-06-06 2015-12-10 Hitachi, Ltd. Storage system, computer system and data migration method
CN106899641A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 The acquisition methods of data resource, server, control device and communication system
CN105897884A (en) * 2016-04-07 2016-08-24 四川大学 Android mobile phone push platform based on eXtensive messaging presence protocol (XMPP)
CN106412104A (en) * 2016-10-28 2017-02-15 努比亚技术有限公司 Application message pushing device and method
CN106453382A (en) * 2016-10-28 2017-02-22 努比亚技术有限公司 Message pushing method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110719145A (en) * 2018-07-13 2020-01-21 深圳兆日科技股份有限公司 Method and device for sending read receipt and computer readable storage medium
CN111294369A (en) * 2018-12-06 2020-06-16 阿里巴巴集团控股有限公司 Page request processing method and device and electronic equipment
CN111294369B (en) * 2018-12-06 2022-06-03 阿里巴巴集团控股有限公司 Page request processing method and device and electronic equipment
CN111917811A (en) * 2019-05-10 2020-11-10 北京车和家信息技术有限公司 Message pushing method and system
CN111917811B (en) * 2019-05-10 2023-08-25 北京车和家信息技术有限公司 Message pushing method and system

Also Published As

Publication number Publication date
CN107734012B (en) 2021-06-15

Similar Documents

Publication Publication Date Title
CN107395858A (en) A kind of reminding method of notification message, terminal and computer-readable recording medium
CN107040543A (en) Single-point logging method, terminal and storage medium
CN107396431A (en) Connect keeping method, connection keeps equipment and computer-readable recording medium
CN107222537A (en) Method, mobile terminal and the storage medium of PUSH message
CN107038245A (en) Page switching method, mobile terminal and storage medium
CN107133302A (en) Realize method, system, terminal and the computer-readable recording medium of data consistency
CN107707450A (en) A kind of method, apparatus and computer-readable recording medium for transmitting file
CN107220050A (en) Adaptive display method, terminal and computer-readable recording medium
CN107181700A (en) Control method, mobile terminal and the storage medium of application program for mobile terminal
CN107679176A (en) It is a kind of to improve using the method for opening speed, terminal, server, computer-readable recording medium
CN107239522A (en) Picture storage method, equipment and computer-readable storage medium
CN107220132A (en) A kind of monitor method, equipment and the storage medium of document creation information
CN109299039A (en) A kind of file management method, equipment and computer readable storage medium
CN107124466A (en) One kind prevents caching penetrating method and device, computer-readable recording medium
CN107124428A (en) A kind of method, equipment and the storage medium of raising VoLTE call successful rates
CN107734012A (en) Information push method, system and computer-readable recording medium
CN110052023A (en) Game control method, mobile terminal and computer readable storage medium
CN109445945A (en) Memory allocation method, mobile terminal, server and the storage medium of application program
CN108900503A (en) Data communications method, communication processing equipment, terminal and readable storage medium storing program for executing
CN107483603A (en) Method, push server, application server and the storage medium of PUSH message
CN107911778A (en) A kind of playback method based on loudspeaker in parallel, mobile terminal and readable storage medium storing program for executing
CN107623788A (en) Using the raising method, apparatus and computer-readable recording medium of toggle speed
CN107204977A (en) Interface security method of calibration and device, computer-readable recording medium
CN106998553A (en) A kind of equipment identities recognition methods, computer equipment and storage medium
CN107103082A (en) Data processing method, client and computer-readable recording medium

Legal Events

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