CN105635994B - A kind of method and terminal receiving pushed information - Google Patents
A kind of method and terminal receiving pushed information Download PDFInfo
- Publication number
- CN105635994B CN105635994B CN201511033721.3A CN201511033721A CN105635994B CN 105635994 B CN105635994 B CN 105635994B CN 201511033721 A CN201511033721 A CN 201511033721A CN 105635994 B CN105635994 B CN 105635994B
- Authority
- CN
- China
- Prior art keywords
- terminal
- information
- operating status
- state
- current
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
-
- 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
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72463—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention provides a kind of methods and terminal for receiving pushed information.Wherein, this method comprises: detecting the current network state of terminal;When detecting the current network state of terminal is mobile network's connection status, downlink is closed, to stop to receive the instant messaging information in operating status using corresponding server push;When detecting the current network state of terminal is wireless network connection state, starting receives the instant messaging information in operating status using corresponding server push.Through the embodiment of the present invention, a large amount of network rate can be generated to avoid terminal, thus avoid bringing to user it is unfavorable.
Description
Technical field
The present invention relates to electronic technology fields, and in particular to a kind of method and terminal for receiving pushed information.
Background technique
With advances in technology and terminal it is universal, miscellaneous client continues to bring out like the mushrooms after rain, and big
Part client all can be to terminal pushed information, and the information of client push can be such as: topical news, advertising information or user are fixed
Information processed etc., if the network that user uses is data network, a large amount of client will consume largely to terminal pushed information
Data traffic produces a large amount of network rate in user in involuntary use process, forces the user of terminal must not
A large amount of expense is not paid thus, and it is unfavorable to bring to user.
Summary of the invention
The embodiment of the invention provides a kind of methods and terminal for receiving pushed information, can be to avoid a large amount of network of generation
Rate, thus avoid bringing to user it is unfavorable.
In a first aspect, the embodiment of the invention provides a kind of methods for receiving pushed information, which comprises
Detect the current network state of terminal;
When detecting the current network state of terminal is mobile network's connection status, downlink is closed, to stop to connect
Receive the instant messaging information in operating status using corresponding server push;
When detecting the current network state of terminal is wireless network connection state, starting receives described in operation shape
The instant messaging information using corresponding server push of state.
With reference to first aspect, in the first possible implementation of the first aspect, described to detect that terminal is current
Network state when being mobile network's connection status, close downlink, corresponded to stopping to receive application in operating status
Server push instant messaging information, comprising:
When detecting the current network state of terminal is mobile network's connection status, prompt information, the prompt are exported
Information is for prompting to choose whether to receive the instant messaging information in operating status using corresponding server push;
Select suspension reception described in operating status using corresponding service for the prompt information if receiving
The instruction of the instant messaging information of device push, then close downlink, to stop to receive the application pair in operating status
The instant messaging information for the server push answered.
With reference to first aspect, in the second possible implementation of the first aspect, described to detect that terminal is current
Network state when being mobile network's connection status, close downlink, corresponded to stopping to receive application in operating status
Server push instant messaging information, comprising:
When detecting the current network state of terminal is mobile network's connection status, the terminal current residual is obtained
Data traffic;
Judge whether the data traffic of the terminal current residual is lower than preset flow threshold value;
If so, closing downlink, to stop, reception is in operating status to be using corresponding server push
When the communication information.
With reference to first aspect or second of the first possible implementation of first aspect or first aspect may
Implementation, it is in a third possible implementation of the first aspect, described when detecting the current network state of terminal
When for wireless network connection state, starting receives the instant messaging in operating status using corresponding server push
Information, comprising:
When detecting the current network state of terminal is wireless network connection state, the current electricity of the terminal is judged
Whether default power threshold is higher than;
If so, starting receives the instant messaging information in operating status using corresponding server push.
With reference to first aspect or second of the first possible implementation of first aspect or first aspect may
Implementation, it is in a fourth possible implementation of the first aspect, described when detecting the current network state of terminal
When for wireless network connection state, starting receives the instant messaging in operating status using corresponding server push
Information, comprising:
When detecting the current network state of terminal is wireless network connection state, the current system of the terminal is judged
Whether memory is higher than default memory threshold;
If so, starting receives the instant messaging information in operating status using corresponding server push.
Second aspect, the embodiment of the invention provides a kind of terminal, the terminal includes:
Network detection module, for detecting the current network state of terminal;
Link control module, for detecting that the current network state of terminal is mobile network when the network detection unit
When connection status, downlink is closed, to stop to receive the Instant Messenger in operating status using corresponding server push
Letter information;
Information receiving module, for detecting that the current network state of terminal is wireless network when the network detection unit
When connection status, starting receives the instant messaging information in operating status using corresponding server push.
In conjunction with second aspect, in the first possible implementation of the second aspect, the link control module includes:
Prompt unit, for detecting the current network state of terminal for mobile network's connection when the network detection unit
When state, prompt information is exported, the prompt information is used to prompt to choose whether to receive the application pair in operating status
The instant messaging information for the server push answered;
First link control unit, if selecting to stop described in reception in operation for the prompt information for receiving
The instruction of the instant messaging information using corresponding server push of state, then close downlink, described in stopping to receive
Instant messaging information using corresponding server push in operating status.
In conjunction with second aspect, in a second possible implementation of the second aspect, the link control module includes:
Acquiring unit, for detecting the current network state of terminal for mobile network's connection when the network detection unit
When state, the data traffic of the terminal current residual is obtained;
First judging unit, for judging whether the data traffic of the terminal current residual is lower than preset flow threshold value;
Second link control unit, if judging the data flow of the terminal current residual for first judging unit
Amount is lower than the preset flow threshold value, then closes downlink, in operating status using corresponding service to stop to receive
The instant messaging information of device push.
Second in conjunction with the possible implementation of the first of second aspect or second aspect or second aspect may
Implementation, in the third possible implementation of the second aspect, the information receiving module includes:
Second judgment unit, for detecting that the current network state of terminal is wireless network when the network detection unit
When connection status, judge whether the current electricity of the terminal is higher than default power threshold;
First information receiving unit, if judging that the current electricity of the terminal is higher than institute for the second judgment unit
Default power threshold is stated, then starts and receives the instant messaging letter in operating status using corresponding server push
Breath.
Second in conjunction with the possible implementation of the first of second aspect or second aspect or second aspect may
Implementation, in the fourth possible implementation of the second aspect, the information receiving module includes:
Third judging unit, for detecting that the current network state of terminal is wireless network when the network detection unit
When connection status, judge whether the current Installed System Memory of the terminal is higher than default memory threshold;
Second information receiving unit, if judging that the current Installed System Memory of the terminal is high for the third judging unit
In the default memory threshold, then starts and receive the instant messaging in operating status using corresponding server push
Information.
By implementing the embodiment of the present invention, terminal detects current network state, when detecting current network state to move
When dynamic network connection state, terminal closes downlink, stops to receive in operating status using corresponding server push
Instant messaging information, when detect current network state be wireless network connection state when, terminal restart reception in fortune
The instant messaging information using corresponding server push of row state, thus when terminal is in mobile network's connection status,
Pause receives the information of server push, when terminal restores wireless network connection state, is further continued for receiving server push
Information, so as to avoid terminal mobile network connect when because receive server push a large amount of instant messaging information due to caused by
A large amount of consumption of data traffic, can to avoid generating a large amount of network rate, thus avoid bringing to user it is unfavorable.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of flow diagram of method for receiving pushed information provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another method for receiving pushed information provided in an embodiment of the present invention;
Fig. 2A is a kind of display interface schematic diagram of prompt information provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another method for receiving pushed information provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another terminal provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another terminal provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another terminal provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of another terminal provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of another terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of methods and terminal for receiving pushed information, can be to avoid a large amount of network of generation
Rate, thus avoid bringing to user it is unfavorable.It is described in detail separately below.
Terminal in following embodiment can include but is not limited to: mobile phone, PAD (tablet computer), laptop, the palm
Upper computer, mobile internet device (Mobile Internet Device, MID), intelligent wearable equipment (smartwatch etc.)
Etc. all kinds of terminal devices for having communication function.The system of terminal refers to the operating system of terminal, can include but is not limited to:
Android system, Saipan system, Windows system, IOS (Mobile operating system of Apple Inc.'s exploitation) system etc..It needs
Illustrate, Android terminal refers to that the terminal of android system, Saipan terminal refer to the terminal, etc. of Saipan system.
Referring to Figure 1, Fig. 1 is a kind of flow diagram of method for receiving pushed information provided in an embodiment of the present invention.
As shown in Figure 1, the method for the reception pushed information can include but is not limited to following steps.
The current network state of S101, detection terminal.
In the embodiment of the present invention, terminal detects current network state, and network state includes mobile network's connection status, moves
Dynamic network off-state, wireless network connection state and wireless network off-state etc., wherein mobile network may include but not
It is limited to: 2G (2-Generation, Generation Mobile Telecommunication System technology), 3G (3rd Generation, 3G (Third Generation) Moblie skill
Art) and 4G (4th Generation, fourth generation mobile communication technology) etc., wireless network can include but is not limited to: WIFI
(Wireless Fidelity, wireless network) etc..
Specifically, terminal can be current with real-time detection network state, can also be according to predetermined period, when reaching in the period
Current network state is detected, can also start to detect current net in the network state detection instruction for receiving user's sending
Network state, the embodiment of the present invention are not especially limited.Wherein, predetermined period can be 20 minutes, then detect within terminal every 20 minutes
Primary network state.
For example, being directed to certain Android terminal, the 3G network switch that user opens a terminal, when terminal connection 3G network success
When, it is 3G network connection status that terminal, which can be detected current network state,.
In another example for certain Android terminal, the WIFI switch that user opens a terminal, when terminal connects some WIFI heat
When putting successfully, it is WIFI network connection status that terminal, which can be detected current network state,.
S103, when detect the current network state of terminal be mobile network's connection status when, close downlink, in
Only receive the instant messaging information in operating status using corresponding server push.
In the embodiment of the present invention, when terminal detects that current network state is mobile network's connection status, terminal is closed
Downlink cuts off the transmission channel of downlink data, stop to receive in operating status all using corresponding service
The instant messaging information of device push, in operating status all using being managed collectively, so that in operating status
All instant messaging information can not be pushed to terminal by downlink using corresponding server, therefore terminal can be because
Stop receiving the information of above-mentioned each server push and saving data traffic, avoids generating a large amount of network rate.Wherein, on
Stating to apply can include but is not limited to: QQ, wechat, microblogging, Tencent's news etc..Above-mentioned instant messaging information may include but unlimited
In: QQ message, wechat message, Twitter message, Tencent's news etc..
For example, terminal closes the downlink of 3G network when terminal detects that current network state is 3G network connection status
Access so that current background operation using corresponding server can not by 3G downlink to terminal pushed information, at this point,
If application in operating status has QQ, wechat, microblogging and Tencent's information on terminal backstage, QQ in operating status can not
The QQ message that other users are sent is received, the wechat that wechat in operating status can not also receive other users transmission disappears
Breath, microblogging in operating status can not also update newest multidate information, Tencent's news in operating status equally also without
Method updates newest news dynamic.
It should be noted that when terminal is detected currently as data network connection state downlink only can be closed, for upper
It for line link, can close, can not also close, the embodiment of the present invention is not especially limited, if terminal is not to uplink
Shutoff operation is executed, then user can carry out the transmission of data with each application of normal use, ensure basic communication function, example
Such as, user can send QQ message etc. to contact person by QQ.
S105, when detect the current network state of terminal be wireless network connection state when, starting receive in operation
The instant messaging information using corresponding server push of state.
In the embodiment of the present invention, when terminal detects that current network is wireless network connection state again, starting is received
Instant messaging information using corresponding server push in operating status, at this point, the corresponding server of each application can
Normally to terminal pushed information, the information pushed not successfully before is pushed to terminal.
When being in mobile network's connection status, pause receives in operating status using corresponding server push terminal
The information sent, until terminal is in wireless network connection state, terminal is further continued for receiving the letter of above-mentioned each server push
Breath postpones the information for receiving server push according to the current network state of terminal.
As an alternative embodiment, when detecting that the current network state of terminal is wireless network connection state
When, starting receives the instant messaging information in operating status using corresponding server push, comprising:
11) when detecting the current network state of terminal is wireless network connection state, judge the current electricity of terminal
Whether default power threshold is higher than;
12) if so, starting receives the instant messaging information in operating status using corresponding server push.
Specifically, detecting current residual when terminal detects that current network state is wireless network connection state
Electricity, and judge whether current electric quantity is higher than default power threshold, if being higher than, terminal starting receives in operating status answer
With the instant messaging information of corresponding server push;If being less than or equal to, in order to save electric quantity consumption, terminal can be temporary
The instant messaging information for not receiving above-mentioned each server push, until detecting that terminal is in wireless network connection shape again
State, the and when electricity of terminal is higher than default power threshold, terminal restart receive it is in operating status using corresponding clothes
The instant messaging information of business device push.Wherein, default power threshold can also be used by terminal system default setting by terminal
Family manual setting, for example, default power threshold is 20%.
As another optional embodiment, when detect the current network state of terminal be wireless network connection state
When, starting receives the instant messaging information in operating status using corresponding server push, comprising:
13) when detecting the current network state of terminal is wireless network connection state, judge the current system of terminal
Whether memory is higher than default memory threshold;
14) if so, starting receives the instant messaging information in operating status using corresponding server push.
Specifically, when terminal detects that current network state is wireless network connection state, the current system of terminal detection
System free memory, and judge whether current memory is higher than default memory threshold, if being higher than, terminal starting is received in operation
The instant messaging information using corresponding server push of state;If being less than or equal to, occupied to reduce Installed System Memory,
System resource is saved, terminal can not receive the instant messaging in operating status using corresponding server push temporarily and believe
Breath, until detecting that terminal is in wireless network connection state again, and terminal discharges partial memory and makes terminal current
Memory when being higher than default memory threshold, terminal restart receive it is in operating status using corresponding server push i.e.
When the communication information.Wherein, default memory threshold can also be arranged by terminal system default setting by end user manual,
For example, default memory threshold is 200MB.
As it can be seen that in the method depicted in fig. 1, terminal detects current network state, when detecting current network state
When for mobile network's connection status, terminal closes downlink, stops to receive in operating status using corresponding server
The instant messaging information of push, when detecting current network state is wireless network connection state, terminal restarts receiving area
In the instant messaging information using corresponding server push of operating status, to be in mobile network's connection status in terminal
When, pause receives the information of server push, when terminal restores wireless network connection state, is further continued for receiving above-mentioned each clothes
The information of business device push, so as to avoid terminal when mobile network connects because a large amount of instant messagings for receiving server push are believed
Breath and caused by data traffic a large amount of consumption, can be to avoid a large amount of network rate be generated, to avoid bringing not to user
Benefit.
Fig. 2 is referred to, Fig. 2 is the process signal of another method for receiving pushed information provided in an embodiment of the present invention
Figure.As shown in Fig. 2, the method for the reception pushed information can include but is not limited to following steps.
The current network state of S201, detection terminal.
Step S201 in the embodiment of the present invention can be found in the S101 in embodiment illustrated in fig. 1, and details are not described herein again.
S203, when detect the current network state of terminal be mobile network's connection status when, export prompt information, prompt
Information is for prompting to choose whether to receive the instant messaging information in operating status using corresponding server push.
In the embodiment of the present invention, when terminal detects that current network state is mobile network's connection status, terminal output
Prompt information, so that user independently chooses whether the information in operating status using corresponding reception server push.It mentions
The way of output for showing information can may include being similar to "Yes" and "No", or " determination " and " take in prompting frame for prompting frame
Disappear " etc. options, user wherein some option can be chosen by modes such as click, pressing, slidings, come independently selected.
For example, referring to Fig. 2A, Fig. 2A is a kind of display interface schematic diagram of prompt information provided in an embodiment of the present invention.
In fig. 2,21 be terminal display interface, shown on display interface 21 terminal pop-up prompting frame 22, the prompting frame 22
On content information " whether allow receive pushed information " shown, and two options, respectively option are also shown on prompting frame 22
It is in operating status using corresponding clothes to show that user selects to receive if user has selected "Yes" for "Yes" and option "No"
It is in operating status to show that user's selection wouldn't receive if user has selected "No" for the instant messaging information that device pushes of being engaged in
Using the instant messaging information of corresponding server push.
If S205, receive for prompt information select stop receive it is in operating status using corresponding server push
The instruction for the instant messaging information sent, then close downlink, in operating status using corresponding service to stop to receive
The instant messaging information of device push.
In the embodiment of the present invention, if terminal receives user and selects suspension reception in operating status using corresponding clothes
The instruction of the instant messaging information of business device push, then terminal closes downlink, that is, cuts off the transmission channel of downlink data, stops
All instant messaging information using corresponding server push in operating status are received, in operating status complete
Portion's application is managed collectively, so that in operating status all can not pass through downlink using corresponding server
Instant messaging information is pushed to terminal, therefore terminal can be because stopping saving data due to receiving the information of above-mentioned each server push
Flow avoids generating a large amount of network rate.Wherein, above-mentioned application can include but is not limited to: QQ, wechat, microblogging, Tencent are new
Hear etc..Above-mentioned instant messaging information can include but is not limited to: QQ message, wechat message, Twitter message, Tencent's news etc..
For example, terminal exports prompt information when terminal detects that current network state is 3G network connection status, so that
User chooses whether to receive the information of server push, if user selects to be "No", the downlink that terminal closes 3G network is logical
Road so that current background operation using corresponding server can not by 3G downlink to terminal pushed information, at this point, if
On terminal backstage, application in operating status has QQ, wechat, microblogging and Tencent's information, then QQ in operating status can not connect
The QQ message that other users are sent is received, wechat in operating status can not also receive the wechat message of other users transmission,
Microblogging in operating status can not also update newest multidate information, and Tencent's news in operating status equally also can not be more
New newest news dynamic.
It should be noted that when terminal is detected currently as data network connection state downlink only can be closed, for upper
It for line link, can close, can not also close, the embodiment of the present invention is not especially limited, if terminal is not to uplink
Shutoff operation is executed, then user can carry out the transmission of data with each application of normal use, ensure basic communication function, example
Such as, user can send QQ message etc. to contact person by QQ.
S207, when detect the current network state of terminal be wireless network connection state when, starting receive in operation
The instant messaging information using corresponding server push of state.
Step S207 in the embodiment of the present invention can be found in the S105 in embodiment illustrated in fig. 1, and details are not described herein again.
As it can be seen that in the method depicted in fig. 2, terminal detects current network state, when detecting current network state
When for mobile network's connection status, terminal exports prompt information, to prompt the user to choose whether to receive in operating status answer
With the instant messaging information of corresponding server push, if user selects to stop to receive, terminal closes downlink, stops to connect
The instant messaging information in operating status using corresponding server push is received, when detecting that current network state is wireless
When network connection state, terminal, which is restarted, receives the instant messaging letter in operating status using corresponding server push
Breath, so that pause receives the information of above-mentioned each server push, when terminal is extensive when terminal is in mobile network's connection status
When multiple wireless network connection state, it is further continued for receiving the information of above-mentioned each server push, so as to avoid terminal in movement
When network connection because receive server push a large amount of instant messaging information due to caused by data traffic a large amount of consumption, can keep away
Exempt to generate a large amount of network rate, thus avoid bringing to user it is unfavorable, and can independently be chosen whether by user stop connect
The information for receiving server push, meets the needs of users.
Fig. 3 is referred to, Fig. 3 is the process signal of another method for receiving pushed information provided in an embodiment of the present invention
Figure.As shown in figure 3, the method for the reception pushed information can include but is not limited to following steps.
The current network state of S301, detection terminal.
Step S301 in the embodiment of the present invention can be found in the S101 in embodiment illustrated in fig. 1, and details are not described herein again.
S303, when detect the current network state of terminal be mobile network's connection status when, obtain terminal current residual
Data traffic.
In the embodiment of the present invention, when terminal detects that current network state is mobile network's connection status, terminal is obtained
The data traffic of current residual.Specifically, terminal can know terminal current residual by service short message that operator issues
Data traffic, can also by record terminal log remaining data traffic is calculated according to the service condition of flow, for example, eventually
Holding this month total data flow is 1GB (1024MB), and it is 1000MB that terminal, which records this month used data traffic, then is calculated
Terminal current residual data traffic is 24MB.
S305, judge whether the data traffic of terminal current residual is lower than preset flow threshold value, if so, executing step
S307;If it is not, terminating this process.
In the embodiment of the present invention, after terminal gets the data traffic of current residual, the data traffic of current residual is judged
Whether preset flow threshold value is lower than, if so, executing step S307.Wherein, the stream that preset flow threshold value can be used according to user
The setting of set meal situation is measured, can also be independently arranged by user, the embodiment of the present invention is not especially limited, for example, preset flow threshold
Value is 200MB.
S307, downlink is closed, it is in operating status using the instant of corresponding server push to stop to receive
The communication information.
In the embodiment of the present invention, if the data traffic for judging terminal current residual shows lower than preset flow threshold value
The data traffic of current residual is insufficient, for avoid the information because receiving server push to user caused by biggish data traffic disappear
Consumption, then terminal closes downlink, that is, cuts off the transmission channel of downlink data, stops to receive in operating status all answer
With the instant messaging information of corresponding server push, in operating status all using being managed collectively, so that place
All instant messaging information can not be pushed to terminal by downlink using corresponding server in operating status,
Therefore terminal can avoid generating a large amount of network because stopping saving data traffic due to receiving the information of above-mentioned each server push
Rate.Wherein, above-mentioned application can include but is not limited to: QQ, wechat, microblogging, Tencent's news etc..Above-mentioned instant messaging information can
To include but is not limited to: QQ message, wechat message, Twitter message, Tencent's news etc..
For example, terminal obtains current residual data when terminal detects that current network state is 3G network connection status
Flow is 150MB, is lower than preset flow threshold value 200MB, then terminal closes the downlink of 3G network, so that current background is transported
Capable can not be by 3G downlink to terminal pushed information, at this point, if being in fortune on terminal backstage using corresponding server
The application of row state has QQ, wechat, microblogging and Tencent's information, then QQ in operating status can not receive other users transmission
QQ message, wechat in operating status can not also receive the wechat message of other users transmission, and in operating status is micro-
Rich also to update newest multidate information, it is dynamic that Tencent's news in operating status equally can not also update newest news
State.
It should be noted that when terminal is detected currently as data network connection state downlink only can be closed, for upper
It for line link, can close, can not also close, the embodiment of the present invention is not especially limited, if terminal is not to uplink
Shutoff operation is executed, then user can carry out the transmission of data with each application of normal use, ensure basic communication function, example
Such as, user can send QQ message etc. to contact person by QQ.
S309, when detect the current network state of terminal be wireless network connection state when, starting receive in operation
The instant messaging information using corresponding server push of state.
Step S309 in the embodiment of the present invention can be found in the S105 in embodiment illustrated in fig. 1, and details are not described herein again.
As it can be seen that in the method depicted in fig. 3, terminal detects current network state, when detecting current network state
When for mobile network's connection status, terminal obtains current residual data traffic, and judges whether current residual data traffic is lower than
Preset flow threshold value stops to receive in operating status using corresponding server push if so, terminal closes downlink
The instant messaging information sent, when detecting current network state is wireless network connection state, terminal is restarted reception and is in
The instant messaging information using corresponding server push of operating status, to be in mobile network's connection status in terminal
When, pause receives the information of above-mentioned each server push, when terminal restores wireless network connection state, is further continued in reception
The information of each server push is stated, so as to avoid terminal when mobile network connects because receiving a large amount of of server push
When the communication information and caused by data traffic a large amount of consumption, can to avoid generating a large amount of network rate, thus avoid to
Bring unfavorable in family.
It is above-mentioned to illustrate the method for the embodiment of the present invention, following for convenient for better implementing the embodiment of the present invention
Above scheme is correspondingly also provided below for cooperating the associated terminal for implementing above scheme.
Fig. 4 is referred to, Fig. 4 is a kind of structural schematic diagram of terminal 40 provided in an embodiment of the present invention.As shown in figure 4, should
Terminal 40 includes: network detection module 401, link control module 403 and information receiving module 405, wherein
Network detection module 401, for detecting the current network state of terminal 40;
Link control module 403, for detecting the current network state of terminal 40 for movement when network detection unit 401
When network connection state, downlink is closed, reception is in operating status to be using corresponding server push to stop
When the communication information;
Information receiving module 405, for detecting that the current network state of terminal 40 is wireless when network detection unit 401
When network connection state, starting receives the instant messaging information in operating status using corresponding server push.
It will be appreciated that the function of each functional unit of the terminal 40 of the present embodiment can be according to above-mentioned Fig. 1 embodiment of the method
Method specific implementation, details are not described herein again.
As an alternative embodiment, referring to Fig. 5, Fig. 5 is a kind of terminal 40 provided in an embodiment of the present invention
Structural schematic diagram.The terminal 40 includes: network detection module 401, link control module 403 and information receiving module 405,
In, information receiving module 405 includes: second judgment unit 4051 and first information receiving unit 4053,
Second judgment unit 4051, for detecting that the current network state of terminal is wireless when network detection unit 401
When network connection state, judge whether the current electricity of terminal is higher than default power threshold;
First information receiving unit 4053, if it is pre- to judge that the current electricity of terminal is higher than for second judgment unit 4051
If power threshold, then starts and receive the instant messaging information in operating status using corresponding server push.
It will be appreciated that the function of each functional unit of the terminal 40 of the present embodiment can be according to above-mentioned Fig. 1 embodiment of the method
Method specific implementation, details are not described herein again.
As another optional embodiment, Fig. 6 is referred to, Fig. 6 is a kind of terminal 40 provided in an embodiment of the present invention
Structural schematic diagram.The terminal 40 includes: network detection module 401, link control module 403 and information receiving module 405,
In, information receiving module 405 includes: third judging unit 4055 and the second information receiving unit 4057,
Third judging unit 4055, for detecting that the current network state of terminal is wireless when network detection unit 401
When network connection state, judge whether the current Installed System Memory of terminal is higher than default memory threshold;
Second information receiving unit 4057, if judging that the current Installed System Memory of terminal is high for third judging unit 4055
In default memory threshold, then starts and receive the instant messaging information in operating status using corresponding server push.
It will be appreciated that the function of each functional unit of the terminal 40 of the present embodiment can be according to above-mentioned Fig. 1 embodiment of the method
Method specific implementation, details are not described herein again.
It is the structural schematic diagram of another terminal 40 provided in an embodiment of the present invention please also refer to Fig. 7, Fig. 7.Wherein, scheme
Terminal 40 shown in 7 is that terminal 40 as shown in Figure 4 optimizes.Compared with Fig. 4, the control of link described in Fig. 7
Module 403 includes: prompt unit 4031 and the first link control unit 4033, and the information receiving module 405 in Fig. 7 can be such as Fig. 4-
Information receiving module 405 in Fig. 6 any embodiment, wherein
Prompt unit 4031, for detecting that the current network state of terminal 40 is mobile network when network detection unit 401
When network connection status, prompt information is exported, prompt information is used to prompt to choose whether to receive application in operating status and corresponds to
Server push instant messaging information;
First link control unit 4033, if selecting suspension reception in operating status for prompt information for receiving
The instant messaging information using corresponding server push instruction, then close downlink, with stop receive in operation
The instant messaging information using corresponding server push of state.
It will be appreciated that the function of each functional unit of the terminal 40 of the present embodiment can be according to above-mentioned Fig. 2 embodiment of the method
Method specific implementation, details are not described herein again.
It is the structural schematic diagram of another terminal 40 provided in an embodiment of the present invention please also refer to Fig. 8, Fig. 8.Wherein, scheme
Terminal 40 shown in 8 is that terminal 40 as shown in Figure 4 optimizes.Information receiving module compared with Fig. 4, in Fig. 8
405 can be such as the information receiving module 405 in Fig. 4-Fig. 6 any embodiment, and link control module 403 described in Fig. 8 includes: to obtain
Take unit 4035, the first judging unit 4037 and the second link control unit 4039, wherein
Acquiring unit 4035, for detecting that the current network state of terminal 40 is mobile network when network detection unit 401
When network connection status, the data traffic of 40 current residual of terminal is obtained;
First judging unit 4037, for judging whether the data traffic of 40 current residual of terminal is lower than preset flow threshold
Value;
Second link control unit 4039, if judging the data of 40 current residual of terminal for the first judging unit 4037
Flow is lower than preset flow threshold value, then closes downlink, in operating status using corresponding server to stop to receive
The instant messaging information of push.
It will be appreciated that the function of each functional unit of the terminal 40 of the present embodiment can be according to above-mentioned Fig. 3 embodiment of the method
Method specific implementation, details are not described herein again.
Fig. 9 is referred to, is the structural schematic diagram of another terminal provided by the invention.Wherein, as shown in figure 9, terminal 90
It may include: processor 901, such as CPU, bus 902, input unit 903 and output device 903, memory 905.Wherein, always
Line 902 is for realizing the communication connection between these components;The touch panel of the concretely terminal of input unit 903, including touching
Screen and touch screen are touched, is used for detecting an operation instruction on the touch panel of the terminal, input unit 903 or communication interface are used
In the information or data for receiving other terminals or server transmission;Output device 903 may include the display screen of terminal
(Display), for exporting, showing image or data;Memory 905 can be high-speed RAM display, be also possible to it is non-not
Stable display (non-volatile memory), such as disk display, memory 905, which optionally can also be, to be located at
Display device far from aforementioned processor 901.As shown in figure 9, as can be in a kind of memory 905 of Computer display medium
Including operating system, network communication program, user interface program and the program for receiving pushed information.
In terminal 90 shown in Fig. 9, the reception that processor 901 can be used for storing in run memory 905 pushes letter
The program of breath, and execute following operation:
Detect the current network state of terminal;
When detecting the current network state of terminal is mobile network's connection status, downlink is closed, to stop to connect
Receive the instant messaging information in operating status using corresponding server push;
When detecting the current network state of terminal is wireless network connection state, starting receives in operating status
Using the instant messaging information of corresponding server push.
Further, processor 901 is executed when detecting the current network state of terminal is mobile network's connection status,
Downlink is closed, to stop to receive the instant messaging information in operating status using corresponding server push, comprising:
When detecting the current network state of terminal is mobile network's connection status, prompt information, prompt information are exported
For prompting to choose whether to receive the instant messaging information in operating status using corresponding server push;
Select suspension reception in operating status using corresponding server push for prompt information if receiving
The instruction of instant messaging information, then close downlink, in operating status using corresponding server push to stop to receive
The instant messaging information sent.
Further, processor 901, which executes to work as, detects that the current network state of terminal is mobile network's connection status
When, downlink is closed, to stop to receive the instant messaging information in operating status using corresponding server push, packet
It includes:
When detecting the current network state of terminal is mobile network's connection status, the data of terminal current residual are obtained
Flow;
Judge whether the data traffic of terminal current residual is lower than preset flow threshold value;
If so, closing downlink, to stop, reception is in operating status to be using corresponding server push
When the communication information.
Further, processor 901, which executes to work as, detects that the current network state of terminal is wireless network connection state
When, starting receives the instant messaging information in operating status using corresponding server push, comprising:
When detecting the current network state of terminal is wireless network connection state, whether the current electricity of terminal is judged
Higher than default power threshold;
If so, starting receives the instant messaging information in operating status using corresponding server push.
Further, processor 901, which executes to work as, detects that the current network state of terminal is wireless network connection state
When, starting receives the instant messaging information in operating status using corresponding server push, comprising:
When detecting the current network state of terminal is wireless network connection state, the current Installed System Memory of terminal is judged
Whether default memory threshold is higher than;
If so, starting receives the instant messaging information in operating status using corresponding server push.
It will be appreciated that the execution step of processor 901 is for details, reference can be made to Fig. 1 or the content of Fig. 2 or Fig. 3 embodiment, this
Place repeats no more.
In conclusion terminal detects current network state, when detecting that current network state is that mobile network connects shape
When state, terminal closes downlink, stops to receive the instant messaging letter in operating status using corresponding server push
Breath, when detecting current network state is wireless network connection state, terminal, which is restarted, receives application in operating status
The instant messaging information of corresponding server push, so that pause receives service when terminal is in mobile network's connection status
The information of device push is further continued for receiving the information of server push, to avoid when terminal restores wireless network connection state
Terminal when mobile network connects due to receiving a large amount of instant messaging information of server push caused by data traffic it is big
Amount consumption, can to avoid generating a large amount of network rate, thus avoid bringing to user it is unfavorable.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Unit in the terminal of that embodiment of the invention can be combined, divided and deleted according to actual needs.
Above disclosed is only a preferred embodiment of the present invention, cannot limit the power of the present invention with this certainly
Sharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and weighs according to the present invention
Benefit requires made equivalent variations, still belongs to the scope covered by the invention.
Claims (8)
1. a kind of method for receiving pushed information, which is characterized in that the described method includes:
Detect the current network state of terminal;
When detecting the current network state of terminal is mobile network's connection status, whether output allows to receive pushed information
Prompt information, the prompt information are used to prompt to choose whether to receive in operating status using corresponding server push
Instant messaging information;Select suspension reception described in operating status using corresponding for the prompt information if receiving
The instruction of the instant messaging information of server push, then close downlink, to stop to receive application pair in operating status
The instant messaging information for the server push answered;Keep uplink in the open state, the application in operating status
The uplink transmission information can be used;
When detecting the current network state of terminal is wireless network connection state, starting receives described in operating status
Using the instant messaging information of corresponding server push.
2. the method according to claim 1, wherein the method also includes:
When detecting the current network state of terminal is mobile network's connection status, the data of the terminal current residual are obtained
Flow;
Judge whether the data traffic of the terminal current residual is lower than preset flow threshold value;
If so, closing downlink.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
When detecting the current network state of terminal is wireless network connection state, whether the current electricity of the terminal is judged
Higher than default power threshold;
If so, starting receives the instant messaging information in operating status using corresponding server push.
4. method according to claim 1 or 2, which is characterized in that the method also includes:
When detecting the current network state of terminal is wireless network connection state, the current Installed System Memory of the terminal is judged
Whether default memory threshold is higher than;
If so, starting receives the instant messaging information in operating status using corresponding server push.
5. a kind of terminal, which is characterized in that the terminal includes:
Network detection module, for detecting the current network state of terminal;
Link control module, the link control module include: acquiring unit and the first link control unit;
Prompt unit, for detecting that the current network state of terminal is that mobile network connects shape when the network detection module member
When state, whether output allows to receive the prompt information of pushed information, and the prompt information is in for prompting to choose whether to receive
The instant messaging information using corresponding server push of operating status;
First link control unit, if selecting suspension reception described in operating status for the prompt information for receiving
The instant messaging information using corresponding server push instruction, then close downlink, with stop receive described in be in
The instant messaging information using corresponding server push of operating status;
Keep uplink in the open state, the application in operating status can be used the uplink and send letter
Breath;
Information receiving module, for detecting that the current network state of terminal is wireless network connection when the network detection module
When state, starting receives the instant messaging information in operating status using corresponding server push.
6. terminal according to claim 5, which is characterized in that the link control module further include:
Acquiring unit, for detecting that the current network state of terminal is mobile network's connection status when the network detection module
When, obtain the data traffic of the terminal current residual;
First judging unit, for judging whether the data traffic of the terminal current residual is lower than preset flow threshold value;
Second link control unit, if judging that the data traffic of the terminal current residual is low for first judging unit
In the preset flow threshold value, then downlink is closed, it is in operating status using corresponding server push to stop to receive
The instant messaging information sent.
7. terminal according to claim 5 or 6, which is characterized in that the information receiving module includes:
Second judgment unit, for detecting that the current network state of terminal is wireless network connection when the network detection module
When state, judge whether the current electricity of the terminal is higher than default power threshold;
First information receiving unit, if it is described pre- to judge that the current electricity of the terminal is higher than for the second judgment unit
If power threshold, then starts and receive the instant messaging information in operating status using corresponding server push.
8. terminal according to claim 5 or 6, which is characterized in that the information receiving module includes:
Third judging unit, for detecting that the current network state of terminal is wireless network connection when the network detection module
When state, judge whether the current Installed System Memory of the terminal is higher than default memory threshold;
Second information receiving unit, if judging that the current Installed System Memory of the terminal is higher than institute for the third judging unit
Default memory threshold is stated, then starts and receives the instant messaging letter in operating status using corresponding server push
Breath.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511033721.3A CN105635994B (en) | 2015-12-30 | 2015-12-30 | A kind of method and terminal receiving pushed information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511033721.3A CN105635994B (en) | 2015-12-30 | 2015-12-30 | A kind of method and terminal receiving pushed information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105635994A CN105635994A (en) | 2016-06-01 |
CN105635994B true CN105635994B (en) | 2019-08-20 |
Family
ID=56050390
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511033721.3A Active CN105635994B (en) | 2015-12-30 | 2015-12-30 | A kind of method and terminal receiving pushed information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105635994B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106445792B (en) * | 2016-09-27 | 2019-03-12 | 深圳市邦华电子有限公司 | A kind of update notification treating method and apparatus |
CN108601048B (en) * | 2018-04-17 | 2021-09-28 | 维沃移动通信有限公司 | Flow control method and mobile terminal |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103634386A (en) * | 2013-11-22 | 2014-03-12 | 北京奇虎科技有限公司 | Method and device for downloading application by client end application program |
CN103685474A (en) * | 2013-11-21 | 2014-03-26 | 中兴通讯股份有限公司 | File downloading method and file downloading device |
CN103781057A (en) * | 2014-01-08 | 2014-05-07 | 北京奇虎科技有限公司 | Method and device for silently downloading upgrade package |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685330A (en) * | 2012-08-31 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Data transmission method and data transmission device |
CN105142184A (en) * | 2015-06-12 | 2015-12-09 | 联想(北京)有限公司 | Flow control method and electronic device |
-
2015
- 2015-12-30 CN CN201511033721.3A patent/CN105635994B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685474A (en) * | 2013-11-21 | 2014-03-26 | 中兴通讯股份有限公司 | File downloading method and file downloading device |
CN103634386A (en) * | 2013-11-22 | 2014-03-12 | 北京奇虎科技有限公司 | Method and device for downloading application by client end application program |
CN103781057A (en) * | 2014-01-08 | 2014-05-07 | 北京奇虎科技有限公司 | Method and device for silently downloading upgrade package |
Also Published As
Publication number | Publication date |
---|---|
CN105635994A (en) | 2016-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2977854B1 (en) | Method, apparatus, and user terminal for removing malicious power consuming application | |
CN110493892B (en) | Network connection method and device, storage medium and communication terminal | |
US20150365360A1 (en) | Method and apparatus for processing push message in notification center of mobile terminal, and storage medium | |
CN110446235B (en) | Call mode determination method and device, electronic equipment and storage medium | |
CN107483092B (en) | Antenna switching method, device and terminal | |
CN107797841B (en) | Window control method and device, terminal equipment and storage medium | |
CN106775809B (en) | Method and device for cleaning memory of mobile terminal and mobile terminal | |
CN105677477A (en) | Method and device for optimizing application program resources and electronic equipment | |
CN110996376A (en) | Service data transmission method, device, storage medium and terminal | |
CN102710851B (en) | Method and device for mode switching | |
CN102638417A (en) | Information communication method, device and system | |
CN104822174B (en) | A kind of communication pattern method of adjustment | |
CN103973547A (en) | Picture display method and device | |
CN104539791A (en) | Method and device for performing instant messaging in communication terminal | |
CN104469970B (en) | A kind of method and apparatus reconnecting data network | |
CN101815124A (en) | Webpage browsing method, mobile terminal and network equipment | |
CN107132905A (en) | Terminal communication control method and terminal | |
CN105635994B (en) | A kind of method and terminal receiving pushed information | |
CN105430435B (en) | The method and system of pushing video file download in a kind of IOS system | |
CN104038642B (en) | A kind of method and device responding incoming call | |
CN110989820A (en) | Method and device for controlling power consumption of processor, processor and electronic device | |
CN110536389A (en) | Method and device for reducing power consumption of terminal equipment and terminal equipment | |
CN112395029A (en) | Application program interface display method and device, electronic equipment and storage medium | |
CN108462734A (en) | Message receival method and device | |
CN105760048A (en) | Method and device for processing notice |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |