CN105323270B - Network information push method and system - Google Patents
Network information push method and system Download PDFInfo
- Publication number
- CN105323270B CN105323270B CN201410281070.9A CN201410281070A CN105323270B CN 105323270 B CN105323270 B CN 105323270B CN 201410281070 A CN201410281070 A CN 201410281070A CN 105323270 B CN105323270 B CN 105323270B
- Authority
- CN
- China
- Prior art keywords
- push
- user identifier
- time point
- terminal
- network information
- 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.)
- Active
Links
Landscapes
- Telephonic Communication Services (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides a kind of network information push methods, which comprises terminal and server are established and be connected to the network, and Xiang Suoshu server sends push request;The server receives the push request that the terminal uploads, and the push request carries user identifier;The server judges whether the user identifier meets pushing condition, if so, generating push time point according to the user identifier, the network information and the push time point are back to the terminal;The terminal receives the push time point and the network information, shows the network information according to the push time point.Using the present invention, offline pushing network information may be implemented.In addition, additionally providing a kind of network information push system.
Description
Technical field
The present invention relates to internet area, especially a kind of network information push method and system.
Background technique
With the fast development of computer technology, the technology of the relevant information to user's pushing application program has been had already appeared
To meet the needs of users.For example, server pushes the latest version information of certain application program, application program to user
Latest activity information etc..
Traditional network information push method is that terminal first passes through network connection to server, and server is actively pushed away to terminal
SCN Space Cable Network information, terminal receive the network information and are shown to user at once.In this way, only in the premise of terminal connection network
Under, server ability pushing network information to terminal and shows the network information to user.
Summary of the invention
Based on this, it is necessary to provide a kind of network information push method that can be carried out and push offline.
A kind of network information push method, which comprises
Terminal and server, which are established, to be connected to the network, and Xiang Suoshu server sends push request;
The server receives the push request that the terminal uploads, and the push request carries user identifier;
The server judges whether the user identifier meets pushing condition, if so, raw according to the user identifier
At push time point, the network information and the push time point are back to the terminal;
The terminal receives the push time point and the network information, shows that the network is believed according to the push time point
Breath.
The server judges the step of whether user identifier meets pushing condition in one of the embodiments,
Include:
The corresponding the last login time logged in of the user identifier is obtained, judges stepping on for the last login
Whether the time interval of record time and current time reaches prefixed time interval, if so, the user identifier meets push item
Part, otherwise the user identifier does not meet pushing condition.
Described the step of push time point is generated according to the user identifier in one of the embodiments, comprising:
Obtain the preset push period;
By the user identifier divided by time interval corresponding with the push period and remainder, then the remainder that will be obtained
It is added with the initial time of the push period, generates the push time point in the push period.
The push request also carries the corresponding login times of the user identifier in one of the embodiments,;
It is described that push time point is generated according to the user identifier, the network information and the push time point are back to institute
The step of stating terminal, comprising:
The most user identifier of login times is obtained, corresponding push away is generated according to the most user identifier of the login times
Time point is sent, the network information and the push time point are back to the most user identifier of the login times corresponding end
End.
Described the step of showing the network information according to push time point in one of the embodiments, comprising:
Start clock thread when the terminal is restarted, it is logical using message at the push time point by the clock thread
Know that column shows the network information.
In addition, there is a need to provide a kind of network information push system that can be carried out and push offline.
A kind of network information push system, including terminal and server, in which:
The terminal is used to establish with server and be connected to the network, and Xiang Suoshu server sends push request;
The server is used to receive the push request that the terminal uploads, and the push request carries user identifier;
The server is also used to judge whether the user identifier meets pushing condition, if so, according to the user
Mark generates push time point, and the network information and the push time point are back to the terminal;
The terminal is also used to receive the push time point and the network information, according to described in push time point display
The network information.
The server is also used to obtain the corresponding the last login of the user identifier in one of the embodiments,
Login time, judge whether the time interval of the last login time logged in and current time reaches preset time
Interval, if so, the user identifier meets pushing condition, otherwise the user identifier does not meet pushing condition.
The server is also used to obtain the preset push period in one of the embodiments,;The user is marked
Know divided by time interval corresponding with the push period and remainder, then obtained remainder is pushed into rising for period with described
Time beginning is added, and generates the push time point in the push period.
The push request also carries the corresponding login times of the user identifier in one of the embodiments,;
The server is also used to obtain the most user identifier of login times, according to the most user of the login times
Mark generates corresponding push time point, and the network information and the push time point are back to the most use of the login times
Family identifies corresponding terminal.
Start clock thread when the terminal is also used to restart in one of the embodiments, passes through the clock thread
The network information is shown using message informing column at the push time point.
Above-mentioned network information push method and system, when terminal and server are established network connection and then sent out from trend server
Send push to request, request server pushing network information to terminal, server its according to the corresponding use of request pushing network information
Family mark generates push time point, and terminal receives the network information that server returns and push time point, and according to the push time
Point display networks.Thus it must be in the state of terminal networking compared to the server active transmission network information in traditional technology
The lower mode that just can be carried out network information push, in the above method and system, since terminal has received net under connected state
Network information, and the push time point display networks returned according to server, even if being in offline in push time point terminal
State remains to the network information that display has pushed, to realize offline push.
Detailed description of the invention
Fig. 1 is the flow diagram of network information push method in one embodiment;
Fig. 2 is the structural block diagram of network information push system in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
In one embodiment, as shown in Figure 1, providing a kind of information push method, this method comprises the following steps:
Step 102, terminal and server, which are established, is connected to the network, and sends push request to server.
In the present embodiment, terminal can be smart phone, tablet computer, personal digital assistant, E-book reader, MP3
(Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3)
Or MP4 (Moving Picture Experts Group Audio5Layer IV, dynamic image expert's compression standard audio layer
Face 4) player, POS terminal, vehicle-mounted computer, pocket computer on knee and desktop computer etc..Server includes but is not limited to
Various computers, including mainframe computer, supercomputer and computer cluster etc..
Specifically, the application program in terminal can be automatic to send push request to server when terminal connects network.Example
Such as, in starting, operation or in the case where close certain application program, which can be sent automatically push by network and asked
It asks to server.Wherein, push request may include the relevant information of the application program, such as current version number etc..
Step 104, the push request that server receiving terminal uploads, push request carry user identifier.
In the present embodiment, user identifier is used for the corresponding user of unique identification, can be mobile communication number, logs in and answer
With the network account etc. of program.In addition, push request also may include terminal iidentification, terminal iidentification sends push request for identifying
Terminal, can be IP address, MAC Address of terminal etc..
Step 106, server judges whether user identifier meets pushing condition, if so, entering step 108, otherwise not
It processes.
Step 108, push time point is generated according to the user identifier, the network information and push time point is back to end
End.
Pushing condition can be arranged according to actual demand.For example, pushing condition can be the current version of application program not
It is updated to latest edition, user is still not logged in more than prefixed time interval or user eliminates original certain chargeable services
Deng.
Specifically, after server judges that user identifier meets pushing condition the push time can be generated according to the user identifier
Point.Wherein, user identifier is number, and server generates push time point according to the user identifier of digital form.In other implementations
In example, user identifier can also be character string.Specifically, server can be by certain algorithm, by user identifier by character string forms
It is converted to digital form, and then push time point is generated according to the user identifier of digital form.
After receiving push request due to server, first judge whether the user identifier in request meets pushing condition, only
User identifier meets pushing condition, and server just returns to the corresponding network information and push time point is corresponding to the user identifier
Terminal, therefore significantly reduce in peak period because excessive push requests to give server bring calculation amount, and then one
Determine the stability that ensure that server in degree.
Step 110, terminal receives push time point and the network information, according to push time point display networks.
In the present embodiment, push time point is that server is generated according to user identifier, for display networks
It is a certain specific moment, not necessarily identical at the time of with the terminal reception network information.If terminal receive the network information at the time of with
Push time point is consistent, then after terminal receives the network information, directly displays the network information;If inconsistent, terminal is connect
After receiving the network information, the network information is not shown at once, but has arrived push time point to show again.It is understood that
It is that terminal receives the network information and push time point in the state of networking, since the network information is storable in terminal local,
When pushing time point display networks, it is not required that terminal must network, therefore terminal can also show push in off-line state
The network information.
Specifically, terminal receives push time point by local receiver (Receiver) and the network information, calling disappear
Notification frame is ceased in push time point display networks to user.
Above-mentioned network information push method, when terminal and server establish network connection and then send push from trend server
Request, request server pushing network information to terminal, server its according to the corresponding user identifier of request pushing network information
Push time point is generated, terminal receives the network information that server returns and push time point, and according to push time point display
The network information.Compared to the server active transmission network information in traditional technology to must could in the state of terminal networking
The mode for carrying out network information push, in the above method and system, since terminal has received the network information under connected state,
And the push time point display networks returned according to server, even if being in off-line state in push time point terminal, still
The network information pushed can be shown, to realize offline push.
In one embodiment, server judges that the step of whether user identifier meets pushing condition includes: to obtain user
The corresponding the last login time logged in is identified, judges the time of the login time that the last time logs in and current time
Whether interval reaches prefixed time interval, if so, the user identifier meets pushing condition, otherwise the user identifier, which is not met, is pushed away
Send condition.
Prefixed time interval can be configured by actual conditions, and in one embodiment, preset time interval is preferably
30 days.
Specifically, terminal is in each login application program, when server all has recorded user identifier and corresponding login
Between, therefore server is got after pushing the user identifier in requesting, and can search the corresponding the last login of the user identifier
Login time, thus judge the last time log in login time and current time time interval whether be not less than it is default
Time interval, if so, the user identifier meets pushing condition, otherwise the user identifier does not meet pushing condition.
In one embodiment, the step of push time point being generated according to user identifier, comprising: when obtaining preset push
Between section;By user identifier divided by time interval corresponding with the push period and remainder, then by obtained remainder and the push
The initial time of period is added, and generates the push time point in the push period.
The preset push period can be arranged according to the behavioural habits of user, usually user's more idle time
Section.For example, in China's Mainland, the time of having a rest of user is evening 23:00~morning 7:00 and noon 12:00~14:00, is used
The family busier time is evening 20:00~22:00, then pushes the period and can avoid the above-mentioned period and be configured, such as
The push period may be configured as 07:30~11:30 in morning.
Specifically, server can be according to formula Tp=T1+ ID% (T2-T1) come calculate push time point.Wherein, TpExpression pushes away
Send time point, T2-T1Indicate preset push period, T1For the initial time for pushing the period, T2For the knot for pushing the period
The beam time.
For example, it is assumed that the push period is 07:30~11:30, user identifier is 00001~30001, pushes the period pair
The time interval Δ T=T answered2-T1=14400 seconds.So T00001=7:30+ (00001) %14400, i.e. user identifier are
00001 push time point is 30 minutes and 01 second 7 points of morning, and so on.It is appreciated that T10001、T20001And T30001Push when
Between point be 30 minutes and 01 second 7 points of morning.
Due to be arranged according to the behavioural habits of user push the period, avoid user it is not online or busy when
Section, therefore increase the probability that user checks the network information.
In one embodiment, push request also carries the corresponding login times of user identifier;Step 106 includes: to obtain
The most user identifier of login times generates corresponding push time point according to the most user identifier of login times, by network
Information is back to the corresponding terminal of the most user identifier of the login times with push time point.
When there is multiple users logged in same terminal, the local of the terminal is corresponding store multiple user identifiers and its
Login times.Specifically, terminal obtains the user identifier of the user, while will also after the application program of user's registration terminal
The corresponding login times of the user identifier add 1.
Further, the application program of terminal sends push request to server, which contains application program
In all user identifiers and corresponding login times.Server obtains user identifier and its login time in push request
Number, is chosen at the user identifier that login times are most in the same terminal, and generate corresponding push time point.Due to clothes
It is engaged in the device user identifier generation push time point most according to login times, therefore avoids the push request sent by terminal
It is middle to carry multiple user identifiers, cause to generate multiple push time points, and then occur repeating the problem of pushing in same terminal.
In one embodiment, step 108, comprising: start clock thread when terminal is restarted, pushed away by the clock thread
Send time point using message informing column display networks.
In the present embodiment, terminal can also be by setting clock thread come display networks.Since clock thread can be with
Restarting for terminal and voluntarily restart, and push time point use message informing column display networks, therefore effectively
Ground ensure that the reliability of pushing network information.
For example, it is assumed that terminal is the smart phone for being equipped with Android (android) system, then terminal can pass through Android system
In AlarmManager.setRepeating clock thread is set, which repeats alarm clock for being arranged, such as noisy
Time, operation of alarm clock execution that clock type, alarm clock execute for the first time etc..
Assuming that terminal receives network information push time point 09:30 corresponding with its in 08:56, and the terminal is pushing away
It is preceding because of certain factors shutdown such as not enough power supply to send time point 09:30's, and is just opened after pushing time point 09:30.Terminal
After unlatching, time thread can be restarted with restarting for terminal and voluntarily, and in next push time point 09:30,
Using message informing frame display networks.
In one embodiment, as shown in Fig. 2, a kind of network information push system, including terminal 202 and server 204,
Wherein:
Terminal 202 is used to establish with server 204 and be connected to the network, and sends push request to server 204.
Server 204 is used to receive the push request of the upload of terminal 202, and push request carries user identifier.
Server 204 is also used to judge whether user identifier meets pushing condition, if so, being generated according to the user identifier
Time point is pushed, the network information and push time point are back to terminal 202.
Terminal 202 is also used to receive push time point and the network information, according to push time point display networks.
In one embodiment, when server 204 is also used to obtain the login of the corresponding the last login of user identifier
Between, judge whether the time interval of the login time that the last time logs in and current time reaches prefixed time interval, if so,
Then the user identifier meets pushing condition, and otherwise the user identifier does not meet pushing condition.
Specifically, terminal 202 is in each login application program, server 204 all has recorded user identifier and corresponding
Login time, therefore server 204 is used to obtain the user identifier in push request, searches the user identifier corresponding nearest one
The login time of secondary login, to judge whether the time interval of the login time that the last time logs in and current time is not small
In prefixed time interval, if so, the user identifier meets pushing condition, otherwise the user identifier does not meet pushing condition.
In one embodiment, server 204 is also used to obtain the preset push period;By user identifier divided by with this
Period corresponding time interval and remainder are pushed, then obtained remainder is added with the initial time of the push period, it is raw
At the push time point in the push period.
Specifically, server 204 is used for according to formula Tp=T1+ ID% (T2-T1) come calculate push time point.Wherein, Tp
Indicate push time point, T2-T1Indicate preset push period, T1For the initial time for pushing the period, T2To push the time
The end time of section.
In one embodiment, push request also carries the corresponding login times of user identifier;Server 204 is also used to obtain
The user identifier that login times are most is taken, corresponding push time point is generated according to the most user identifier of the login times, it will
The network information is back to the corresponding terminal of the most user identifier of the login times with push time point.
When there is multiple users logged in same terminal 202, the local of terminal 202 is corresponding to store multiple user identifiers
And its login times.Specifically, terminal 202 is used to obtain the user of the user after the application program of user's registration terminal 202
Mark, while the corresponding login times of the user identifier are also added 1.
Further, the application program of terminal 202 sends push request to server 204, which, which contains, answers
With user identifier all in program and corresponding login times.Server 204 is used to obtain user's mark in push request
Knowledge and its login times, are chosen at the user identifier that login times are most in the same terminal 202, and generate corresponding push away
Send time point.
In one embodiment, start clock thread when terminal 202 is also used to restart, through the clock thread in push
Between point use message informing column display networks.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (6)
1. a kind of network information push method, which comprises
Terminal and server, which are established, to be connected to the network, and Xiang Suoshu server sends push request;
The server receives the push request that the terminal uploads, and the push request carries user identifier and the user
Identify corresponding login times;
The server judges whether the user identifier meets pushing condition, if so, obtaining the most user of login times
Mark generates corresponding push time point according to the most user identifier of the login times, by the network information and the push
Time point is back to the corresponding terminal of the most user identifier of the login times;
The step of generating push time point according to the user identifier, comprising:
Obtain the preset push period;
By the user identifier divided by time interval corresponding with the push period and remainder, then by obtained remainder and institute
The initial time for stating the push period is added, and generates the push time point in the push period;
The terminal receives the push time point and the network information, shows the network information according to the push time point.
2. being pushed away the method according to claim 1, wherein the server judges whether the user identifier meets
The step of sending condition, comprising:
The corresponding the last login time logged in of the user identifier is obtained, when judging the last login logged in
Between with the time interval of current time whether reach prefixed time interval, it is no if so, the user identifier meets pushing condition
Then the user identifier does not meet pushing condition.
3. the method according to claim 1, wherein described show the network information according to push time point
Step, comprising:
Start clock thread when the terminal is restarted, message informing column is used at the push time point by the clock thread
Show the network information.
4. a kind of network information push system, which is characterized in that including terminal and server, in which:
The terminal is used to establish with server and be connected to the network, and Xiang Suoshu server sends push request;
The server is used to receive the push request that the terminal uploads, the push request carrying user identifier and described
The corresponding login times of user identifier;
The server is also used to judge whether the user identifier meets pushing condition, if so, it is most to obtain login times
User identifier, corresponding push time point is generated according to the most user identifier of the login times, by the network information and institute
State push time point be back to the corresponding terminal of the most user identifier of the login times;
The step of generating push time point according to the user identifier, comprising:
Obtain the preset push period;
By the user identifier divided by time interval corresponding with the push period and remainder, then by obtained remainder and institute
The initial time for stating the push period is added, and generates the push time point in the push period;
The terminal is also used to receive the push time point and the network information, shows the network according to the push time point
Information.
5. system according to claim 4, which is characterized in that it is corresponding that the server is also used to obtain the user identifier
The last login time logged in, the time interval of the login time and current time that judges the last login is
No to reach prefixed time interval, if so, the user identifier meets pushing condition, otherwise the user identifier does not meet push
Condition.
6. system according to claim 4, which is characterized in that start clock thread when the terminal is also used to restart, lead to
It crosses the clock thread and the network information is shown using message informing column at the push time point.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410281070.9A CN105323270B (en) | 2014-06-20 | 2014-06-20 | Network information push method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410281070.9A CN105323270B (en) | 2014-06-20 | 2014-06-20 | Network information push method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105323270A CN105323270A (en) | 2016-02-10 |
CN105323270B true CN105323270B (en) | 2019-05-03 |
Family
ID=55249864
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410281070.9A Active CN105323270B (en) | 2014-06-20 | 2014-06-20 | Network information push method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105323270B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105790800B (en) * | 2016-03-03 | 2019-02-19 | 上海智向信息科技有限公司 | A kind of online information method for pushing and system based on wearable device |
CN107786607B (en) * | 2016-08-30 | 2020-12-25 | 腾讯科技(深圳)有限公司 | Message retransmission method, message retransmission server and user equipment |
CN109788071A (en) * | 2019-03-05 | 2019-05-21 | 上海博泰悦臻网络技术服务有限公司 | User individual information push method, server-side, engine end and client |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101420580A (en) * | 2008-12-04 | 2009-04-29 | 深圳华为通信技术有限公司 | Method, apparatus and system for implementing advertisement playing |
CN101505284A (en) * | 2008-11-12 | 2009-08-12 | ***通信集团广东有限公司 | Intelligent information dynamic pushing method and system |
CN101674318A (en) * | 2008-09-11 | 2010-03-17 | 北大方正集团有限公司 | Method for pushing data to mobile equipment at regular time |
CN101917482A (en) * | 2010-08-23 | 2010-12-15 | 宇龙计算机通信科技(深圳)有限公司 | Information pushing method and information pushing server |
US8270310B2 (en) * | 2009-01-28 | 2012-09-18 | Headwater Partners I, Llc | Verifiable device assisted service policy implementation |
-
2014
- 2014-06-20 CN CN201410281070.9A patent/CN105323270B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674318A (en) * | 2008-09-11 | 2010-03-17 | 北大方正集团有限公司 | Method for pushing data to mobile equipment at regular time |
CN101505284A (en) * | 2008-11-12 | 2009-08-12 | ***通信集团广东有限公司 | Intelligent information dynamic pushing method and system |
CN101420580A (en) * | 2008-12-04 | 2009-04-29 | 深圳华为通信技术有限公司 | Method, apparatus and system for implementing advertisement playing |
US8270310B2 (en) * | 2009-01-28 | 2012-09-18 | Headwater Partners I, Llc | Verifiable device assisted service policy implementation |
CN101917482A (en) * | 2010-08-23 | 2010-12-15 | 宇龙计算机通信科技(深圳)有限公司 | Information pushing method and information pushing server |
Also Published As
Publication number | Publication date |
---|---|
CN105323270A (en) | 2016-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102029277B1 (en) | Device Identifier-Dependent Operation Processing for Packet-Based Data Communications | |
US20230344903A1 (en) | Data synchronization across multiple devices | |
CN110659121B (en) | Task data acquisition method and device, task configuration method and device and server | |
JP2017529711A (en) | Method, apparatus and system for voice confirmation | |
US20160234383A1 (en) | Calling an Unready Terminal | |
WO2020094035A1 (en) | Wireless network connection method for terminal | |
WO2021237433A1 (en) | Message pushing method and apparatus, and electronic device and computer-readable medium | |
CN103840950A (en) | Information pushing method and system | |
JP2005216313A (en) | System and method for session reestablishment between client terminal and server | |
WO2017167121A1 (en) | Method and device for determining and applying association relationship between application programs | |
US20150304490A1 (en) | Method, apparatus and system for providing caller identification | |
CN104580121A (en) | People search/people information matching and pushing method, system, client and server | |
WO2020094036A1 (en) | Wireless network connection method for terminal | |
TWI441535B (en) | Method for using geographic signal fingerprint cluster to implement end-to-end message push | |
CA2991026A1 (en) | Methods and systems for installing an application version via close-range communications | |
CN111787345A (en) | Interactive resource processing method and device based on network live broadcast room, server and storage medium | |
WO2014086222A1 (en) | Method and apparatus for setting video call parameters and sending capability parameters | |
WO2016065977A1 (en) | Call processing method and device, communication terminal and server | |
CN105323270B (en) | Network information push method and system | |
WO2020258102A1 (en) | Content pushing method and apparatus, mobile terminal and storage medium | |
WO2013029442A1 (en) | Buddy status prompting method and system in sns network, client and server | |
WO2017004990A1 (en) | Notification pushing method and device | |
CN106411713B (en) | State notification method and server | |
WO2016110258A1 (en) | User data storing method and device | |
WO2016037489A1 (en) | Method, device and system for monitoring rcs spam messages |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |