CN104796473A - Cross-platform information push method and cross-platform information push system - Google Patents
Cross-platform information push method and cross-platform information push system Download PDFInfo
- Publication number
- CN104796473A CN104796473A CN201510190499.1A CN201510190499A CN104796473A CN 104796473 A CN104796473 A CN 104796473A CN 201510190499 A CN201510190499 A CN 201510190499A CN 104796473 A CN104796473 A CN 104796473A
- Authority
- CN
- China
- Prior art keywords
- client
- information
- service end
- subscription
- topic
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols 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)
Abstract
The invention relates to the technical field of communication and provides a cross-platform information push method and a cross-platform information push system. The method includes: a Websocket information channel is established between each client and a server on the basis of a Websocket protocol; the clients send subscription information subjects to the client; the server determines actual customers according to parameter information of the clients and matches corresponding information push modes to push the subscription information subjects. By the aid of a push service APNs (apple push notification service) of an IOS (iphone operation system) client, the server is enabled to push information to clients in different platforms, cross-platform pushing of information accordant with the subscription subjects to android clients, IOS clients and Wed clients can be realized by the server, client access ways are unified, and system coupling is realized conveniently.
Description
Technical field
The present invention relates to communication technical field, particularly relate to a kind of cross-platform information-pushing method and system.
Background technology
The mobile Internet platform of existing use generally comprises the client of android system, the client of IOS system and Web client etc.Along with the fast development of mobile Internet, many application are all faced with needs the client user to different platform, different system to carry out pushed information.Existing information-pushing method is all generally by client automatic regular polling service end solicited message, and for the client of different system, it needs service end to carry out different information pushing mode to realize information pushing, this to mobile client as mobile phone etc. easily increases its power consumption and flow, and client needs automatic regular polling service end, also the power consumption of service end certainly will be increased, moreover the mode of the client requirements access service end of different system is different, and the mode of service end pushed information is also different, this will have a strong impact on the coupling between system.
Summary of the invention
The object of this invention is to provide a kind of cross-platform information-pushing method and system, to overcome the client for different system in correlation technique, its needs carry out different information pushing modes from service end, and between client and service end, power consumption is comparatively large, the problem of system, coupled difference.
On the one hand, the invention provides a kind of cross-platform information-pushing method, comprising:
Between client and service end, sing on web socket agreement sets up Websocket information channel;
Client sends subscription information theme to service end;
Service end determines actual consumer according to the parameter information of client, and matches corresponding information pushing mode and push subscription information theme.
Wherein, described service end determines actual consumer according to the parameter information of client, and match corresponding information pushing mode and propelling movement is carried out to subscription information theme comprise: judge the connection status that client is connected with service end sing on web socket agreement, if sing on web socket agreement is connected between client with service end, then judge that client is in line states, service end sends the information meeting topic of subscription to described client by Websocket information channel.
Wherein, described service end determines actual consumer according to the parameter information of client, and match corresponding information pushing mode and subscription information theme is pushed also comprise: judge the connection status that client is connected with service end sing on web socket agreement, if do not have sing on web socket agreement to be connected between client with service end, then judge that client is in off-line state, the propelling movement mode needs client push to off-line state being met to topic of subscription information are determined according to audient's type of client.
Wherein, client push from the propelling movement mode needs to off-line state being met to topic of subscription information are determined to comprise according to audient's type of client: be Android system client and Wed client for audient's type, after client sends topic of subscription information to service end and when being in off-line state, service end preserves a period of time by sending the information meeting topic of subscription, after treating that client is connected to service end next time, the information pushing meeting topic of subscription that service end is about to preserve is to client.
Wherein, client push from the propelling movement mode needs to off-line state being met to topic of subscription information are determined also to comprise according to audient's type of client: be that the client of IOS system is after service end transmission topic of subscription information and when being in off-line state for audient's type, service end uses deviceToken that the information meeting topic of subscription is sent to APNs, and the information meeting topic of subscription is sent to the client of IOS system by APNs.
Wherein, described APNs also comprises when the information meeting topic of subscription is sent to the client of IOS system: on client informing, show topic of subscription information, person to be consumed clicks after informing opens application, and client and service end are connected with regard to establishing Websocket agreement the information meeting topic of subscription is sent to consumer.
Wherein, according to the parameter information of client, described service end determines that actual consumer comprises: service end is according to subscription another name, label information, the subscription information subject content of client, subscribe message is made a summary, and audient's type, presence determine actual consumer.
On the other hand, the present invention also provides a kind of cross-platform information transmission system, and described system comprises client and service end, and between described client and service end, sing on web socket agreement sets up Websocket information channel; Described client sends subscription information theme to service end;
Described service end comprises information pushing unit, for determining actual consumer according to the parameter information of client, and matches corresponding information pushing mode and pushes subscription information theme.
Wherein, described service end also comprises: connection status judging unit, for judging the connection status that client is connected with service end sing on web socket agreement;
If sing on web socket agreement is connected between client with service end, then judge that client is in line states, service end sends the information meeting topic of subscription to all clients by Websocket information channel;
If do not have sing on web socket agreement to be connected between client with service end, then judge that client is in off-line state, the propelling movement mode needs client push to off-line state being met to topic of subscription information are determined according to audient's type of client.
Wherein, described service end also comprises:
Parameter determination unit, for determining audient's type of client parameter;
Information holding unit, preserves a period of time for server by the information meeting topic of subscription sent to the client being in off-line state.
The present invention at least has following beneficial effect: in a kind of cross-platform information-pushing method provided in the embodiment of the present invention and system, between client and service end, Websocket information channel is set up by sing on web socket agreement, service end determines actual consumer according to the parameter information of client, and match corresponding information pushing mode subscription information theme is pushed, unified the access way of client, convenient realization communicates with client.
The Push Service APNs that the embodiment of the present invention self has by IOS system client, thus achieve service end and simultaneously can realize information pushing to the client of different platform, service end like this achieves simultaneously and pushes to cross-platform Android system client, IOS system client and Wed client the information meeting topic of subscription, unify the access way of client, conveniently achieve the coupling between system.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the present invention.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of cross-platform information-pushing method embodiment one of the present invention;
Fig. 2 is the information pushing mode flow chart that in the embodiment of the present invention one, service end realizes;
Fig. 3 is the flow chart of a kind of cross-platform information-pushing method embodiment two of the present invention;
Fig. 4 is the information pushing mode flow chart that in the embodiment of the present invention two, service end realizes;
Fig. 5 is the structured flowchart of a kind of cross-platform information transmission system embodiment three of the present invention.
Embodiment
Below in conjunction with Figure of description, the preferred embodiments of the present invention are described, be to be understood that, preferred embodiment described herein is only for instruction and explanation of the present invention, be not intended to limit the present invention, and when not conflicting, the embodiment in the present invention and the feature in embodiment can combine mutually.
The embodiment of the present invention provides a kind of cross-platform information-pushing method and system, is particularly useful for the information pushing between the client of cross-platform in mobile Internet communication field, different system and service end.
Embodiment one:
Refer to Fig. 1, a kind of cross-platform information-pushing method embodiment one of the present invention comprises the following steps:
S10, between client and service end, sing on web socket agreement sets up Websocket information channel.
Particularly, between client and service end, Websocket information channel is set up by Websocket agreement, because Websocket agreement can realize the full-duplex communication between client and service end, therefore in the situation not needing clients poll request service end, service end also can according to demand initiatively to client push information.When keeping client to be connected with the length of service end by Websocket agreement, except there being the consumption just having power consumption and flow when information pushing therebetween, and when there is no data information transfer, therebetween regular length head bag only needs by a few bytes as 1 ~ 2 byte just can keep heartbeat to connect, the network bandwidth takies seldom, can effectively reduce power consumption and flow.
In the present embodiment, when sing on web socket agreement sets up Websocket information channel between client and service end, client and service end only need to adopt http to shake hands when just starting to connect, just form a Websocket information channel afterwards, thus sing on web socket mode between client and service end, just can be adopted to carry out the mutual transmission of information.
In the present embodiment, client is when sending connection request to service end, the information such as the unique identification information of client, another name, label, audient's type, IOS client device Token and presence situation are sent to service end simultaneously, service end receive client described relevant information after and described information is preserved.
Particularly, client-requested main protocol of shaking hands is as follows:
Wherein identity is client identity mark;
Service end is shaken hands, and to return main protocol head as follows:
Response Headers view source
Connection:Upgrade
Sec-WebSocket-Accept:QcpNdjltpSCdlq/GRw+4Of8WobY=
Sec-WebSocket-Extensions:permessage-deflate
Upgrade:WebSocket
S12, client send subscription information theme to service end.
Particularly, after client and service end successfully set up Websocket connection protocol, client sends the corresponding message subject of subscription according to the interested information content of user to service end.As initiated to subscribe to another name, label information in Websocket agreement: ' alias':'gsy', ' tags':['test'] or subscription information subject content, subscribe message is made a summary, the informations parameter such as audient's type (as FTP client FTP type).
Example one asks connection as follows:
/ push.do? your good & receiver_type=2 & receiver_value=gsy of msg_content=
Wherein receiver_type is audient's type, and the implication of receiver_type value 1,2,3 is respectively: 1 represents whole audient, 2 represent label audient, as arranged certain tag name, 3 represent another name audient, as another name is set to Android system client, Wed client or IOS system client.In this example, audient's type is label audient.
Receiver_value is concrete label value, multiple CSV, and in this example, label value is " gsy ".
Msg_content is then subscription information subject content, and in this example, subscription information subject content is " hello ".
S14, service end determine actual consumer according to the parameter information of client, and match corresponding information pushing mode and push subscription information theme.
Particularly, when determining the consumer of actual client, because client is when setting up Websocket information channel with service end, service end has the relevant parameter information of preserving client, service end is according to subscription another name, label information, the subscription information subject content in the client parameter information preserved, subscribe message is made a summary, and audient's type, online situation determine actual consumer.In the present embodiment, service end, according to audient's type of client and concrete label value, is screened and determines actual consumer from client.Filter out label value for the consumer of " gsy " to push the information of topic of subscription " hello " as asked the process of connection server in example one.
Refer to Fig. 2, the information pushing mode that service end realizes specifically comprises the steps:
S140, judge the connection status that client is connected with service end sing on web socket agreement, namely judge whether sing on web socket agreement is connected for client and service end, if be that sing on web socket agreement is connected between client with service end, then judge that client is in line states, perform step S142; Otherwise, be off-line state depending on client, perform S144.
S142, service end send the information meeting topic of subscription to described client by Websocket information channel.
Particularly, confirm that all clients be connected with service end sing on web socket agreement are all in line states, then represent that service end can be sent to the consumer of described client by Websocket information channel and meet the information of topic of subscription, namely service end can meet the information of topic of subscription simultaneously to Android system client, IOS system client and Wed client push.
S144, the propelling movement mode needs client push to off-line state being met to topic of subscription information are determined according to audient's type of client.
Particularly, be Android system client and Wed client for audient's type, after client sends topic of subscription information to service end and be in off-line state, now service end preserves a period of time by sending the information meeting topic of subscription, after treating that client is connected to service end next time, the information pushing meeting topic of subscription that service end is about to preserve is to client.
Be after the client of IOS system sends topic of subscription information to service end for audient's type and be in off-line state, when namely not setting up Websocket information channel with service end, service end uses deviceToken (device identifier) information meeting topic of subscription to be sent to APNs (because apple carries Push Service APNs), the information meeting topic of subscription is sent to the client (as i Phone) of IOS system by APNs, can first show on client (as i Phone) informing simultaneously, person to be consumed clicks after informing opens application, now client and service end just establish Websocket agreement and are connected, so the information meeting topic of subscription is being sent to consumer.In the present embodiment, do not adopt always and push information to consumer by APNs, mainly because APNs has many restrictions, the entire length pushing message as the APNs below IOS8 system version requires to be less than 255 bytes, and IOS system equipment with APNs suspension during also can only retain up-to-date information, if so carry out information pushing with APNs and IOS system equipment completely in whole information pushing process, can information drop-out be caused, therefore the embodiment of the present invention is creationary in IOS system client have employed the propelling movement that the propelling movement mode combined by both Websocket+APNs realizes information.
S16, client receive the described information meeting topic of subscription.
Relative to the client for different system in prior art, its needs carry out different information pushing modes from service end, the embodiment of the present invention sets up Websocket information channel by sing on web socket agreement between client and service end, and by the Push Service APNs that IOS system client has self, thus achieve service end and simultaneously can realize information pushing to the client of different platform, service end like this achieves cross-platform Android system client simultaneously, IOS system client and Wed client carry out pushing the information meeting topic of subscription, unify the access way of client, convenient realization communicates with client, also the coupling between system is conveniently achieved.
Embodiment two
Refer to Fig. 3, it is the second embodiment of the cross-platform information-pushing method of the present invention, comprise customer end A, customer end B, client C and service end, the operating system of customer end A, customer end B, client C can be any one in Android system, Wed or IOS system, is not construed as limiting in actual applications.Information-pushing method cross-platform described in the present embodiment comprises the following steps:
S30, customer end A, customer end B, client C set up Websocket information channel with service end sing on web socket agreement respectively.
S32, customer end A, customer end B, client C send subscription information theme respectively to service end.
Particularly, after customer end A, customer end B, client C and service end successfully set up Websocket connection protocol, customer end A, customer end B, client C send subscription information theme according to the interested information content of user to service end.As initiated to subscribe to another name, subscription information subject content in Websocket agreement, subscribe message is made a summary, the informations parameter such as audient's type (as FTP client FTP type).Wherein, audient's type, can be expressed as: 1 whole audient, 2 label audients, and as arranged certain tag name, 3 another name audients, as another name is set to Android system client, Wed client or IOS system client.
S34, service end determine actual consumer according to the parameter information of customer end A, customer end B, client C, and match corresponding information pushing mode and push subscription information theme.
Refer to Fig. 4, the information pushing mode that service end realizes specifically comprises the steps:
S340, judge the connection status that customer end A, customer end B, client C are connected with service end sing on web socket agreement respectively, if customer end A, between B, C with service end, equal sing on web socket agreement is connected, then judge customer end A, B, C be all in line states, perform step S342; If be connected with there is no sing on web socket agreement between service end in customer end A, B, C, then judge that the client be not connected with service end sing on web socket agreement is considered as off-line state, performs S344.
S342, service end to be sent to the consumer of described customer end A, B, C by Websocket information channel and meet the information of topic of subscription.
Particularly, the described customer end A that confirmation is connected with service end sing on web socket agreement, B, C are all in line states, then represent that service end can be sent to the consumer of described customer end A, B, C by Websocket information channel and meet the information of topic of subscription, namely service end can meet the information of topic of subscription simultaneously to Android system client or IOS system client or Wed client push.
S344, the propelling movement mode needs client push to off-line state being met to topic of subscription information are determined according to audient's type of client.
Particularly, if be Android system client and Wed client for audient's type in customer end A, B, C, after client sends topic of subscription information to service end and be in off-line state, now service end preserves a period of time by sending the information meeting topic of subscription, after treating that client is connected to service end next time, the information pushing meeting topic of subscription that service end is about to preserve is to client.
For customer end A, B, if audient's type is after the client of IOS system sends topic of subscription information to service end and is in off-line state in C, when namely not setting up Websocket information channel with service end, service end uses deviceToken (device identifier) information meeting topic of subscription to be sent to APNs (because apple carries Push Service APNs), the information meeting topic of subscription is sent to the client (as i Phone) of IOS system by APNs, can first show on client (as i Phone) informing simultaneously, person to be consumed clicks after informing opens application, now client and service end just establish Websocket agreement and are connected, so again the information meeting topic of subscription is sent to consumer.In the present embodiment, do not adopt always and push information to consumer by APNs, mainly because APNs has many restrictions, the entire length pushing message as the APNs below IOS8 system version requires to be less than 255 bytes, and IOS system equipment with APNs suspension during also can only retain up-to-date information, if so carry out the information pushing with IOS system equipment with APNs completely in whole information pushing process, can information drop-out be caused, therefore the embodiment of the present invention is creationary in IOS system client have employed the propelling movement that the propelling movement mode combined by both Websocket+APNs realizes information.
S36, customer end A, B, C receive the described information meeting topic of subscription.
Accordingly, embodiment of the present invention service end can realize carrying out information pushing to multiple clients of any system platform, particularly multiple clients of cross-platform type are met to the information pushing of topic of subscription simultaneously, the access way unifying client like this, convenient realization communicates with client, also achieves the coupling between different system platform.
Embodiment three
Refer to Fig. 5, it is the structured flowchart of a kind of cross-platform information transmission system of the present invention, comprises client 100, service end 200.Between described client 100 and service end 200, sing on web socket agreement sets up Websocket information channel.
Described client 100 sends subscription information theme to service end 200.
Particularly, client 100 and service end 200 successfully connect after agreement, and client 100 sends the corresponding message subject of subscription according to the interested information content of user to service end 200.As initiated to subscribe to another name, subscription information subject content in Websocket agreement, subscribe message is made a summary, the informations parameter such as audient's type (as FTP client FTP type).Wherein, audient's type, can be expressed as: 1 whole audient, 2 label audients, and as arranged certain tag name, 3 another name audients, as another name is set to Android system client, Wed client or IOS system client.
Described service end 200 comprises information pushing unit 201, connection status judging unit 202, parameter determination unit 203 and information holding unit 204.Described client 100 comprises information receiving unit 110, for receiving the described information meeting topic of subscription that service end 200 sends.
Described information pushing unit 201, for determining actual consumer according to the parameter information of client, and matches corresponding information pushing mode and pushes subscription information theme.
Particularly, when determining the consumer of actual client, because client is when setting up Websocket information channel with service end, service end has the relevant information of preserving client, service end, according to the audient's type in the client-side information preserved and concrete label value, is screened and determines actual consumer from client.
Described connection status judging unit 202, for judging the connection status that client is connected with service end sing on web socket agreement.
Particularly, if judge that between client with service end, sing on web socket agreement is connected, then judge that client is in line states, service end sends the information meeting topic of subscription to all clients by Websocket information channel; If do not have sing on web socket agreement to be connected between client with service end, then judge that client is in off-line state, the propelling movement mode needs client push to off-line state being met to topic of subscription information are determined according to audient's type of client.
Described parameter determination unit 203, for determining audient's type of client 100 parameter.
Particularly, judge that client 100 audient type is Android system client, Wed client or IOS system client.
Described information holding unit 204, preserves a period of time for server 200 by the information meeting topic of subscription sent to the client 100 being in off-line state.
Particularly, be Android system client and Wed client for audient's type, after client sends topic of subscription information to service end and be in off-line state, now service end preserves a period of time by sending the information meeting topic of subscription, after treating that client is connected to service end next time, service end by the information pushing meeting topic of subscription preserved to client.
Be after the client of IOS system sends topic of subscription information to service end for audient's type and be in off-line state, when namely not setting up Websocket information channel with service end, service end uses deviceToken (device identifier) information meeting topic of subscription to be sent to APNs (because apple carries Push Service APNs), the information meeting topic of subscription is sent to the client (as i Phone) of IOS system by APNs, can first show on client (as i Phone) informing simultaneously, person to be consumed clicks after informing opens application, now client and service end just establish Websocket agreement and are connected, so again the information meeting topic of subscription is sent to consumer.
Embodiment of the present invention sing on web socket agreement sets up Websocket information channel between client and service end, and by the Push Service APNs that IOS system client has self, thus achieve service end and simultaneously can realize information pushing to the client of different platform, service end like this achieves cross-platform Android system client simultaneously, IOS system client and Wed client carry out pushing the information meeting topic of subscription, unify the access way of client, convenient realization communicates with client, also achieve the coupling between different system.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce system for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command system, and this command system realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
Claims (10)
1. a cross-platform information-pushing method, is characterized in that, comprising:
Between client and service end, sing on web socket agreement sets up Websocket information channel;
Client sends subscription information theme to service end;
Service end determines actual consumer according to the parameter information of client, and matches corresponding information pushing mode and push subscription information theme.
2. method according to claim 1, it is characterized in that, described service end determines actual consumer according to the parameter information of client, and match corresponding information pushing mode and propelling movement is carried out to subscription information theme comprise: judge the connection status that client is connected with service end sing on web socket agreement, if sing on web socket agreement is connected between client with service end, then judge that client is in line states, service end sends the information meeting topic of subscription to described client by Websocket information channel.
3. method according to claim 1 and 2, it is characterized in that, described service end determines actual consumer according to the parameter information of client, and match corresponding information pushing mode and subscription information theme is pushed also comprise: judge the connection status that client is connected with service end sing on web socket agreement, if do not have sing on web socket agreement to be connected between client with service end, then judge that client is in off-line state, client push from the propelling movement mode needs to off-line state being met to topic of subscription information are determined according to audient's type of client.
4. method according to claim 3, it is characterized in that, client push from the propelling movement mode needs to off-line state being met to topic of subscription information are determined to comprise according to audient's type of client: be Android system client and Wed client for audient's type, after client sends topic of subscription information to service end and when being in off-line state, service end preserves a period of time by sending the information meeting topic of subscription, after treating that client is connected to service end next time, service end by the information pushing meeting topic of subscription preserved to client.
5. method according to claim 3, it is characterized in that, client push from the propelling movement mode needs to off-line state being met to topic of subscription information are determined also to comprise according to audient's type of client: be that the client of IOS system is after service end transmission topic of subscription information and when being in off-line state for audient's type, service end uses deviceToken that the information meeting topic of subscription is sent to APNs, and the information meeting topic of subscription is sent to the client of IOS system by APNs.
6. method according to claim 5, it is characterized in that, described APNs also comprises when the information meeting topic of subscription is sent to the client of IOS system: on client informing, show topic of subscription information, person to be consumed clicks after informing opens application, and client and service end are connected with regard to establishing Websocket agreement the information meeting topic of subscription is sent to consumer.
7. method according to claim 1, it is characterized in that, according to the parameter information of client, described service end determines that actual consumer comprises: service end is according to subscription another name, label information, the subscription information subject content of client, subscribe message is made a summary, and audient's type, presence determine actual consumer.
8. a cross-platform information transmission system, is characterized in that, comprises client and service end, and between described client and service end, sing on web socket agreement sets up Websocket information channel; Described client sends subscription information theme to service end;
Described service end comprises information pushing unit, for determining actual consumer according to the parameter information of client, and matches corresponding information pushing mode and pushes subscription information theme.
9. system according to claim 8, is characterized in that, described service end also comprises:
Connection status judging unit, for judging the connection status that client is connected with service end sing on web socket agreement;
If sing on web socket agreement is connected between client with service end, then judge that client is in line states, service end sends the information meeting topic of subscription to all clients by Websocket information channel;
If do not have sing on web socket agreement to be connected between client with service end, then judge that client is in off-line state, the propelling movement mode needs client push to off-line state being met to topic of subscription information are determined according to audient's type of client.
10. system according to claim 9, is characterized in that, described service end also comprises:
Parameter determination unit, for determining audient's type of client parameter;
Information holding unit, preserves a period of time for server by the information meeting topic of subscription sent to the client being in off-line state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510190499.1A CN104796473A (en) | 2015-04-21 | 2015-04-21 | Cross-platform information push method and cross-platform information push system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510190499.1A CN104796473A (en) | 2015-04-21 | 2015-04-21 | Cross-platform information push method and cross-platform information push system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104796473A true CN104796473A (en) | 2015-07-22 |
Family
ID=53560981
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510190499.1A Pending CN104796473A (en) | 2015-04-21 | 2015-04-21 | Cross-platform information push method and cross-platform information push system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104796473A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105407149A (en) * | 2015-10-29 | 2016-03-16 | 广州酷狗计算机科技有限公司 | Message pushing method and device |
CN105978795A (en) * | 2016-06-22 | 2016-09-28 | 安徽广行物联科技有限公司 | Mobile message double-platform, multi-terminal and multi-application pushing method |
CN106569971A (en) * | 2016-11-04 | 2017-04-19 | 深圳市坐标软件开发有限公司 | Information transmission method and apparatus |
CN108124007A (en) * | 2017-12-19 | 2018-06-05 | 深圳交控科技有限公司 | The method and apparatus of message data real-time Transmission |
CN108683653A (en) * | 2018-05-07 | 2018-10-19 | 常熟市第人民医院 | A kind of active message push system based on WebSocket |
CN109286648A (en) * | 2017-07-21 | 2019-01-29 | 比亚迪股份有限公司 | Data push method, device, system and terminal device |
CN110086636A (en) * | 2019-04-17 | 2019-08-02 | 平安科技(深圳)有限公司 | A kind of message distributing method based on mqtt, server and storage medium |
CN111381981A (en) * | 2020-03-04 | 2020-07-07 | 上海东普信息科技有限公司 | Method, device and equipment for pushing applet messages and storage medium |
CN111770455A (en) * | 2019-04-01 | 2020-10-13 | 北京奇虎科技有限公司 | Message pushing method and device |
CN112565214A (en) * | 2020-11-26 | 2021-03-26 | 中国船舶工业***工程研究院 | Data transmission method, system and medium based on WebSocket |
CN114257638A (en) * | 2021-12-23 | 2022-03-29 | 思必驰科技股份有限公司 | Information manager, information transfer management method, electronic device, and storage medium |
CN115766840A (en) * | 2022-10-27 | 2023-03-07 | 浩云科技股份有限公司 | Service data transmission method and device based on single websocket link channel |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103546584A (en) * | 2013-11-13 | 2014-01-29 | 深圳市中兴移动通信有限公司 | Information pushing method and system |
CN103905504A (en) * | 2012-12-27 | 2014-07-02 | 海尔集团公司 | Information pushing method and system |
-
2015
- 2015-04-21 CN CN201510190499.1A patent/CN104796473A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905504A (en) * | 2012-12-27 | 2014-07-02 | 海尔集团公司 | Information pushing method and system |
CN103546584A (en) * | 2013-11-13 | 2014-01-29 | 深圳市中兴移动通信有限公司 | Information pushing method and system |
Non-Patent Citations (1)
Title |
---|
李兴华: "《基于WebSocket的移动即时通信***》", 《2013年重庆大学硕士学位论文》, 5 November 2013 (2013-11-05) * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105407149B (en) * | 2015-10-29 | 2019-03-01 | 广州酷狗计算机科技有限公司 | Information push method and device |
CN105407149A (en) * | 2015-10-29 | 2016-03-16 | 广州酷狗计算机科技有限公司 | Message pushing method and device |
CN105978795A (en) * | 2016-06-22 | 2016-09-28 | 安徽广行物联科技有限公司 | Mobile message double-platform, multi-terminal and multi-application pushing method |
CN106569971A (en) * | 2016-11-04 | 2017-04-19 | 深圳市坐标软件开发有限公司 | Information transmission method and apparatus |
CN109286648A (en) * | 2017-07-21 | 2019-01-29 | 比亚迪股份有限公司 | Data push method, device, system and terminal device |
CN109286648B (en) * | 2017-07-21 | 2020-11-06 | 比亚迪股份有限公司 | Data pushing method, device and system and terminal equipment |
CN108124007A (en) * | 2017-12-19 | 2018-06-05 | 深圳交控科技有限公司 | The method and apparatus of message data real-time Transmission |
CN108683653A (en) * | 2018-05-07 | 2018-10-19 | 常熟市第人民医院 | A kind of active message push system based on WebSocket |
CN111770455A (en) * | 2019-04-01 | 2020-10-13 | 北京奇虎科技有限公司 | Message pushing method and device |
CN110086636B (en) * | 2019-04-17 | 2022-03-25 | 平安科技(深圳)有限公司 | Message distribution method based on mqtt, server and storage medium |
CN110086636A (en) * | 2019-04-17 | 2019-08-02 | 平安科技(深圳)有限公司 | A kind of message distributing method based on mqtt, server and storage medium |
CN111381981A (en) * | 2020-03-04 | 2020-07-07 | 上海东普信息科技有限公司 | Method, device and equipment for pushing applet messages and storage medium |
CN111381981B (en) * | 2020-03-04 | 2023-07-11 | 上海东普信息科技有限公司 | Method, device, equipment and storage medium for pushing small program message |
CN112565214A (en) * | 2020-11-26 | 2021-03-26 | 中国船舶工业***工程研究院 | Data transmission method, system and medium based on WebSocket |
CN114257638A (en) * | 2021-12-23 | 2022-03-29 | 思必驰科技股份有限公司 | Information manager, information transfer management method, electronic device, and storage medium |
CN115766840A (en) * | 2022-10-27 | 2023-03-07 | 浩云科技股份有限公司 | Service data transmission method and device based on single websocket link channel |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104796473A (en) | Cross-platform information push method and cross-platform information push system | |
CN108616914B (en) | Method and device for reconnection of broken line | |
CN104106303A (en) | Methods and apparatus for establishing tunneled direct link setup (TDLS) session between devices in wireless network | |
CN103220822A (en) | Data transmission method, data transmission device and mobile terminal | |
CN110582998A (en) | Group communication method and device, computer storage medium and computer equipment | |
CN104462033A (en) | Method and device for realizing editing operation among devices | |
CN104202714A (en) | Mobile terminal near field communication method and system for heterogeneous operating system | |
CN106790454A (en) | Deferred information method for pushing and device | |
CN105337973A (en) | Message exchange method and system | |
CN105450479A (en) | Method and apparatus for monitoring module | |
CN114020395A (en) | Virtual desktop network acceleration method, device, terminal and storage medium | |
CN110719526B (en) | Video playing method and device | |
CN106302093B (en) | Communication method, system and server | |
CN105281940B (en) | Method, equipment and system for HELLO message interaction based on NETCONF protocol | |
CN103516766A (en) | Method and system of communication between client-side and application server | |
US20170180468A1 (en) | Method, electronic device and non-transitory computer-readable storage medium for connecting P2P network node | |
CN105515936A (en) | Method, server and system for message communication | |
CN105281987A (en) | Router and data upload method, device and system | |
US20170127472A1 (en) | Method and wireless device for controlling disconnection of a wireless device in a wi-fi direct group of a wireless network | |
US20130097228A1 (en) | Network storage system, data manipulation method in network storage system, storage device and computer program product for controlling client device | |
CN110493070A (en) | Suspension notification method and its application system | |
US10674549B2 (en) | Method and apparatus for networking unmanned aerial vehicle and system for controlling unmanned aerial vehicle | |
CN110418430B (en) | Application sending and receiving method and device, storage medium and electronic device | |
CN111278011B (en) | Network distribution method of intelligent sound box and intelligent sound box | |
CN107784006B (en) | Data processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150722 |