WO2017063604A1 - Message push method, mobile terminal and message push server - Google Patents

Message push method, mobile terminal and message push server Download PDF

Info

Publication number
WO2017063604A1
WO2017063604A1 PCT/CN2016/102277 CN2016102277W WO2017063604A1 WO 2017063604 A1 WO2017063604 A1 WO 2017063604A1 CN 2016102277 W CN2016102277 W CN 2016102277W WO 2017063604 A1 WO2017063604 A1 WO 2017063604A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
mobile terminal
time
push
server
Prior art date
Application number
PCT/CN2016/102277
Other languages
French (fr)
Chinese (zh)
Inventor
刁琳琳
Original Assignee
珠海格力电器股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 珠海格力电器股份有限公司 filed Critical 珠海格力电器股份有限公司
Publication of WO2017063604A1 publication Critical patent/WO2017063604A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0254Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity detecting a user operation or a tactile contact or a motion of the device
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of communications, and in particular to a message push method and a mobile terminal and a message push server.
  • the push message merchant adopts the server to actively push the message to the user, regardless of whether the message is still valid for the user, which causes information redundancy and easily causes misunderstanding of the user, such as promotion activities of some merchants, if valid. Expired, but users will also receive this expired promotion push message, at which point users may be prone to misunderstandings and even unnecessary disputes.
  • the server actively pushes the message to the user, regardless of the situation of the user, for example, the network state of the user's mobile terminal is a method of transferring data traffic or a wireless network, which may easily waste network traffic of the user's mobile terminal. At the same time, the power of the mobile terminal is wasted.
  • the push message mechanism of the merchant pushing the message generally uses the push mode to push the message to the user.
  • the server actively pushes the message to the user's mobile terminal, that is, when there is a message to be pushed in the server, The message will be pushed to the user's mobile terminal.
  • this method cannot fully consider the validity of the message to the user. If the message that the user has expired is still sent to the user at this moment, misunderstanding may occur. In addition, the dispute is caused; in addition, since the manner of pushing the message is actively performed on the user's mobile device, the network mode of the user's mobile device when the user receives the push message cannot be fully considered, so that the user's mobile terminal is inevitably generated.
  • Mobile data traffic also generates additional capital expenditures that the user may not be willing to, and also consumes the power of the user's mobile device when receiving the push message, which may cause the user to have a negative impression on the merchant pushing the message, so that the merchant does not Positive effect on pushing messages .
  • the main purpose of the present invention is to provide a message pushing method and a mobile terminal and a message pushing server to solve the problem of wasting network traffic and power of the mobile terminal.
  • a message push method includes: detecting whether the mobile terminal is bright; when detecting that the mobile terminal is bright, the mobile terminal sends a message pull request to the message push server, wherein the message pull request is used to request the message push server to push to the mobile terminal.
  • the message, the message push server is configured to push the message to the mobile terminal after receiving the message pull request; and the mobile terminal receives the message pushed by the server push server.
  • a mobile terminal includes: a detecting unit, configured to detect whether the mobile terminal is bright; and a sending unit, configured to send a message pull request to the message pushing server when detecting that the mobile terminal is bright, wherein the message pull request is used for the request
  • the message push server pushes a message to the mobile terminal, the message push server is configured to push the message to the mobile terminal after receiving the message pull request, and the receiving unit is configured to receive the message pushed by the message push server.
  • a message push server includes: a receiving unit, configured to receive a message pull request from the mobile terminal, where the mobile terminal sends a message pull request to the message push server when the screen is bright, and the message pull request is used to request the message push server to The mobile terminal pushes the message; and the pushing unit is configured to push the message to the mobile terminal after receiving the message pull request.
  • a mobile terminal includes: a sensor, configured to detect whether the mobile terminal is bright; the communication unit is configured to: when detecting that the mobile terminal is bright, send a message pull request to the message push server, and receive a message pushed by the message push server, where The message pull request is used to request the message push server to push a message to the mobile terminal, and the message push server is configured to push the message to the mobile terminal after receiving the message pull request.
  • the mobile terminal it is detected whether the mobile terminal is bright or not; when detecting that the mobile terminal is bright, the mobile terminal sends a message pull request to the message push server and the mobile terminal receives the message pushed by the message push server, when the mobile terminal is illuminated Sending a message pull request to the message push server solves the problem of wasting network traffic and power of the mobile terminal, thereby achieving the effect of saving network traffic and power of the mobile terminal.
  • FIG. 1 is a flow chart of a message pushing method according to a first embodiment of the present invention
  • FIG. 2 is a flow chart of a message pushing method according to a second embodiment of the present invention.
  • FIG. 3 is a flow chart of a message pushing method according to a third embodiment of the present invention.
  • FIG. 4 is a flowchart of a message pushing method according to a fourth embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a mobile terminal according to a first embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a mobile terminal according to a second embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a mobile terminal according to a third embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a message push server according to a first embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a message push server in accordance with a second embodiment of the present invention.
  • FIG. 1 is a flowchart of a data processing method according to a first embodiment of the present invention. As shown in FIG. 1, the method includes the following steps S101 to S103:
  • Step S101 detecting whether the mobile terminal is bright.
  • the mobile terminal of the present invention includes a mobile phone, a computer, a digital broadcast terminal, a messaging device, and a game
  • a mobile phone such as a console, a tablet device, a medical device, a fitness device, and a personal digital assistant, are described in the embodiment by using a mobile phone as an example.
  • the bright screen refers to the state in which the user's mobile terminal wakes up from the state of the dark screen to the bright screen, and can wake up the screen to the bright screen by pressing the switch button of the body or other state that enables the mobile terminal to sleep from the dark screen.
  • the way the state such as some mobile phone cases with smart wake-up, also causes the phone to light up when it is turned on.
  • the user only checks whether there is a message notification on the screen when the mobile phone is on the screen. Therefore, for the message that the real-time performance of the push service is not high, the message push is required only when the mobile terminal is detected to be bright.
  • Step S102 When detecting that the mobile terminal is bright, the mobile terminal sends a message pull request to the message push server, where the message pull request is used to request the message push server to push the message to the mobile terminal, and the message push server is used to receive the message. After the message pull request, the message is pushed to the mobile terminal.
  • the mobile terminal When the mobile terminal is detected to be bright, the bright time of the mobile terminal is acquired, and the mobile terminal sends the bright time to the message push server, wherein the message push server is further configured to determine, according to the bright screen time, a message that needs to be pushed to the mobile terminal. That is to say, after detecting the bright screen of the mobile phone, obtaining the bright time of the mobile phone, recording the current bright time, and sending the current bright time to the message pushing server, and the message pushing server determines the need according to the received bright time. What messages are pushed to the phone.
  • the mobile terminal After obtaining the bright time of the mobile terminal, the mobile terminal acquires the latest historical query time, where the latest historical query time is the time when the mobile terminal sends the message pull request to the message push server last time; and the mobile terminal determines that the bright screen time distance is the latest. Whether the time interval of the historical query time is greater than the preset time interval, wherein the mobile terminal sends a message pull request to the message push server when determining that the time interval between the bright screen time and the latest historical query time is greater than the preset time interval.
  • the message that the real-time performance of some push services is not high, it is not necessary to obtain the message push every time the mobile phone is bright, and only need to obtain a message push after a certain time interval.
  • query the latest historical query time of the mobile phone that is, the time when the latest message is pushed, and determine the current time of the mobile phone and the latest time to obtain the message.
  • the pushed time is greater than a certain time interval, for example, 20 minutes
  • the message pull request is sent to the message push server. If the time when the current mobile phone is on the screen and the time when the latest message is pushed is not more than 20 minutes, the message pull request is not sent to the message push server.
  • the mobile terminal After the mobile terminal sends a message pull request to the message push server, the mobile terminal receives the push message that meets the first preset condition, where the message push server is configured to obtain the push message that meets the first preset condition according to the bright screen time, and is satisfied.
  • the push message of the first preset condition is a message between the bright time and the latest historical push time
  • the latest historical push time is the time when the message push server pushes the message to the mobile terminal last time. Its In the middle, the latest historical query time and the latest historical push time are the same time.
  • the message push server pushes a message between the latest history push time and the bright screen time to the mobile phone.
  • the bright time is the time when the mobile terminal first lights up, after the mobile terminal sends a message pull request to the message push server, the mobile terminal receives the latest message pushed by the message push server, wherein the message push server is used according to the mobile terminal.
  • the bright time determines the most recent message that needs to be pushed.
  • the mobile terminal lights up for the first time, for example, the mobile phone is newly bought, there is no latest historical push time.
  • the mobile phone sends a message pull request to the message push server, and the message push server according to the bright time of the mobile phone.
  • the latest message is pushed to the mobile phone.
  • the time when the message push server pushes the message is taken as the latest historical push time.
  • the mobile terminal when detecting that the mobile terminal is bright, detecting the network status of the mobile terminal; determining whether the mobile terminal is in the WIFI connection state; and when determining that the mobile terminal is in the WIFI connection state, the mobile terminal sends a message pull to the message push server. request.
  • the network state of the mobile phone at this time is detected. If the network state of the mobile phone is the WIFI connection state, the time of the current mobile phone bright screen and the time of the latest acquisition of the message are greater than a certain time. The time interval, the mobile phone sends a message pull request to the server; if the network state of the mobile phone is not the WIFI connection state, even if the current mobile phone bright screen time and the latest historical push time are greater than a certain time interval, the mobile phone does not send the message to the message push server. The message pull request.
  • This function can be set by the user at the mobile terminal itself, for example, it can be set to always allow, only allowed and always allowed under WIFI, to adapt to the message push needs in different situations.
  • Step S103 The mobile terminal receives the message pushed by the message push server.
  • the mobile terminal When detecting that the mobile terminal is bright, the mobile terminal sends a message pull request to the message push server. At this time, the message push server pushes the message to the terminal according to the received terminal brightness time, and the mobile terminal receives the message pushed by the server push server.
  • the message that the mobile terminal receives the message push server push is divided into three cases:
  • the latest historical push time obtained is empty, that is, the user's mobile terminal sends a message pull request to the message push server for the first time, and the message push server will return the latest push message to the user.
  • the second case is that the latest historical push time obtained is not empty but the new push message is empty, that is, the message push server compares the latest historical push time with the terminal bright time. There is no new push message between the two moments that needs to be pushed to the terminal, then the new push message returned is empty, the user's mobile terminal will not receive the new push message; the third case is the latest history of the acquisition.
  • the push time is not empty and the new push message is not empty, that is to say, the message push server compares the latest historical push time with the terminal bright time, if there is one or one between the two moments In the above new push message, the message push server will push the new push message to the mobile terminal, and the mobile terminal will respond.
  • the message push server will push the mobile terminal according to the validity of the push message, that is, when there are many messages to be pushed between the latest historical query time and the current bright time, according to the user preset, only Push or prioritize a certain number of messages that are closest to the time of this bright screen. For example, if the user does not have a bright screen or no network for 3 hours, after the screen is bright and connected, there may be 200 push messages. If all the buttons are pushed to the terminal, they will be ignored by the user because the number of messages is too large. Important news, therefore, according to the user's preset, only push or preferentially push the latest 50 messages.
  • the advantage of this strategy is that even if the mobile terminal is in a state where it cannot receive push messages for a long time, the next time it can receive the message. No push messages that are valid for the user are missed because there are too many push messages received. In the above three cases, a new latest historical push time will be returned to the mobile terminal, and the user's mobile terminal needs to record and record this new latest historical push time.
  • the mobile terminal when the message push server sends a push message that is not empty to the mobile terminal, the mobile terminal will respond, and the response manner of the mobile terminal may be various.
  • the notification bar lists all returned.
  • the user's mobile terminal's APP lists all returned push messages, and so on.
  • the user's mobile terminal can respond in many ways. Since it is not the core of the present invention, it will not be detailed here.
  • the mobile terminal sends a message pull request to the message push server when detecting that the mobile terminal is bright.
  • the message pull request is used to request the message push server to push the message to the mobile terminal.
  • the message push server is configured to push the message to the mobile terminal after receiving the message pull request; and the mobile terminal receives the message pushed by the message push server, thereby implementing the message push without receiving the message when the terminal is not in the bright screen state, thereby achieving the saving of the mobile The effect of the network traffic and power of the terminal.
  • the message pushing method includes the following steps:
  • Step S201 Obtain a time anchor of the last query server.
  • the time anchor point in this embodiment refers to the time when the server was last queried, that is, the latest history push time in Embodiment 1, and the server side is also the message push server in Embodiment 1.
  • obtaining the time anchor point of the last query server is obtained by an access request sent by the user's mobile terminal to the server, and the time anchor of the last query server is attached in the request.
  • the request method of the http can be attached with data to perform the interaction between the client and the server.
  • the time anchor point in the embodiment of the present invention is also passed. Additional data passes the data to the server. Since it is an access request initiated by the user's mobile terminal, this time anchor is also provided by the user's mobile terminal.
  • the save of the time anchor is recorded on the user's mobile terminal, and the save record event is performed when the user's mobile terminal successfully sends a request to the server, and the server successfully returns a response event, regardless of whether the server returns the update.
  • the user's mobile terminal saves the time anchor record of the response event when receiving the return response event sent by the server, so that the user's mobile terminal anchors the time of the record when sending the access request to the server next time. Points are passed to the server as additional data.
  • step S202 it is determined whether the time anchor point is empty.
  • step S204 is performed; if the time anchor is not empty, it indicates that the mobile terminal is not the first time to send an access request to the server.
  • step S203 is performed.
  • step S203 all the unexpired push messages are returned, and the current access time is a new anchor point.
  • the time anchor When it is determined that the time anchor is not empty, it indicates that the mobile terminal does not issue an access request to the server for the first time, and when the mobile terminal sends an access request to the server, the time anchor of the record is transmitted to the server by using additional data.
  • the server returns a push message after the time anchor according to the received time anchor.
  • the push message may be set in advance. The number, for example, 50, ensures that even if the mobile terminal is in a state in which it cannot receive the push message for a long time, it will not miss any push message valid to the user because the push message received too much will be received the next time the message can be received.
  • the user's mobile terminal saves the time anchor record of the response event when receiving the return response event sent by the server, so that the user's mobile terminal anchors the time of the record when the next time the access request is sent to the server. Passed to the server as additional data.
  • step S204 the latest push is returned, and the current access time is a new anchor point.
  • time anchor is empty, it means that the mobile terminal sends an access request to the server for the first time, and then returns the latest push to the mobile terminal, and the mobile terminal receives the time anchor of the response event after receiving the server.
  • the time anchor of the record is transmitted to the server as additional data.
  • time anchor point it is determined whether the time anchor point is empty. If the time anchor point is empty, the latest push is returned, and the current access time is used as a new anchor point; if the time anchor point is not empty, all unexpired returns are returned. Push Interest rate, and this access time as a new anchor point, to achieve the effect of saving mobile network traffic and power.
  • the message pushing method includes the following steps:
  • Step S301 Acquire a bright screen event of the terminal.
  • the bright screen refers to the state in which the user's mobile terminal wakes up from the state of the dark screen to the bright screen, and can wake up the screen to the bright screen by pressing the switch button of the body or other state that enables the mobile terminal to sleep from the dark screen.
  • the way the state such as some mobile phone cases with smart wake-up, also causes the phone to light up when it is turned on.
  • the user only checks whether there is a message notification on the screen when the mobile phone is on the screen. Therefore, for the message that the real-time performance of the push service is not high, the message push is required only when the mobile terminal is detected to be bright.
  • Obtaining the brightness time of the terminal can be obtained by means of a sensor or the like.
  • Step S302 acquiring the terminal system time.
  • the system time of the terminal is obtained when the screen is bright, and the obtained screen time is used to determine whether the time interval between the screen time and the latest history query time exceeds the preset time, and the obtained screen time is still
  • the message push server determines the message that needs to be pushed to the mobile terminal according to the bright screen time.
  • Step S303 determining whether the time interval between the bright screen time and the time anchor point is less than a preset time.
  • step S304 After the system time of the terminal is obtained, it is determined whether the time interval between the brightness time of the terminal and the time anchor is less than the preset time, wherein the time anchor point is the latest historical query time in the first embodiment, and the bright time is determined. After the time interval of the time anchor is not less than the preset time, step S304 is performed. After determining that the time interval between the bright screen time and the time anchor point is less than the preset time, the process ends and waits for the next bright screen.
  • Step S304 determining whether the network status and the user setting allow access to the server.
  • the time interval between the bright screen time and the time anchor point is not less than the preset time, it is considered that the message push can be received at this time, and before the access request is sent to the server, it is necessary to determine whether the current network state and the user setting allow access to the server, for example, User settings include always disallowed, only allowed and always allowed under WIFI. If the user is set to always not allowed in order to save power or save data traffic, the access request is not sent to the server even if the bright screen time is not less than the preset time.
  • Step S305 is performed, if not a WIFI network connection, the process ends; if the user is set to always allow, Step S305 is executed to send an access request to the server.
  • Step S305 sending an access request to the server.
  • the server After determining that the network status and the user setting allow access to the server, the server sends an access request to the server.
  • the message pull request is sent to the server, and the bright time is sent to the server in the manner of additional data, so that the server passes the bright screen. Time to determine the message that needs to be pushed to the mobile terminal.
  • the latest historical query time needs to be sent to the server, and the server will push the message between the latest historical query time and the bright screen time to the mobile terminal.
  • the terminal unifies the terminal system time and the server time through the network to obtain a more accurate push message.
  • the time interval of the bright screen and the time anchor point is determined to be less than the preset time, and the time interval between the bright screen time and the time anchor point is not less than the preset time. After that, it is determined whether the network status and the user setting allow access to the server, and after determining that the network status and the user setting allow access to the server, sending an access request to the server, thereby achieving the effect of saving network traffic and power of the mobile terminal.
  • the message pushing method includes the following steps:
  • Step S401 the message push server receives a message pull request from the mobile terminal.
  • the mobile terminal sends a message pull request to the message push server when the screen is bright, and the message pull request is used to request the message push server to push the message to the mobile terminal.
  • the message pushing server before the message pushing server pushes the message to the mobile terminal, the message pushing server receives the bright time sent by the mobile terminal; the message pushing server determines the message that needs to be pushed to the mobile terminal according to the bright screen time, wherein the message pushing server sends the message to the mobile terminal. The mobile terminal pushes the determined message.
  • the message pushing server determines that the message to be pushed to the mobile terminal according to the brightness time includes: the message pushing server acquires the push message that meets the first preset condition according to the bright screen time, and the push message that satisfies the first preset condition is the bright time and The latest historical push time is the time when the message push server pushes the message to the mobile terminal last time, wherein the message push server pushes the message that meets the first preset condition to the mobile terminal.
  • the message push server pushes a message to the mobile terminal based on the message pull request of the mobile terminal. That is to say, the mobile terminal acquires the current bright screen time when the screen is bright, the mobile terminal sends the bright screen time to the message push server, and the message push server determines the message that needs to be pushed to the mobile terminal according to the bright screen time.
  • the mobile phone Taking the mobile phone as an example, after detecting the bright screen of the mobile phone, obtaining the bright time of the mobile phone, recording the current bright time, and sending the current bright time to the message pushing server, and the message pushing server determines according to the received bright time. What messages need to be pushed to on the phone.
  • the mobile terminal After obtaining the bright time of the mobile terminal, the mobile terminal acquires the latest historical query time, where the latest historical query time is the time when the mobile terminal sends the message pull request to the message push server last time; and the mobile terminal determines that the bright screen time distance is the latest. Whether the time interval of the historical query time is greater than the preset time interval, wherein the mobile terminal sends a message pull request to the message push server when determining that the time interval between the bright screen time and the latest historical query time is greater than the preset time interval.
  • the message that the real-time performance of some push services is not high, it is not necessary to obtain the message push every time the mobile phone is bright, and only need to obtain a message push after a certain time interval.
  • query the latest historical query time of the mobile phone that is, the time when the latest message is pushed, and determine the current time of the mobile phone and the latest time to obtain the message.
  • the pushed time is greater than a certain time interval, for example, 20 minutes
  • the message pull request is sent to the message push server. If the time when the current mobile phone is on the screen and the time when the latest message is pushed is not more than 20 minutes, the message pull request is not sent to the message push server.
  • the number of push messages may be set in advance to ensure that the mobile terminal cannot receive the push message for a long time.
  • the state, when the next time the message can be received, will not miss any push messages valid to the user because there are too many push messages received at one time.
  • the message push server receives the message pull request from the mobile terminal, and the message push server pushes the message to the mobile terminal after receiving the message pull request, thereby achieving the effect of saving network traffic and power of the mobile terminal.
  • a mobile terminal is provided, and the mobile terminal can be used to perform the message pushing method according to the embodiment of the present invention.
  • the message pushing method in the embodiment of the present invention can also be moved by using the embodiment of the present invention.
  • the terminal is executed.
  • FIG. 5 is a schematic diagram of a mobile terminal in accordance with a first embodiment of the present invention. As shown in FIG. 5, the mobile terminal includes:
  • the detecting unit 10 is configured to detect whether the mobile terminal is bright.
  • the mobile terminal of this embodiment includes a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like, and the mobile phone in this embodiment
  • a mobile phone in this embodiment
  • the specific embodiments are discussed as an example.
  • Bright screen refers to the state in which the user's mobile terminal wakes up from the state of the dark screen to the bright screen, and can be pressed by pressing it.
  • the detecting unit 10 detects whether the mobile terminal is bright. For example, whether the screen is bright or not can be detected by the sensor, including detecting the brightness of the screen, or detecting whether the display unit circuit of the screen works to obtain whether the mobile terminal is bright.
  • the sending unit 20 is configured to send a message pull request to the message push server when the mobile terminal is detected to be bright, wherein the message pull request is used to request the message push server to push the message to the mobile terminal, and the message push server is configured to receive Push the message to the mobile terminal after the message pull request.
  • the mobile terminal further includes an obtaining unit, configured to acquire a bright time of the mobile terminal when the detecting unit 10 detects that the mobile terminal is bright, and the sending unit 20 is further configured to send the bright time to the message pushing server.
  • the sending unit 20 sends a bright time to the message pushing server when sending the message pull request to the message pushing server, and the message pushing server is further configured to determine a message that needs to be pushed to the mobile terminal according to the bright screen time. That is to say, after the detecting unit 10 detects that the mobile phone is bright, the acquiring unit acquires the bright time of the mobile phone, records the current bright time, and sends a message pull request to the message pushing server by the sending unit 20 and simultaneously sends the current bright time. To the message push server, the message push server determines which messages need to be pushed to the mobile phone according to the received bright time sent by the sending unit 20.
  • the message that the real-time performance of some push services is not high, it is not necessary to obtain the message push every time the mobile phone is bright, and only need to obtain a message push after a certain time interval.
  • the detecting unit 10 detects the bright screen of the mobile phone and records the current bright screen time, it queries the latest historical pushing time of the mobile phone, that is, the time when the latest message is pushed, and determines the current time and the latest time of the mobile phone brightening. Whether the time for obtaining the message push is greater than a certain time interval, for example, 20 minutes.
  • the sending unit 20 sends a message pull request to the message pushing server. If the time when the current mobile phone is on the screen and the time when the latest acquisition message is pushed is not more than 20 minutes, the sending unit 20 does not send a message pull request to the message push server.
  • the mobile terminal is the first time to light up, for example, the mobile phone is newly bought, at this time, there is no latest historical push time.
  • the sending unit 20 sends a message pull request to the message push server, and the message is pushed.
  • the server pushes the latest message to the mobile phone according to the bright time of the mobile phone. At this time, the time when the message push server pushes the message is taken as the latest historical push time.
  • the mobile terminal when detecting that the mobile terminal is bright, detecting the network status of the mobile terminal; determining whether the mobile terminal is in the WIFI connection state; and when determining that the mobile terminal is in the WIFI connection state, the mobile terminal sends a message pull to the message push server. request.
  • the network state of the mobile phone at this time is detected. If the network state of the mobile phone is the WIFI connection state, the time of the current mobile phone brightening is the last time. When the time for obtaining the message is greater than a certain time interval, the sending unit 20 sends a message pull request to the server; if the network status of the mobile phone is not the WIFI connection status, even if the current mobile phone bright time and the latest historical push time are greater than a certain time At the interval, the transmitting unit 20 also does not send a message pull request to the message push server.
  • the receiving unit 30 is configured to receive a message pushed by the message pushing server.
  • the receiving unit 30 receives the message pushed by the message pushing server into three cases:
  • the latest historical push time obtained is empty, that is, the user's mobile terminal sends a message pull request to the message push server for the first time, and the receiving unit 30 receives the latest push returned by the message push server.
  • the second case is that the latest historical push time is not empty but the push message received by the receiving unit 30 is empty, that is, the message push server compares the latest historical push time with the terminal's bright time.
  • the receiving unit 30 receives the returned new push message is empty, the receiving unit 30 does not receive the new push message; the third case is The latest historical push time obtained is not empty and the new push message is not empty, that is to say, the message push server compares the latest historical push time with the terminal bright time, if between the two moments There is one or more new push messages, and the receiving unit 30 will receive the message pushed by the server push server. The mobile terminal will respond.
  • the message push server will push the mobile terminal according to the validity of the push message, that is, when there are many messages to be pushed between the latest historical query time and the current bright time, according to the user preset, only Push or prioritize a certain number of messages that are closest to the time of this bright screen. For example, if the user does not have a bright screen or no network for 3 hours, after the screen is bright and connected, there may be 200 push messages. If the receiving unit 30 receives all of them, the user will be oversized because the number of messages is too large. Ignore important messages, so we can push or preferentially push the latest 50 messages according to the user's preset settings.
  • the advantage of this strategy is that even if the mobile terminal is in a state where it cannot receive push messages for a long time, it can receive messages the next time. When you do not receive too many push messages, you will miss any push messages that are valid for the user. In the above three cases, the receiving unit 30 will receive a new latest historical push time, and the user's mobile terminal needs to record and record this new latest historical push time.
  • the detecting unit 10 is configured to detect whether the mobile terminal is bright or not, and the sending unit 20 is configured to send a message pull request to the message pushing server when detecting that the mobile terminal is bright, wherein the message pull request is used for
  • the request message push server pushes a message to the mobile terminal
  • the message push server is configured to push the message to the mobile terminal after receiving the message pull request
  • the receiving unit 30 is configured to receive the message pushed by the message push server.
  • the message pull request is sent to the message push server and the push message is received, thereby reducing the number of message pushes, thereby achieving the effect of saving network traffic and power of the mobile terminal.
  • FIG. 6 is a schematic diagram of a mobile terminal according to a second embodiment of the present invention. As shown in FIG. 6, the mobile terminal package include:
  • the sensor 40 is configured to detect whether the mobile terminal is bright.
  • the photoelectric sensor is used to detect the brightness at the screen of the terminal to detect whether the terminal is bright, or the current sensor is used to detect whether the screen circuit works to detect whether the mobile terminal is bright.
  • the communication unit 50 is configured to: when detecting that the mobile terminal is bright, send a message pull request to the message push server, and receive a message pushed by the message push server, wherein the message pull request is used to request the message push server to push the mobile terminal.
  • the message push server is configured to push the message to the mobile terminal after receiving the message pull request.
  • the communication unit 50 sends the bright time to the message pushing server, wherein the message pushing server is further configured to determine that the mobile terminal needs to be pushed according to the bright screen time. Message.
  • the mobile terminal acquires the latest historical query time, where the latest historical query time is the time when the mobile terminal sends the message pull request to the message push server last time; and the mobile terminal determines to light Whether the time interval of the screen time from the latest historical query time is greater than a preset time interval, wherein the mobile terminal sends a message to the communication unit 50 message push server when determining that the time interval between the bright screen time and the latest historical query time is greater than the preset time interval Pull the request.
  • the communication unit 50 After the communication unit 50 sends a message pull request to the message push server, the communication unit 50 is further configured to receive a push message that satisfies the first preset condition, where the message push server is configured to obtain the first preset condition according to the bright screen time.
  • the push message, the push message satisfying the first preset condition is a message between the bright time and the latest historical push time, and the latest historical push time is the time when the message push server pushes the message to the mobile terminal last time.
  • the communication unit 50 can be used for transmitting and receiving information and receiving and transmitting signals during a call.
  • the communication unit can be a radio frequency (RF) circuit, a router, a modem, or the like.
  • RF circuits as communication units include, but are not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, and low noise. Low Noise Amplifier (LNA), duplexer, etc.
  • SIM Subscriber Identity Module
  • LNA Low Noise Amplifier
  • the communication unit can also communicate with the network and other devices through wireless communication.
  • Wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code). Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), etc.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • Code Division Multiple Access Code Division Multiple Access
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • the memory can be used to store software programs and modules, and the processor executes various functional applications and data processing by running software programs and modules stored in the memory.
  • the memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to the terminal. Data created by the use of the device (such as audio data, phone book, etc.).
  • the memory may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory can also include a memory controller to provide access to the memory by the processor and the input unit.
  • This embodiment is used by the sensor 40 to detect whether the mobile terminal is bright.
  • the communication unit 50 is configured to: when detecting that the mobile terminal is bright, send a message pull request to the message push server, and receive a message pushed by the message push server, wherein the message pull request is used to request the message push server to push the mobile terminal.
  • the message push server is configured to push the message to the mobile terminal after receiving the message pull request. After the terminal is detected to be bright, the message pull request is sent to the message push server and the push message is received, thereby achieving the effect of saving network traffic and power of the mobile terminal.
  • FIG. 7 is a schematic diagram of a mobile terminal in accordance with a third embodiment of the present invention. As shown in FIG. 7, the mobile terminal includes:
  • the processing component 110 includes a processor 111 of one or more processing cores, and the processor is a control center of the terminal device, and connects various parts of the entire mobile phone by using various interfaces and lines, by running or executing a software program stored in the memory and / or module, as well as calling data stored in the memory, performing various functions and processing data of the terminal device, thereby performing overall monitoring of the mobile phone.
  • the processor may include one or more processing cores; the processor may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application, etc., and performs modulation and demodulation processing.
  • the device mainly handles wireless communication.
  • the above modem processor may also not be integrated into the processor.
  • the communication unit 120 is configured to receive and transmit information during a message or a call, and the communication unit 120 may be a radio frequency (RF) circuit, a router, a modem, or the like. Specifically, when the communication unit 120 is an RF circuit, the downlink information of the base station is received and processed by one or more processors; in addition, data related to the uplink is transmitted to the base station.
  • RF circuits as communication units include, but are not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, and low noise. Low Noise Amplifier (LNA), duplexer, etc.
  • Wireless communication 120 may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), Using General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (Long Term Evolution) , referred to as LTE), e-mail, Short Messaging Service (SMS), etc.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • the memory can be used to store software programs and modules, and the processor executes various functional applications and data processing by running software programs and modules stored in the memory.
  • the memory mainly includes a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function, such as a sound playing function, an image playing function, and the like; and the storage data area can be stored according to the use of the terminal device.
  • the memory may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory can also include a memory controller to provide access to the memory by the processor and the input unit.
  • the power component 130 is configured to provide power to the terminal.
  • the terminal device also includes a power component 130 that supplies power to the various components.
  • the power source can be logically coupled to the processor through the power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the power supply may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the memory 140 includes a memory of one or more computer readable storage media for storing data such as an application.
  • An input/output interface 150 that can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
  • the input unit can include a touch sensitive surface 151 as well as other input devices 152.
  • a touch-sensitive surface 151 also referred to as a touch display or trackpad, can collect touch operations on or near the user, such as a user using a finger, stylus, or the like on any touch-sensitive surface or touch Sensing the operation near the surface and driving the corresponding connecting device according to a preset program.
  • the touch sensitive surface can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • touch-sensitive surfaces can be implemented in a variety of types, including resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit can also include other input devices.
  • other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 160 is configured to display information input by the user or information provided to the user and various graphical user interfaces of the terminal device, and the graphic user interfaces may be composed of graphics, text, icons, videos, and any combination thereof.
  • the display unit 160 may include a display panel 161, and optionally, may use liquid crystal display
  • the display panel is configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED).
  • the touch-sensitive surface may cover the display panel, and when the touch-sensitive surface detects a touch operation on or near it, transmits to the processor to determine the type of the touch event, and then the processor displays the panel according to the type of the touch event. Provide corresponding visual output on it.
  • the touch-sensitive surface and display panel can function as two separate components to implement input and input functions, but in some embodiments, the touch-sensitive surface can be integrated with the display panel to implement input and output functions.
  • the sensor 170 includes at least one type of sensor such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and/or the backlight when the terminal device moves to the ear.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the terminal device can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, not here Let me repeat.
  • the audio circuit 180, the audio circuit, the speaker, and the microphone provide an audio interface between the user and the terminal device.
  • the audio circuit 180 can transmit the converted electrical data of the received audio data to a speaker, and convert the sound signal to a sound signal output.
  • the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 180 and then converted.
  • the audio data is processed by the audio data output processor, it is sent to, for example, another terminal device via the RF circuit, or the audio data is output to the memory for further processing.
  • the audio circuit may also include an earbud jack to provide communication between the peripheral earphone and the terminal device.
  • the wireless communication unit 190 is configured to implement wireless communication.
  • a wireless communication unit 190 can be configured on the terminal device, and the wireless communication unit 190 can be a WIFI module.
  • WIFI belongs to short-range wireless transmission technology.
  • the terminal device can help users to send and receive emails, browse web pages and access streaming media through the wireless communication unit 190, and provides wireless broadband Internet access for users.
  • the wireless communication unit 190 is shown in the drawings, it can be understood that it does not belong to the essential configuration of the terminal device, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the terminal device may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the terminal device further includes one or more programs, wherein one or more programs are stored in the memory 140 and configured to execute the one or more programs by the one or more processors. Instructions for performing the methods provided by embodiments of the present disclosure.
  • terminal device structure shown in the drawings does not constitute a limitation of the terminal device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
  • the message pull request is sent to the message push server and the push message is received, which achieves the effect of saving network traffic and power of the mobile terminal.
  • a message push server is provided, and the message push server may be used to perform the message push method in the embodiment of the present invention.
  • the message push method in the embodiment of the present invention may also be implemented in the embodiment of the present invention.
  • the message is pushed to the server to execute.
  • FIG. 8 is a schematic diagram of a message push server according to a first embodiment of the present invention. As shown in FIG. 8, the message push server includes:
  • the receiving unit 60 is configured to receive a message pull request from the mobile terminal, where the mobile terminal sends a message pull request to the message push server when the screen is bright, and the message pull request is used to request the message push server to push the message to the mobile terminal.
  • the receiving unit 60 when receiving the message pull request from the mobile terminal, receives the bright screen time, and the message pushing server is further configured to determine, according to the bright screen time, the message that needs to be pushed to the mobile terminal. After the receiving unit 60 receives the bright time of the mobile terminal, receiving the latest historical push time, where the latest historical push time is the time when the message pushing server pushes the message to the mobile terminal last time.
  • the pushing unit 70 is configured to push a message to the mobile terminal after receiving the message pull request.
  • the pushing unit 70 pushes the message to the mobile terminal. Specifically, the pushing unit 70 pushes the terminal according to the terminal bright time and the latest historical push time received by the receiving unit 60. Between the messages, the mobile terminal modifies the latest history push time to the last time the push message was received after receiving the push message from the push unit 70.
  • the push unit 70 receives the message push message from the mobile terminal into three cases: the first case is that the latest history push time received by the receiving unit 60 is empty, that is, the user's mobile terminal sends the message to the message push server for the first time. If the request is pulled, the push unit 70 will return the latest push message to the user's mobile terminal; the second case is that the latest historical push time received by the receiving unit 60 is not empty but the new push message is empty, that is, It is said that the message push server compares the latest historical push time received by the receiving unit 60 with the terminal bright time. If there is no new push message between the two times, it needs to be pushed to the terminal, and the push unit 70 pushes the new one.
  • the push message is empty, the user's mobile terminal does not receive a new push message; the third case is that the latest history push time received by the receiving unit 60 is not empty and the return of the new push message is not empty, that is, the message
  • the push server compares the latest historical push time with the terminal's bright time, if there is between these two moments A new bar or more push message, a push unit 70 will push the new push message on a mobile terminal, the mobile terminal will vary in response.
  • the message push server will push the mobile terminal according to the validity of the push message, and obtain the user setting of the mobile terminal and the number of messages to be pushed before the push unit 70 pushes the message to the mobile terminal.
  • the pushing unit 70 only pushes or preferentially pushes a certain number of messages closest to the current bright time. For example, if the user does not have a bright screen or no network for 3 hours, after the screen is bright and connected, there may be 200 push messages. If the push unit 70 is all pushed to the terminal, the number of messages will be too large. The user ignores the important message, so the push unit 70 can only push or preferentially push the latest 50 messages according to the preset setting by the user.
  • the advantage of this strategy is that even if the mobile terminal is in a state in which it cannot receive the push message for a long time, the next time It can realize that when receiving a message, it does not miss any push message valid to the user because there are too many push messages received. In the above three cases, a new latest historical push time will be returned to the mobile terminal, and the user's mobile terminal needs to record and record this new latest historical push time.
  • the receiving unit 60 receives a message pull request from the mobile terminal, where the mobile terminal sends a message pull request to the message push server when the screen is bright, and the message pull request is used to request the message push server to push the message to the mobile terminal.
  • the push unit 70 pushes a message to the mobile terminal after receiving the message pull request. The method of pushing the message after receiving the message pull request sent by the terminal achieves the effect of saving network traffic and power of the mobile terminal.
  • the server device includes:
  • the central processing unit 210 includes one or more central processing units (CPUs).
  • the central processor can be arranged to communicate with a storage medium on which a series of instruction operations in the storage medium are performed.
  • the power source 220 includes one or more power sources for powering the message push server.
  • the memory 230 includes one or more storage media 231 that store applications or data, such as one or one storage device in Shanghai, where the storage and storage media may be transitory or persistent.
  • the application 2313 stored on the storage medium 231 may include one or more modules (not shown), each of which may include a series of instruction operations in the server, and one or more operating systems 2311, such as Windows. ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and other operating systems also include various data 2312.
  • a wired or wireless network interface 240 including one or more wired or wireless network interfaces, for implementing a wired or wireless network connection.
  • An input/output interface 250 one or more input/output interfaces, for connecting input/output devices.
  • a keyboard 260 one or more keyboards, for inputting through a keyboard.
  • the server may vary greatly depending on configuration or performance, and is not limited to the components listed in this embodiment.
  • the method according to the present disclosure may also be implemented as a computer program executed by a CPU.
  • the above-described functions defined in the method of the present disclosure are performed when the computer program is executed by the CPU.
  • the method steps and system elements described above may also be implemented with a controller and a computer readable storage device for storing a computer program that causes the controller to implement the steps or unit functions described above.
  • DSPs digital signal processors
  • ASIC dedicated An integrated circuit
  • FPGA field programmable gate array
  • a general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine.
  • the processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
  • a software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor, such that the processor can read information from or write information to the storage medium.
  • the storage medium can be integrated with a processor.
  • the processor and the storage medium can reside in an ASIC.
  • the ASIC can reside in the user terminal.
  • the processor and the storage medium may reside as discrete components in the user terminal.
  • the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted as one or more instructions or code on a computer readable medium.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a general purpose or special purpose computer.
  • the computer readable medium may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage device, disk storage device or other magnetic storage device, or may be used to carry or store a form of instructions Or the required program code of the data structure and can be used by a general purpose or special purpose computer or a general purpose or special purpose processor Any other media accessed. Also, any connection is properly termed a computer-readable medium.
  • a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technology such as infrared, radio, and microwave is used to transmit software from a website, server, or other remote source
  • the coaxial line Cables, fiber optic cables, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are all included in the definition of the medium.
  • a magnetic disk and an optical disk include a compact disk (CD), a laser disk, an optical disk, a digital versatile disk (DVD), a floppy disk, a Blu-ray disk, in which a disk generally reproduces data magnetically, and the optical disk optically reproduces data using a laser. . Combinations of the above should also be included within the scope of computer readable media.
  • the keyboard 260 implements receiving a message pull request from the mobile terminal, after receiving the message pull request. Pushing a message to the mobile terminal achieves the effect of saving network traffic and power of the mobile terminal.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in a storage device by a computing device, or they may be fabricated into individual integrated circuit modules, or Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

Disclosed are a message push method, and a mobile terminal and message push server. The message push method comprises: detecting whether the screen of a mobile terminal screen is on; when it is detected that said mobile terminal screen is on, said mobile terminal sends a message pull request to the message push server, the message pull request being used to request that the message push server push a message to the mobile terminal, and the message push server being used to push a message to the mobile terminal after receiving the message pull request; the mobile terminal receiving the message pushed by the message push server. The present invention saves network traffic and power for a mobile terminal.

Description

消息推送方法及移动终端和消息推送服务器Message pushing method and mobile terminal and message push server 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种消息推送方法及移动终端和消息推送服务器。The present invention relates to the field of communications, and in particular to a message push method and a mobile terminal and a message push server.
背景技术Background technique
随着智能终端的迅速发展,智能终端可以安装的应用程序越来越多,互联网技术的普及大大提升了信息传播的速度,应用程序所推送的消息也就越来越多了,海量的信息让用户受益匪浅,同时也带来了各种麻烦。用户每天都不得不面对各种无用甚至是诈骗的信息,日常生活受到很大的影响。而对于推送消息的商家来说,在用户处于不方便的处境时推送消息非常容易引起用户的反感,一般都会被当垃圾信息来处理,不仅打扰到用户,还达不到消息推送的效果。With the rapid development of intelligent terminals, more and more applications can be installed in smart terminals. The popularity of Internet technology has greatly increased the speed of information dissemination, and the number of messages pushed by applications has become more and more. Users benefit a lot, but also bring a variety of troubles. Every day, users have to face all kinds of useless and even fraudulent information, and daily life is greatly affected. For a merchant pushing a message, pushing a message when the user is in an inconvenient situation is very easy to cause the user's dislike, and is generally treated as spam, not only disturbing the user, but also failing to achieve the effect of message push.
相关技术中,推送消息商家采用的是服务器主动向用户推送消息,不管此消息对该用户是否还有效,这就造成了信息冗余并容易引起用户的误会,比如一些商家的促销活动,若有效期已过期,但用户还会收到此已过期的促销活动推送消息,此时用户可能会以为此促销活动有效而容易产生误会,甚至产生不必要的纠纷。此外,由于是服务器主动向用户推送消息,不管用户处于什么情况,比如用户的移动终端的网络状态的情况是移送数据流量的方式还是以无线网络的方式,这样容易导致浪费用户移动终端的网络流量,同时也浪费移动终端的电量。In the related art, the push message merchant adopts the server to actively push the message to the user, regardless of whether the message is still valid for the user, which causes information redundancy and easily causes misunderstanding of the user, such as promotion activities of some merchants, if valid. Expired, but users will also receive this expired promotion push message, at which point users may be prone to misunderstandings and even unnecessary disputes. In addition, since the server actively pushes the message to the user, regardless of the situation of the user, for example, the network state of the user's mobile terminal is a method of transferring data traffic or a wireless network, which may easily waste network traffic of the user's mobile terminal. At the same time, the power of the mobile terminal is wasted.
推送消息的商家对移动设备的推送消息机制一般采用的是服务器使用推送方式向用户推送消息,这种方式是服务器主动向用户的移动终端推送消息,即当服务器中只要有需要推送的消息时,便会把消息推送到用户的移动终端上,发明人发现,这种方式无法全面考虑到此消息对用户的有效性,如果将此刻对用户已过期无效的消息仍然发送给用户,将可能产生误会甚至引起纠纷;此外,由于推送消息的方式是主动对用户移动设备进行的,因此无法完全考虑到用户在接收推送消息时用户的移动设备的网络方式,这样容易让用户的移动终端产生不可避免的移动数据流量,也就产生了用户未必愿意的额外的资金开销,同时在接收推送消息时还需要消耗用户的移动设备的电量,可能导致用户对推送消息的商家产生消极的印象,使得商家达不到推送消息的积极效果。The push message mechanism of the merchant pushing the message generally uses the push mode to push the message to the user. In this way, the server actively pushes the message to the user's mobile terminal, that is, when there is a message to be pushed in the server, The message will be pushed to the user's mobile terminal. The inventor found that this method cannot fully consider the validity of the message to the user. If the message that the user has expired is still sent to the user at this moment, misunderstanding may occur. In addition, the dispute is caused; in addition, since the manner of pushing the message is actively performed on the user's mobile device, the network mode of the user's mobile device when the user receives the push message cannot be fully considered, so that the user's mobile terminal is inevitably generated. Mobile data traffic also generates additional capital expenditures that the user may not be willing to, and also consumes the power of the user's mobile device when receiving the push message, which may cause the user to have a negative impression on the merchant pushing the message, so that the merchant does not Positive effect on pushing messages .
针对相关技术中的消息推送方法浪费移动终端的网络流量和电量的问题,目前尚未提出有效的解决方案。 Aiming at the problem that the message pushing method in the related art wastes the network traffic and the power of the mobile terminal, an effective solution has not been proposed yet.
发明内容Summary of the invention
本发明的主要目的在于提供一种消息推送方法及移动终端和消息推送服务器,以解决浪费移动终端的网络流量和电量的问题。The main purpose of the present invention is to provide a message pushing method and a mobile terminal and a message pushing server to solve the problem of wasting network traffic and power of the mobile terminal.
为了实现上述目的,根据本发明的一个方面,提供了一种消息推送方法。该消息推送方法包括:检测移动终端是否亮屏;在检测到移动终端亮屏时,移动终端向消息推送服务器发送消息拉取请求,其中,消息拉取请求用于请求消息推送服务器向移动终端推送消息,消息推送服务器用于在接收到消息拉取请求后向移动终端推送消息;以及移动终端接收消息推送服务器推送的消息。In order to achieve the above object, according to an aspect of the present invention, a message push method is provided. The message pushing method includes: detecting whether the mobile terminal is bright; when detecting that the mobile terminal is bright, the mobile terminal sends a message pull request to the message push server, wherein the message pull request is used to request the message push server to push to the mobile terminal The message, the message push server is configured to push the message to the mobile terminal after receiving the message pull request; and the mobile terminal receives the message pushed by the server push server.
为了实现上述目的,根据本发明的另一方面,还提供了一种移动终端。该移动终端包括:检测单元,用于检测移动终端是否亮屏;发送单元,用于在检测到移动终端亮屏时,向消息推送服务器发送消息拉取请求,其中,消息拉取请求用于请求消息推送服务器向移动终端推送消息,消息推送服务器用于在接收到消息拉取请求后向移动终端推送消息;以及接收单元,用于接收消息推送服务器推送的消息。In order to achieve the above object, according to another aspect of the present invention, a mobile terminal is also provided. The mobile terminal includes: a detecting unit, configured to detect whether the mobile terminal is bright; and a sending unit, configured to send a message pull request to the message pushing server when detecting that the mobile terminal is bright, wherein the message pull request is used for the request The message push server pushes a message to the mobile terminal, the message push server is configured to push the message to the mobile terminal after receiving the message pull request, and the receiving unit is configured to receive the message pushed by the message push server.
为了实现上述目的,根据本发明的另一方面,还提供了一种消息推送服务器。该消息推送服务器包括:接收单元,用于接收来自移动终端的消息拉取请求,其中,移动终端在亮屏时向消息推送服务器发送消息拉取请求,消息拉取请求用于请求消息推送服务器向移动终端推送消息;以及推送单元,用于在接收到消息拉取请求后向移动终端推送消息。In order to achieve the above object, according to another aspect of the present invention, a message push server is also provided. The message pushing server includes: a receiving unit, configured to receive a message pull request from the mobile terminal, where the mobile terminal sends a message pull request to the message push server when the screen is bright, and the message pull request is used to request the message push server to The mobile terminal pushes the message; and the pushing unit is configured to push the message to the mobile terminal after receiving the message pull request.
为了实现上述目的,根据本发明的另一方面,还提供了一种移动终端。该移动终端包括:传感器,用于检测移动终端是否亮屏;通信单元,用于在检测到移动终端亮屏时,向消息推送服务器发送消息拉取请求,并接收消息推送服务器推送的消息,其中,消息拉取请求用于请求消息推送服务器向移动终端推送消息,消息推送服务器用于在接收到消息拉取请求后向移动终端推送消息。In order to achieve the above object, according to another aspect of the present invention, a mobile terminal is also provided. The mobile terminal includes: a sensor, configured to detect whether the mobile terminal is bright; the communication unit is configured to: when detecting that the mobile terminal is bright, send a message pull request to the message push server, and receive a message pushed by the message push server, where The message pull request is used to request the message push server to push a message to the mobile terminal, and the message push server is configured to push the message to the mobile terminal after receiving the message pull request.
通过本发明,采用检测移动终端是否亮屏;在检测到移动终端亮屏时,移动终端向消息推送服务器发送消息拉取请求以及移动终端接收消息推送服务器推送的消息,通过在移动终端亮屏时向消息推送服务器发送消息拉取请求,解决了浪费移动终端的网络流量和电量的问题,进而达到了节省移动终端的网络流量和电量的效果。According to the present invention, it is detected whether the mobile terminal is bright or not; when detecting that the mobile terminal is bright, the mobile terminal sends a message pull request to the message push server and the mobile terminal receives the message pushed by the message push server, when the mobile terminal is illuminated Sending a message pull request to the message push server solves the problem of wasting network traffic and power of the mobile terminal, thereby achieving the effect of saving network traffic and power of the mobile terminal.
附图说明DRAWINGS
构成本申请的一部分的附图用来提供对本发明的进一步理解,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中: The accompanying drawings, which are incorporated in the claims In the drawing:
图1是根据本发明第一实施例的消息推送方法的流程图;1 is a flow chart of a message pushing method according to a first embodiment of the present invention;
图2是根据本发明第二实施例的消息推送方法的流程图;2 is a flow chart of a message pushing method according to a second embodiment of the present invention;
图3是根据本发明第三实施例的消息推送方法的流程图;3 is a flow chart of a message pushing method according to a third embodiment of the present invention;
图4是根据本发明第四实施例的消息推送方法的流程图;4 is a flowchart of a message pushing method according to a fourth embodiment of the present invention;
图5是根据本发明第一实施例的移动终端的示意图;FIG. 5 is a schematic diagram of a mobile terminal according to a first embodiment of the present invention; FIG.
图6是根据本发明第二实施例的移动终端的示意图;FIG. 6 is a schematic diagram of a mobile terminal according to a second embodiment of the present invention; FIG.
图7是根据本发明第三实施例的移动终端的示意图;FIG. 7 is a schematic diagram of a mobile terminal according to a third embodiment of the present invention; FIG.
图8是根据本发明第一实施例的消息推送服务器的示意图;以及FIG. 8 is a schematic diagram of a message push server according to a first embodiment of the present invention;
图9是根据本发明第二实施例的消息推送服务器的示意图。9 is a schematic diagram of a message push server in accordance with a second embodiment of the present invention.
具体实施方式detailed description
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明。It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The invention will be described in detail below with reference to the drawings in conjunction with the embodiments.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. It is an embodiment of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope shall fall within the scope of the application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or order. It should be understood that the data so used may be interchanged where appropriate to facilitate the embodiments of the present application described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
根据本发明实施例,提供了一种数据处理方法,图1是根据本发明第一实施例的数据处理方法的流程图。如图1所示,该方法包括如下的步骤S101至步骤S103:According to an embodiment of the present invention, a data processing method is provided, and FIG. 1 is a flowchart of a data processing method according to a first embodiment of the present invention. As shown in FIG. 1, the method includes the following steps S101 to S103:
步骤S101:检测移动终端是否亮屏。Step S101: detecting whether the mobile terminal is bright.
本发明的移动终端包括移动电话,计算机,数字广播终端,消息收发设备,游戏 控制台,平板设备,医疗设备,健身设备,个人数字助理等多种类型的终端设备,本实施例中以手机为例对具体实施方式进行论述。The mobile terminal of the present invention includes a mobile phone, a computer, a digital broadcast terminal, a messaging device, and a game A plurality of types of terminal devices, such as a console, a tablet device, a medical device, a fitness device, and a personal digital assistant, are described in the embodiment by using a mobile phone as an example.
亮屏是指用户的移动终端从暗屏休眠的状态唤醒到亮屏的状态,可以通过按下其机身的开关按键的方式或者其它能使移动终端从暗屏休眠的状态唤醒屏幕到亮屏状态的方式,例如某些带有智能唤醒功能的手机壳在打开时也会使手机亮屏。通常只在手机亮屏的时候用户才会查看屏幕上是否有消息通知,因此针对一些推送服务的实时性要求不高的消息,在检测到移动终端亮屏的时候才需要进行消息推送。The bright screen refers to the state in which the user's mobile terminal wakes up from the state of the dark screen to the bright screen, and can wake up the screen to the bright screen by pressing the switch button of the body or other state that enables the mobile terminal to sleep from the dark screen. The way the state, such as some mobile phone cases with smart wake-up, also causes the phone to light up when it is turned on. Usually, the user only checks whether there is a message notification on the screen when the mobile phone is on the screen. Therefore, for the message that the real-time performance of the push service is not high, the message push is required only when the mobile terminal is detected to be bright.
步骤S102:在检测到移动终端亮屏时,移动终端向消息推送服务器发送消息拉取请求,其中,消息拉取请求用于请求消息推送服务器向移动终端推送消息,消息推送服务器用于在接收到消息拉取请求后向移动终端推送消息。Step S102: When detecting that the mobile terminal is bright, the mobile terminal sends a message pull request to the message push server, where the message pull request is used to request the message push server to push the message to the mobile terminal, and the message push server is used to receive the message. After the message pull request, the message is pushed to the mobile terminal.
在检测到移动终端亮屏时,获取移动终端的亮屏时间,移动终端将亮屏时间发送至消息推送服务器,其中,消息推送服务器还用于根据亮屏时间确定需要向移动终端推送的消息。也就是说,在检测到手机亮屏后,获取手机亮屏时间,记录下当前亮屏时间,并将当前亮屏时间发送至消息推送服务器,消息推送服务器根据接收到的亮屏时间来确定需要推送哪些消息到手机上。When the mobile terminal is detected to be bright, the bright time of the mobile terminal is acquired, and the mobile terminal sends the bright time to the message push server, wherein the message push server is further configured to determine, according to the bright screen time, a message that needs to be pushed to the mobile terminal. That is to say, after detecting the bright screen of the mobile phone, obtaining the bright time of the mobile phone, recording the current bright time, and sending the current bright time to the message pushing server, and the message pushing server determines the need according to the received bright time. What messages are pushed to the phone.
在获取移动终端的亮屏时间之后,移动终端获取最新历史查询时间,其中,最新历史查询时间为移动终端上一次向消息推送服务器发送消息拉取请求的时间;以及移动终端判断亮屏时间距离最新历史查询时间的时间间隔是否大于预设时间间隔,其中,移动终端在确定亮屏时间距离最新历史查询时间的时间间隔大于预设时间间隔时,向消息推送服务器发送消息拉取请求。After obtaining the bright time of the mobile terminal, the mobile terminal acquires the latest historical query time, where the latest historical query time is the time when the mobile terminal sends the message pull request to the message push server last time; and the mobile terminal determines that the bright screen time distance is the latest. Whether the time interval of the historical query time is greater than the preset time interval, wherein the mobile terminal sends a message pull request to the message push server when determining that the time interval between the bright screen time and the latest historical query time is greater than the preset time interval.
优选地,为了节省手机电量和网络流量,对一些推送服务的实时性要求不高的消息,不必在每次手机亮屏时都获取消息推送,只需在一定时间间隔后再获取一次消息推送即可。举例来说,在检测到手机亮屏,并记录下当前亮屏时间后,查询手机的最新历史查询时间,也就是最近一次获取消息推送的时间,判断当前手机亮屏的时间与最近一次获取消息推送的时间是否大于一定的时间间隔,例如20分钟,如果当前手机亮屏的时间与最近一次获取消息推送的时间大于20分钟,则向消息推送服务器发送消息拉取请求。如果当前手机亮屏的时间与最近一次获取消息推送的时间不大于20分钟,则不向消息推送服务器发送消息拉取请求。Preferably, in order to save mobile phone power and network traffic, the message that the real-time performance of some push services is not high, it is not necessary to obtain the message push every time the mobile phone is bright, and only need to obtain a message push after a certain time interval. can. For example, after detecting the bright screen of the mobile phone and recording the current bright time, query the latest historical query time of the mobile phone, that is, the time when the latest message is pushed, and determine the current time of the mobile phone and the latest time to obtain the message. Whether the pushed time is greater than a certain time interval, for example, 20 minutes, if the current mobile phone is on the screen and the time of the last time the message is pushed is greater than 20 minutes, the message pull request is sent to the message push server. If the time when the current mobile phone is on the screen and the time when the latest message is pushed is not more than 20 minutes, the message pull request is not sent to the message push server.
在移动终端向消息推送服务器发送消息拉取请求之后,移动终端接收满足第一预设条件的推送消息,其中,消息推送服务器用于根据亮屏时间获取满足第一预设条件的推送消息,满足第一预设条件的推送消息为处于亮屏时间和最新历史推送时间之间的消息,最新历史推送时间为消息推送服务器上一次向移动终端推送消息的时间。其 中,最新历史查询时间和最新历史推送时间是同一时间。After the mobile terminal sends a message pull request to the message push server, the mobile terminal receives the push message that meets the first preset condition, where the message push server is configured to obtain the push message that meets the first preset condition according to the bright screen time, and is satisfied. The push message of the first preset condition is a message between the bright time and the latest historical push time, and the latest historical push time is the time when the message push server pushes the message to the mobile terminal last time. Its In the middle, the latest historical query time and the latest historical push time are the same time.
也即,在手机向消息推送服务器发送消息拉取请求之后,消息推送服务器向手机推送最新历史推送时间和亮屏时间之间的消息。That is, after the mobile phone sends a message pull request to the message push server, the message push server pushes a message between the latest history push time and the bright screen time to the mobile phone.
如果亮屏时间是移动终端首次亮屏的时间,在移动终端向消息推送服务器发送消息拉取请求之后,移动终端接收消息推送服务器推送的最新一条消息,其中,消息推送服务器用于根据移动终端的亮屏时间确定需要推送的最新的一条消息。If the bright time is the time when the mobile terminal first lights up, after the mobile terminal sends a message pull request to the message push server, the mobile terminal receives the latest message pushed by the message push server, wherein the message push server is used according to the mobile terminal. The bright time determines the most recent message that needs to be pushed.
如果移动终端首次亮屏,例如手机是新买的,此时是没有最新历史推送时间的,在屏幕亮屏时,手机向消息推送服务器发送消息拉取请求,消息推送服务器根据手机的亮屏时间将最新的一条消息推送给手机,此时,消息推送服务器推送消息的时间就作为最新历史推送时间。If the mobile terminal lights up for the first time, for example, the mobile phone is newly bought, there is no latest historical push time. When the screen is bright, the mobile phone sends a message pull request to the message push server, and the message push server according to the bright time of the mobile phone. The latest message is pushed to the mobile phone. At this time, the time when the message push server pushes the message is taken as the latest historical push time.
优选地,在检测到移动终端亮屏时,检测移动终端的网络状态;判断移动终端是否处于WIFI连接状态;以及在判断出移动终端处于WIFI连接状态时,移动终端向消息推送服务器发送消息拉取请求。Preferably, when detecting that the mobile terminal is bright, detecting the network status of the mobile terminal; determining whether the mobile terminal is in the WIFI connection state; and when determining that the mobile terminal is in the WIFI connection state, the mobile terminal sends a message pull to the message push server. request.
为节省手机的数据网络流量,在检测到手机亮屏后,检测手机此时的网络状态,如果手机的网络状态为WIFI连接状态,当前手机亮屏的时间与最近一次获取消息推送的时间大于一定的时间间隔,则手机向服务器发送消息拉取请求;如果手机的网络状态不是WIFI连接状态,则即使当前手机亮屏的时间与最新历史推送时间大于一定的时间间隔,也不向消息推送服务器发送消息拉取请求。In order to save the data network traffic of the mobile phone, after detecting the bright screen of the mobile phone, the network state of the mobile phone at this time is detected. If the network state of the mobile phone is the WIFI connection state, the time of the current mobile phone bright screen and the time of the latest acquisition of the message are greater than a certain time. The time interval, the mobile phone sends a message pull request to the server; if the network state of the mobile phone is not the WIFI connection state, even if the current mobile phone bright screen time and the latest historical push time are greater than a certain time interval, the mobile phone does not send the message to the message push server. The message pull request.
此功能可以由用户在手机终端自行设置,例如可以设置为始终允许,只在WIFI下允许和始终不允许,以适应不同情况下的消息推送需要。This function can be set by the user at the mobile terminal itself, for example, it can be set to always allow, only allowed and always allowed under WIFI, to adapt to the message push needs in different situations.
步骤S103:移动终端接收消息推送服务器推送的消息。Step S103: The mobile terminal receives the message pushed by the message push server.
在检测到移动终端亮屏时,移动终端向消息推送服务器发送消息拉取请求,此时消息推送服务器根据接收到的终端亮屏时间向终端推送消息,移动终端接收消息推送服务器推送的消息。When detecting that the mobile terminal is bright, the mobile terminal sends a message pull request to the message push server. At this time, the message push server pushes the message to the terminal according to the received terminal brightness time, and the mobile terminal receives the message pushed by the server push server.
移动终端接收消息推送服务器推送的消息分为三种情况:The message that the mobile terminal receives the message push server push is divided into three cases:
第一种情况是获取的最新历史推送时间为空,也就是说用户的移动终端是第一次向消息推送服务器发送消息拉取请求,则消息推送服务器将会返回最新的一条推送消息给用户的移动终端;第二种情况是获取的最新历史推送时间不为空但返回新的推送消息为空,也就是说消息推送服务器会根据获取到的最新历史推送时间跟终端亮屏时间做比较,若这两个时刻之间并没有新的推送消息需要向终端推送,则返回的新的推送消息为空,用户的移动终端不会收到新的推送消息;第三种情况是获取的最新历史 推送时间不为空且返回新的推送消息也不为空,也就是说消息推送服务器会根据获取到的最新历史推送时间跟终端亮屏时间做比较,若这两个时刻之间有一条或者一条以上的新的推送消息,消息推送服务器将把新的推送消息推送到移动终端上,移动终端将有所响应。In the first case, the latest historical push time obtained is empty, that is, the user's mobile terminal sends a message pull request to the message push server for the first time, and the message push server will return the latest push message to the user. The second case is that the latest historical push time obtained is not empty but the new push message is empty, that is, the message push server compares the latest historical push time with the terminal bright time. There is no new push message between the two moments that needs to be pushed to the terminal, then the new push message returned is empty, the user's mobile terminal will not receive the new push message; the third case is the latest history of the acquisition. The push time is not empty and the new push message is not empty, that is to say, the message push server compares the latest historical push time with the terminal bright time, if there is one or one between the two moments In the above new push message, the message push server will push the new push message to the mobile terminal, and the mobile terminal will respond.
优选地,消息推送服务器将会根据推送消息的有效性向移动终端进行推送,也就是说,当最新历史查询时间与本次亮屏时间之间有很多需要推送的消息时,根据用户预先设置,仅推送或者优先推送与本次亮屏时间最近的一定数量的消息。举例来说,如果用户3小时没有亮屏或没有联网,在亮屏并联网后,可能会有200条推送消息,此时如果全部推送给终端,则会因为消息数量太大而被用户忽略掉重要消息,因此可以根据用户预先设置,仅推送或者优先推送最新发生的50条消息,这种策略的优势就在于,就算移动终端长期处于无法接收推送消息的状态,在下一次能实现接收消息的时候不会因为接收到的推送消息太多而遗漏任何对用户有效的推送消息。以上3种情况都会返回一个新的最新历史推送时间给移动终端,用户的移动终端则需要将这个新的最新历史推送时间保存记录下来。Preferably, the message push server will push the mobile terminal according to the validity of the push message, that is, when there are many messages to be pushed between the latest historical query time and the current bright time, according to the user preset, only Push or prioritize a certain number of messages that are closest to the time of this bright screen. For example, if the user does not have a bright screen or no network for 3 hours, after the screen is bright and connected, there may be 200 push messages. If all the buttons are pushed to the terminal, they will be ignored by the user because the number of messages is too large. Important news, therefore, according to the user's preset, only push or preferentially push the latest 50 messages. The advantage of this strategy is that even if the mobile terminal is in a state where it cannot receive push messages for a long time, the next time it can receive the message. No push messages that are valid for the user are missed because there are too many push messages received. In the above three cases, a new latest historical push time will be returned to the mobile terminal, and the user's mobile terminal needs to record and record this new latest historical push time.
本实施例中,当消息推送服务器向移动终端发送不为空的推送消息时,移动终端将会有所响应,移动终端的响应方式可以有很多种,例如,通知栏中罗列出所有返回的推送消息,用户的移动终端的APP罗列出所有返回的推送消息,等等。用户的移动终端的响应方式可以有很多种,由于不是本发明的核心,在这里就不一一详细陈述。In this embodiment, when the message push server sends a push message that is not empty to the mobile terminal, the mobile terminal will respond, and the response manner of the mobile terminal may be various. For example, the notification bar lists all returned. Push the message, the user's mobile terminal's APP lists all returned push messages, and so on. The user's mobile terminal can respond in many ways. Since it is not the core of the present invention, it will not be detailed here.
本实施例通过检测移动终端是否亮屏;在检测到移动终端亮屏时,移动终端向消息推送服务器发送消息拉取请求,其中,消息拉取请求用于请求消息推送服务器向移动终端推送消息,消息推送服务器用于在接收到消息拉取请求后向移动终端推送消息;以及移动终端接收消息推送服务器推送的消息,从而实现了在终端非亮屏状态时不接收消息推送,进而达到了节省移动终端的网络流量和电量的效果。In this embodiment, the mobile terminal sends a message pull request to the message push server when detecting that the mobile terminal is bright. The message pull request is used to request the message push server to push the message to the mobile terminal. The message push server is configured to push the message to the mobile terminal after receiving the message pull request; and the mobile terminal receives the message pushed by the message push server, thereby implementing the message push without receiving the message when the terminal is not in the bright screen state, thereby achieving the saving of the mobile The effect of the network traffic and power of the terminal.
图2是根据本发明第二实施例的消息推送方法的流程图。如图2所示,该消息推送方法包括以下步骤:2 is a flow chart of a message push method in accordance with a second embodiment of the present invention. As shown in FIG. 2, the message pushing method includes the following steps:
步骤S201,获取上次查询服务器的时间锚点。Step S201: Obtain a time anchor of the last query server.
本实施例中的时间锚点指的是最近一次查询服务器的时间,也就是实施例1中的最新历史推送时间,服务器端也就是实施例1中的消息推送服务器。The time anchor point in this embodiment refers to the time when the server was last queried, that is, the latest history push time in Embodiment 1, and the server side is also the message push server in Embodiment 1.
以手机为例,本发明实施例中,获取上次查询服务器的时间锚点是通过用户的移动终端向服务器发出的一个访问请求中取得,并在请求中附带上上次查询服务器的时间锚点。以安卓手机为例,根据Android系统的http网络访问协议,http的请求方法中可以附加数据进行客户端和服务器端的交互,本发明实施例中的时间锚点也是通过 附加数据将数据传递给服务器。既然是用户的移动终端主动发出的一个访问请求,因此这个时间锚点也是由用户的移动终端提供。时间锚点的保存记录在用户的移动终端上,并且保存记录事件是在用户的移动终端向服务器端成功发送一次请求,且服务器端成功返回了响应事件时进行,不管服务器端是否有返回更新的推送消息内容,都必须返回一个时间锚点,而这个时间锚点记录的将是发送返回响应事件的时刻,含时分秒。而用户的移动终端在收到服务器端发送的返回响应事件时保存记录下此次响应事件的时间锚点,以备用户的移动终端在下一次向服务器端发送访问请求时将此次记录的时间锚点以附加数据的方式传递给服务器。Taking the mobile phone as an example, in the embodiment of the present invention, obtaining the time anchor point of the last query server is obtained by an access request sent by the user's mobile terminal to the server, and the time anchor of the last query server is attached in the request. . Taking the Android mobile phone as an example, according to the http network access protocol of the Android system, the request method of the http can be attached with data to perform the interaction between the client and the server. The time anchor point in the embodiment of the present invention is also passed. Additional data passes the data to the server. Since it is an access request initiated by the user's mobile terminal, this time anchor is also provided by the user's mobile terminal. The save of the time anchor is recorded on the user's mobile terminal, and the save record event is performed when the user's mobile terminal successfully sends a request to the server, and the server successfully returns a response event, regardless of whether the server returns the update. To push the message content, you must return a time anchor, and this time the anchor record will be the time to send the response event, in hours and minutes. The user's mobile terminal saves the time anchor record of the response event when receiving the return response event sent by the server, so that the user's mobile terminal anchors the time of the record when sending the access request to the server next time. Points are passed to the server as additional data.
步骤S202,判断时间锚点是否为空。In step S202, it is determined whether the time anchor point is empty.
当用户的移动终端首次向服务器端发送访问请求前,服务器端是没有也是不可能向用户的移动终端返回过一次时间锚点,则此时的时间锚点为空。因此如果时间锚点为空时,也就表示移动终端是首次向服务器端发出访问请求,此时,执行步骤S204;如果时间锚点不为空,则表示移动终端不是首次向服务器端发出访问请求,此时,执行步骤S203。Before the user's mobile terminal sends an access request to the server for the first time, the server does not and cannot return a time anchor to the user's mobile terminal. The time anchor is empty at this time. Therefore, if the time anchor is empty, it means that the mobile terminal sends an access request to the server for the first time. At this time, step S204 is performed; if the time anchor is not empty, it indicates that the mobile terminal is not the first time to send an access request to the server. At this time, step S203 is performed.
步骤S203,返回所有未过期的推送消息,本次访问时间为新的锚点。In step S203, all the unexpired push messages are returned, and the current access time is a new anchor point.
在判断出时间锚点不为空时,表示移动终端不是首次向服务器端发出访问请求,移动终端向服务器端发送访问请求时将此次记录的时间锚点以附加数据的方式传递给服务器端,服务器端根据接收到的时间锚点返回时间锚点之后的推送消息,优选地,为了防止移动终端一次接收到的推送消息太多而遗漏任何对用户有效的推送消息,可以预先设置一次推送消息的数量,例如50条,以确保即使移动终端长期处于无法接收推送消息的状态,在下一次能够接收消息的时候不会因为一次接收到的推送消息太多而遗漏任何对用户有效的推送消息。When it is determined that the time anchor is not empty, it indicates that the mobile terminal does not issue an access request to the server for the first time, and when the mobile terminal sends an access request to the server, the time anchor of the record is transmitted to the server by using additional data. The server returns a push message after the time anchor according to the received time anchor. Preferably, in order to prevent the mobile terminal from receiving too many push messages at one time and missing any push message valid to the user, the push message may be set in advance. The number, for example, 50, ensures that even if the mobile terminal is in a state in which it cannot receive the push message for a long time, it will not miss any push message valid to the user because the push message received too much will be received the next time the message can be received.
用户的移动终端在收到服务器端发送的返回响应事件时保存记录下此次响应事件的时间锚点,以备用户的移动终端在下一次向服务器端发送访问请求时将此次记录的时间锚点以附加数据的方式传递给服务器。The user's mobile terminal saves the time anchor record of the response event when receiving the return response event sent by the server, so that the user's mobile terminal anchors the time of the record when the next time the access request is sent to the server. Passed to the server as additional data.
步骤S204,返回最新一条推送,本次访问时间为新的锚点。In step S204, the latest push is returned, and the current access time is a new anchor point.
如果时间锚点为空,也就表示移动终端是首次向服务器端发出访问请求,则向移动终端返回最新一条推送,同时移动终端在收到服务器端保存记录下此次响应事件的时间锚点,以备用户的移动终端在下一次向服务器端发送访问请求时将此次记录的时间锚点以附加数据的方式传递给服务器。If the time anchor is empty, it means that the mobile terminal sends an access request to the server for the first time, and then returns the latest push to the mobile terminal, and the mobile terminal receives the time anchor of the response event after receiving the server. In order for the user's mobile terminal to send an access request to the server next time, the time anchor of the record is transmitted to the server as additional data.
本实施例通过判断时间锚点是否为空,如果时间锚点为空,则返回最新一条推送,并将本次访问时间作为新的锚点;如果时间锚点不为空,则返回所有未过期的推送消 息,并将本次访问时间作为新的锚点,达到了节省移动终端的网络流量和电量的效果。In this embodiment, it is determined whether the time anchor point is empty. If the time anchor point is empty, the latest push is returned, and the current access time is used as a new anchor point; if the time anchor point is not empty, all unexpired returns are returned. Push Interest rate, and this access time as a new anchor point, to achieve the effect of saving mobile network traffic and power.
图3是根据本发明第三实施例的消息推送方法的流程图。如图3所示,该消息推送方法包括以下步骤:3 is a flow chart of a message push method in accordance with a third embodiment of the present invention. As shown in FIG. 3, the message pushing method includes the following steps:
步骤S301,获取终端亮屏事件。Step S301: Acquire a bright screen event of the terminal.
亮屏是指用户的移动终端从暗屏休眠的状态唤醒到亮屏的状态,可以通过按下其机身的开关按键的方式或者其它能使移动终端从暗屏休眠的状态唤醒屏幕到亮屏状态的方式,例如某些带有智能唤醒功能的手机壳在打开时也会使手机亮屏。通常只在手机亮屏的时候用户才会查看屏幕上是否有消息通知,因此针对一些推送服务的实时性要求不高的消息,在检测到移动终端亮屏的时候才需要进行消息推送。获取终端亮屏时间可以通过传感器等方式获取。The bright screen refers to the state in which the user's mobile terminal wakes up from the state of the dark screen to the bright screen, and can wake up the screen to the bright screen by pressing the switch button of the body or other state that enables the mobile terminal to sleep from the dark screen. The way the state, such as some mobile phone cases with smart wake-up, also causes the phone to light up when it is turned on. Usually, the user only checks whether there is a message notification on the screen when the mobile phone is on the screen. Therefore, for the message that the real-time performance of the push service is not high, the message push is required only when the mobile terminal is detected to be bright. Obtaining the brightness time of the terminal can be obtained by means of a sensor or the like.
步骤S302,获取终端系统时间。Step S302, acquiring the terminal system time.
在获取终端亮屏事件后,获取亮屏时终端的系统时间,获取到的亮屏时间用于判断亮屏时间和最新历史查询时间的时间间隔是否超过预设时间,获取到的亮屏时间还用于发送至消息推送服务器,消息推送服务器根据亮屏时间确定需要向移动终端推送的消息。After obtaining the bright screen event of the terminal, the system time of the terminal is obtained when the screen is bright, and the obtained screen time is used to determine whether the time interval between the screen time and the latest history query time exceeds the preset time, and the obtained screen time is still For sending to the message push server, the message push server determines the message that needs to be pushed to the mobile terminal according to the bright screen time.
步骤S303,判断亮屏时间与时间锚点的时间间隔是否小于预设时间。Step S303, determining whether the time interval between the bright screen time and the time anchor point is less than a preset time.
在获取到终端的系统时间后判断终端亮屏时间与时间锚点的时间间隔是否小于预设时间,其中,时间锚点也就是第一实施例中的最新历史查询时间,在判断出亮屏时间与时间锚点的时间间隔不小于预设时间后执行步骤S304,在判断出亮屏时间与时间锚点的时间间隔小于预设时间后,结束该流程,等待下次亮屏。After the system time of the terminal is obtained, it is determined whether the time interval between the brightness time of the terminal and the time anchor is less than the preset time, wherein the time anchor point is the latest historical query time in the first embodiment, and the bright time is determined. After the time interval of the time anchor is not less than the preset time, step S304 is performed. After determining that the time interval between the bright screen time and the time anchor point is less than the preset time, the process ends and waits for the next bright screen.
步骤S304,判断网络状态和用户设置是否允许访问服务器。Step S304, determining whether the network status and the user setting allow access to the server.
在判断出亮屏时间与时间锚点的时间间隔不小于预设时间时,认为此时可以接收消息推送,在向服务器发送访问请求之前,需要判断当前网络状态和用户设置是否允许访问服务器,例如,用户设置包括始终不允许,仅WIFI下允许和始终允许,如果用户为了省电或者节省数据流量,设置为始终不允许,则即使亮屏时间不小于预设时间,也不向服务器发送访问请求;如果用户设置为仅WIFI下允许访问,则判断当前网络状态是否是WIFI网络连接,如果是WIFI网络连接则执行步骤S305,如果不是WIFI网络连接,则结束流程;如果用户设置为始终允许,则执行步骤S305,向服务器发送访问请求。When it is determined that the time interval between the bright screen time and the time anchor point is not less than the preset time, it is considered that the message push can be received at this time, and before the access request is sent to the server, it is necessary to determine whether the current network state and the user setting allow access to the server, for example, User settings include always disallowed, only allowed and always allowed under WIFI. If the user is set to always not allowed in order to save power or save data traffic, the access request is not sent to the server even if the bright screen time is not less than the preset time. If the user is set to allow access only under WIFI, it is determined whether the current network status is a WIFI network connection, if it is a WIFI network connection, step S305 is performed, if not a WIFI network connection, the process ends; if the user is set to always allow, Step S305 is executed to send an access request to the server.
步骤S305,向服务器发送访问请求。 Step S305, sending an access request to the server.
在判断出网络状态和用户设置允许访问服务器后,向服务器发送访问请求,可选的,向服务器发送消息拉取请求,同时将亮屏时间以附加数据的方式发送给服务器,以便服务器通过亮屏时间来确定需要向移动终端推送的消息。在向服务器发送访问请求时,还需要将最新历史查询时间发送至服务器,服务器将向移动终端推送最新历史查询时间和亮屏时间之间的消息。After determining that the network status and the user setting allow access to the server, the server sends an access request to the server. Optionally, the message pull request is sent to the server, and the bright time is sent to the server in the manner of additional data, so that the server passes the bright screen. Time to determine the message that needs to be pushed to the mobile terminal. When sending an access request to the server, the latest historical query time needs to be sent to the server, and the server will push the message between the latest historical query time and the bright screen time to the mobile terminal.
优选地,终端通过网络将终端系统时间与服务器时间统一,以获取更为准确的推送消息。Preferably, the terminal unifies the terminal system time and the server time through the network to obtain a more accurate push message.
本实施例通过获取终端亮屏事件,获取终端系统时间,判断亮屏时间与时间锚点的时间间隔是否小于预设时间,在判断出亮屏时间与时间锚点的时间间隔不小于预设时间后,判断网络状态和用户设置是否允许访问服务器,在判断出网络状态和用户设置允许访问服务器后,向服务器发送访问请求,达到了节省移动终端的网络流量和电量的效果。In this embodiment, the time interval of the bright screen and the time anchor point is determined to be less than the preset time, and the time interval between the bright screen time and the time anchor point is not less than the preset time. After that, it is determined whether the network status and the user setting allow access to the server, and after determining that the network status and the user setting allow access to the server, sending an access request to the server, thereby achieving the effect of saving network traffic and power of the mobile terminal.
图4是根据本发明第四实施例的消息推送方法的流程图。如图4所示,该消息推送方法包括以下步骤:4 is a flow chart of a message pushing method according to a fourth embodiment of the present invention. As shown in FIG. 4, the message pushing method includes the following steps:
步骤S401,消息推送服务器接收来自移动终端的消息拉取请求。Step S401, the message push server receives a message pull request from the mobile terminal.
其中,移动终端在亮屏时向消息推送服务器发送消息拉取请求,消息拉取请求用于请求消息推送服务器向移动终端推送消息。The mobile terminal sends a message pull request to the message push server when the screen is bright, and the message pull request is used to request the message push server to push the message to the mobile terminal.
本实施例中,在消息推送服务器向移动终端推送消息之前,消息推送服务器接收移动终端发送的亮屏时间;消息推送服务器根据亮屏时间确定需要向移动终端推送的消息,其中,消息推送服务器向移动终端推送确定的消息。In this embodiment, before the message pushing server pushes the message to the mobile terminal, the message pushing server receives the bright time sent by the mobile terminal; the message pushing server determines the message that needs to be pushed to the mobile terminal according to the bright screen time, wherein the message pushing server sends the message to the mobile terminal. The mobile terminal pushes the determined message.
消息推送服务器根据亮屏时间确定需要向移动终端推送的消息包括:消息推送服务器根据亮屏时间获取满足第一预设条件的推送消息,满足第一预设条件的推送消息为处于亮屏时间和最新历史推送时间之间的消息,最新历史推送时间为消息推送服务器上一次向移动终端推送消息的时间,其中,消息推送服务器向移动终端推送满足第一预设条件的消息。The message pushing server determines that the message to be pushed to the mobile terminal according to the brightness time includes: the message pushing server acquires the push message that meets the first preset condition according to the bright screen time, and the push message that satisfies the first preset condition is the bright time and The latest historical push time is the time when the message push server pushes the message to the mobile terminal last time, wherein the message push server pushes the message that meets the first preset condition to the mobile terminal.
步骤S402,消息推送服务器在接收到消息拉取请求后向移动终端推送消息。Step S402: The message pushing server pushes a message to the mobile terminal after receiving the message pull request.
消息推送服务器基于移动终端的消息拉取请求,向移动终端推送消息。也就是说,移动终端在亮屏时获取当前亮屏时间,移动终端将亮屏时间发送至消息推送服务器,消息推送服务器根据亮屏时间确定需要向移动终端推送的消息。以手机为例,在检测到手机亮屏后,获取手机亮屏时间,记录下当前亮屏时间,并将当前亮屏时间发送至消息推送服务器,消息推送服务器根据接收到的亮屏时间来确定需要推送哪些消息到 手机上。The message push server pushes a message to the mobile terminal based on the message pull request of the mobile terminal. That is to say, the mobile terminal acquires the current bright screen time when the screen is bright, the mobile terminal sends the bright screen time to the message push server, and the message push server determines the message that needs to be pushed to the mobile terminal according to the bright screen time. Taking the mobile phone as an example, after detecting the bright screen of the mobile phone, obtaining the bright time of the mobile phone, recording the current bright time, and sending the current bright time to the message pushing server, and the message pushing server determines according to the received bright time. What messages need to be pushed to on the phone.
在获取移动终端的亮屏时间之后,移动终端获取最新历史查询时间,其中,最新历史查询时间为移动终端上一次向消息推送服务器发送消息拉取请求的时间;以及移动终端判断亮屏时间距离最新历史查询时间的时间间隔是否大于预设时间间隔,其中,移动终端在确定亮屏时间距离最新历史查询时间的时间间隔大于预设时间间隔时,向消息推送服务器发送消息拉取请求。After obtaining the bright time of the mobile terminal, the mobile terminal acquires the latest historical query time, where the latest historical query time is the time when the mobile terminal sends the message pull request to the message push server last time; and the mobile terminal determines that the bright screen time distance is the latest. Whether the time interval of the historical query time is greater than the preset time interval, wherein the mobile terminal sends a message pull request to the message push server when determining that the time interval between the bright screen time and the latest historical query time is greater than the preset time interval.
优选地,为了节省手机电量和网络流量,对一些推送服务的实时性要求不高的消息,不必在每次手机亮屏时都获取消息推送,只需在一定时间间隔后再获取一次消息推送即可。举例来说,在检测到手机亮屏,并记录下当前亮屏时间后,查询手机的最新历史查询时间,也就是最近一次获取消息推送的时间,判断当前手机亮屏的时间与最近一次获取消息推送的时间是否大于一定的时间间隔,例如20分钟,如果当前手机亮屏的时间与最近一次获取消息推送的时间大于20分钟,则向消息推送服务器发送消息拉取请求。如果当前手机亮屏的时间与最近一次获取消息推送的时间不大于20分钟,则不向消息推送服务器发送消息拉取请求。Preferably, in order to save mobile phone power and network traffic, the message that the real-time performance of some push services is not high, it is not necessary to obtain the message push every time the mobile phone is bright, and only need to obtain a message push after a certain time interval. can. For example, after detecting the bright screen of the mobile phone and recording the current bright time, query the latest historical query time of the mobile phone, that is, the time when the latest message is pushed, and determine the current time of the mobile phone and the latest time to obtain the message. Whether the pushed time is greater than a certain time interval, for example, 20 minutes, if the current mobile phone is on the screen and the time of the last time the message is pushed is greater than 20 minutes, the message pull request is sent to the message push server. If the time when the current mobile phone is on the screen and the time when the latest message is pushed is not more than 20 minutes, the message pull request is not sent to the message push server.
优选地,为了防止移动终端一次接收到的推送消息太多而遗漏任何对用户有效的推送消息,可以预先设置一次推送消息的数量,例如50条,以确保即使移动终端长期处于无法接收推送消息的状态,在下一次能够接收消息的时候不会因为一次接收到的推送消息太多而遗漏任何对用户有效的推送消息。Preferably, in order to prevent the mobile terminal from receiving too many push messages at one time and missing any push messages valid to the user, the number of push messages, for example, 50, may be set in advance to ensure that the mobile terminal cannot receive the push message for a long time. The state, when the next time the message can be received, will not miss any push messages valid to the user because there are too many push messages received at one time.
本实施例通过消息推送服务器接收来自移动终端的消息拉取请求,消息推送服务器在接收到消息拉取请求后向移动终端推送消息,达到了节省移动终端的网络流量和电量的效果。In this embodiment, the message push server receives the message pull request from the mobile terminal, and the message push server pushes the message to the mobile terminal after receiving the message pull request, thereby achieving the effect of saving network traffic and power of the mobile terminal.
根据本发明实施例的另一方面,提供了一种移动终端,该移动终端可以用于执行本发明实施例的消息推送方法,本发明实施例的消息推送方法也可以通过本发明实施例的移动终端来执行。According to another aspect of the present invention, a mobile terminal is provided, and the mobile terminal can be used to perform the message pushing method according to the embodiment of the present invention. The message pushing method in the embodiment of the present invention can also be moved by using the embodiment of the present invention. The terminal is executed.
图5是根据本发明第一实施例的移动终端的示意图。如图5所示,该移动终端包括:FIG. 5 is a schematic diagram of a mobile terminal in accordance with a first embodiment of the present invention. As shown in FIG. 5, the mobile terminal includes:
检测单元10,用于检测移动终端是否亮屏。The detecting unit 10 is configured to detect whether the mobile terminal is bright.
本实施例的移动终端包括移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等多种类型的终端设备,本实施例中以手机为例对具体实施方式进行论述。The mobile terminal of this embodiment includes a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like, and the mobile phone in this embodiment The specific embodiments are discussed as an example.
亮屏是指用户的移动终端从暗屏休眠的状态唤醒到亮屏的状态,可以通过按下其 机身的开关按键的方式或者其它能使移动终端从暗屏休眠的状态唤醒屏幕到亮屏状态的方式,例如某些带有智能唤醒功能的手机壳在打开时也会使手机亮屏。Bright screen refers to the state in which the user's mobile terminal wakes up from the state of the dark screen to the bright screen, and can be pressed by pressing it. The way the switch button of the body or other means that can make the mobile terminal wake up from the dark state of the screen to the bright state, for example, some mobile phone cases with smart wake-up function will also make the phone bright.
检测单元10检测移动终端是否亮屏,例如,可以通过传感器来检测屏幕是否亮屏,包括检测屏幕亮度,或者检测屏幕的显示单元电路是否工作来获取移动终端是否亮屏。The detecting unit 10 detects whether the mobile terminal is bright. For example, whether the screen is bright or not can be detected by the sensor, including detecting the brightness of the screen, or detecting whether the display unit circuit of the screen works to obtain whether the mobile terminal is bright.
发送单元20,用于在检测到移动终端亮屏时,向消息推送服务器发送消息拉取请求,其中,消息拉取请求用于请求消息推送服务器向移动终端推送消息,消息推送服务器用于在接收到消息拉取请求后向移动终端推送消息。The sending unit 20 is configured to send a message pull request to the message push server when the mobile terminal is detected to be bright, wherein the message pull request is used to request the message push server to push the message to the mobile terminal, and the message push server is configured to receive Push the message to the mobile terminal after the message pull request.
可选地,移动终端还包括获取单元,用于在检测单元10检测到移动终端亮屏时,获取移动终端的亮屏时间,发送单元20还用于将亮屏时间发送至消息推送服务器。发送单元20向消息推送服务器发送消息拉取请求时将亮屏时间发送至消息推送服务器,消息推送服务器还用于根据亮屏时间确定需要向移动终端推送的消息。也就是说,在检测单元10检测到手机亮屏后,获取单元获取手机亮屏时间,记录下当前亮屏时间,由发送单元20向消息推送服务器发送消息拉取请求同时将当前亮屏时间发送至消息推送服务器,消息推送服务器根据接收到发送单元20发送的亮屏时间来确定需要推送哪些消息到手机上。Optionally, the mobile terminal further includes an obtaining unit, configured to acquire a bright time of the mobile terminal when the detecting unit 10 detects that the mobile terminal is bright, and the sending unit 20 is further configured to send the bright time to the message pushing server. The sending unit 20 sends a bright time to the message pushing server when sending the message pull request to the message pushing server, and the message pushing server is further configured to determine a message that needs to be pushed to the mobile terminal according to the bright screen time. That is to say, after the detecting unit 10 detects that the mobile phone is bright, the acquiring unit acquires the bright time of the mobile phone, records the current bright time, and sends a message pull request to the message pushing server by the sending unit 20 and simultaneously sends the current bright time. To the message push server, the message push server determines which messages need to be pushed to the mobile phone according to the received bright time sent by the sending unit 20.
优选地,为了节省手机电量和网络流量,对一些推送服务的实时性要求不高的消息,不必在每次手机亮屏时都获取消息推送,只需在一定时间间隔后再获取一次消息推送即可。举例来说,在检测单元10检测到手机亮屏,并记录下当前亮屏时间后,查询手机的最新历史推送时间,也就是最近一次获取消息推送的时间,判断当前手机亮屏的时间与最近一次获取消息推送的时间是否大于一定的时间间隔,例如20分钟,如果当前手机亮屏的时间与最近一次获取消息推送的时间大于20分钟,则由发送单元20向消息推送服务器发送消息拉取请求。如果当前手机亮屏的时间与最近一次获取消息推送的时间不大于20分钟,则发送单元20不向消息推送服务器发送消息拉取请求。Preferably, in order to save mobile phone power and network traffic, the message that the real-time performance of some push services is not high, it is not necessary to obtain the message push every time the mobile phone is bright, and only need to obtain a message push after a certain time interval. can. For example, after the detecting unit 10 detects the bright screen of the mobile phone and records the current bright screen time, it queries the latest historical pushing time of the mobile phone, that is, the time when the latest message is pushed, and determines the current time and the latest time of the mobile phone brightening. Whether the time for obtaining the message push is greater than a certain time interval, for example, 20 minutes. If the time of the current mobile phone brightening and the time of the last time the message is pushed is greater than 20 minutes, the sending unit 20 sends a message pull request to the message pushing server. . If the time when the current mobile phone is on the screen and the time when the latest acquisition message is pushed is not more than 20 minutes, the sending unit 20 does not send a message pull request to the message push server.
如果移动终端是首次亮屏,例如手机是新买的,此时是没有最新历史推送时间的,在检测单元检测到屏幕亮屏时,发送单元20向消息推送服务器发送消息拉取请求,消息推送服务器根据手机的亮屏时间将最新的一条消息推送给手机,此时,消息推送服务器推送消息的时间就作为最新历史推送时间。If the mobile terminal is the first time to light up, for example, the mobile phone is newly bought, at this time, there is no latest historical push time. When the detecting unit detects that the screen is bright, the sending unit 20 sends a message pull request to the message push server, and the message is pushed. The server pushes the latest message to the mobile phone according to the bright time of the mobile phone. At this time, the time when the message push server pushes the message is taken as the latest historical push time.
优选地,在检测到移动终端亮屏时,检测移动终端的网络状态;判断移动终端是否处于WIFI连接状态;以及在判断出移动终端处于WIFI连接状态时,移动终端向消息推送服务器发送消息拉取请求。Preferably, when detecting that the mobile terminal is bright, detecting the network status of the mobile terminal; determining whether the mobile terminal is in the WIFI connection state; and when determining that the mobile terminal is in the WIFI connection state, the mobile terminal sends a message pull to the message push server. request.
为节省手机的数据网络流量,在检测单元10检测到手机亮屏后,检测手机此时的网络状态,如果手机的网络状态为WIFI连接状态,当前手机亮屏的时间与最近一次 获取消息推送的时间大于一定的时间间隔,则发送单元20向服务器发送消息拉取请求;如果手机的网络状态不是WIFI连接状态,则即使当前手机亮屏的时间与最新历史推送时间大于一定的时间间隔,发送单元20也不向消息推送服务器发送消息拉取请求。In order to save the data network traffic of the mobile phone, after the detecting unit 10 detects the bright screen of the mobile phone, the network state of the mobile phone at this time is detected. If the network state of the mobile phone is the WIFI connection state, the time of the current mobile phone brightening is the last time. When the time for obtaining the message is greater than a certain time interval, the sending unit 20 sends a message pull request to the server; if the network status of the mobile phone is not the WIFI connection status, even if the current mobile phone bright time and the latest historical push time are greater than a certain time At the interval, the transmitting unit 20 also does not send a message pull request to the message push server.
接收单元30,用于接收消息推送服务器推送的消息。接收单元30接收消息推送服务器推送的消息分为三种情况:The receiving unit 30 is configured to receive a message pushed by the message pushing server. The receiving unit 30 receives the message pushed by the message pushing server into three cases:
第一种情况是获取的最新历史推送时间为空,也就是说用户的移动终端是第一次向消息推送服务器发送消息拉取请求,则接收单元30接收到消息推送服务器返回的最新的一条推送消息;第二种情况是获取的最新历史推送时间不为空但接收单元30接收到的推送消息为空,也就是说消息推送服务器会根据获取到的最新历史推送时间跟终端亮屏时间做比较,若这两个时刻之间并没有新的推送消息需要向终端推送,则接收单元30接收到返回的新推送消息为空,接收单元30不会收到新的推送消息;第三种情况是获取的最新历史推送时间不为空且返回新的推送消息也不为空,也就是说消息推送服务器会根据获取到的最新历史推送时间跟终端亮屏时间做比较,若这两个时刻之间有一条或者一条以上的新的推送消息,接收单元30将接收到消息推送服务器推送的消息,移动终端将有所响应。In the first case, the latest historical push time obtained is empty, that is, the user's mobile terminal sends a message pull request to the message push server for the first time, and the receiving unit 30 receives the latest push returned by the message push server. The second case is that the latest historical push time is not empty but the push message received by the receiving unit 30 is empty, that is, the message push server compares the latest historical push time with the terminal's bright time. If there is no new push message between the two moments and needs to be pushed to the terminal, the receiving unit 30 receives the returned new push message is empty, the receiving unit 30 does not receive the new push message; the third case is The latest historical push time obtained is not empty and the new push message is not empty, that is to say, the message push server compares the latest historical push time with the terminal bright time, if between the two moments There is one or more new push messages, and the receiving unit 30 will receive the message pushed by the server push server. The mobile terminal will respond.
优选地,消息推送服务器将会根据推送消息的有效性向移动终端进行推送,也就是说,当最新历史查询时间与本次亮屏时间之间有很多需要推送的消息时,根据用户预先设置,仅推送或者优先推送与本次亮屏时间最近的一定数量的消息。举例来说,如果用户3小时没有亮屏或没有联网,在亮屏并联网后,可能会有200条推送消息,此时如果接收单元30全部接收到,则会因为消息数量太大而被用户忽略掉重要消息,因此可以根据用户预先设置,仅推送或者优先推送最新发生的50条消息,这种策略的优势就在于,就算移动终端长期处于无法接收推送消息的状态,在下一次能实现接收消息的时候不会因为接收到的推送消息太多而遗漏任何对用户有效的推送消息。以上3种情况接收单元30都会接收到一个新的最新历史推送时间,用户的移动终端则需要将这个新的最新历史推送时间保存记录下来。Preferably, the message push server will push the mobile terminal according to the validity of the push message, that is, when there are many messages to be pushed between the latest historical query time and the current bright time, according to the user preset, only Push or prioritize a certain number of messages that are closest to the time of this bright screen. For example, if the user does not have a bright screen or no network for 3 hours, after the screen is bright and connected, there may be 200 push messages. If the receiving unit 30 receives all of them, the user will be oversized because the number of messages is too large. Ignore important messages, so we can push or preferentially push the latest 50 messages according to the user's preset settings. The advantage of this strategy is that even if the mobile terminal is in a state where it cannot receive push messages for a long time, it can receive messages the next time. When you do not receive too many push messages, you will miss any push messages that are valid for the user. In the above three cases, the receiving unit 30 will receive a new latest historical push time, and the user's mobile terminal needs to record and record this new latest historical push time.
本实施例通过检测单元10,用于检测移动终端是否亮屏,发送单元20,用于在检测到移动终端亮屏时,向消息推送服务器发送消息拉取请求,其中,消息拉取请求用于请求消息推送服务器向移动终端推送消息,消息推送服务器用于在接收到消息拉取请求后向移动终端推送消息,以及接收单元30,用于接收消息推送服务器推送的消息。实现了在检测到终端亮屏后再向消息推送服务器发送消息拉取请求并接收推送消息,减少消息推送次数,进而达到了节省移动终端的网络流量和电量的效果。The detecting unit 10 is configured to detect whether the mobile terminal is bright or not, and the sending unit 20 is configured to send a message pull request to the message pushing server when detecting that the mobile terminal is bright, wherein the message pull request is used for The request message push server pushes a message to the mobile terminal, the message push server is configured to push the message to the mobile terminal after receiving the message pull request, and the receiving unit 30 is configured to receive the message pushed by the message push server. After the terminal is detected to be bright, the message pull request is sent to the message push server and the push message is received, thereby reducing the number of message pushes, thereby achieving the effect of saving network traffic and power of the mobile terminal.
图6是根据本发明第二实施例的移动终端的示意图;如图6所示,该移动终端包 括:6 is a schematic diagram of a mobile terminal according to a second embodiment of the present invention; as shown in FIG. 6, the mobile terminal package include:
传感器40,用于检测移动终端是否亮屏。The sensor 40 is configured to detect whether the mobile terminal is bright.
可选的,通过光电传感器用来检测终端的屏幕处的亮度来检测终端是否亮屏,或者通过电流传感器来检测屏幕电路是否工作来检测移动终端是否亮屏。Optionally, the photoelectric sensor is used to detect the brightness at the screen of the terminal to detect whether the terminal is bright, or the current sensor is used to detect whether the screen circuit works to detect whether the mobile terminal is bright.
通信单元50,用于在检测到移动终端亮屏时,向消息推送服务器发送消息拉取请求,并接收消息推送服务器推送的消息,其中,消息拉取请求用于请求消息推送服务器向移动终端推送消息,消息推送服务器用于在接收到消息拉取请求后向移动终端推送消息。The communication unit 50 is configured to: when detecting that the mobile terminal is bright, send a message pull request to the message push server, and receive a message pushed by the message push server, wherein the message pull request is used to request the message push server to push the mobile terminal The message, the message push server is configured to push the message to the mobile terminal after receiving the message pull request.
在传感器40检测到移动终端亮屏时,获取移动终端的亮屏时间,通信单元50将亮屏时间发送至消息推送服务器,其中,消息推送服务器还用于根据亮屏时间确定需要向移动终端推送的消息。When the sensor 40 detects that the mobile terminal is bright, the bright time of the mobile terminal is acquired, and the communication unit 50 sends the bright time to the message pushing server, wherein the message pushing server is further configured to determine that the mobile terminal needs to be pushed according to the bright screen time. Message.
可选地,在获取移动终端的亮屏时间之后,移动终端获取最新历史查询时间,其中,最新历史查询时间为移动终端上一次向消息推送服务器发送消息拉取请求的时间;以及移动终端判断亮屏时间距离最新历史查询时间的时间间隔是否大于预设时间间隔,其中,移动终端在确定亮屏时间距离最新历史查询时间的时间间隔大于预设时间间隔时,向通信单元50消息推送服务器发送消息拉取请求。Optionally, after obtaining the bright time of the mobile terminal, the mobile terminal acquires the latest historical query time, where the latest historical query time is the time when the mobile terminal sends the message pull request to the message push server last time; and the mobile terminal determines to light Whether the time interval of the screen time from the latest historical query time is greater than a preset time interval, wherein the mobile terminal sends a message to the communication unit 50 message push server when determining that the time interval between the bright screen time and the latest historical query time is greater than the preset time interval Pull the request.
在通信单元50向消息推送服务器发送消息拉取请求之后,通信单元50还用于接收满足第一预设条件的推送消息,其中,消息推送服务器用于根据亮屏时间获取满足第一预设条件的推送消息,满足第一预设条件的推送消息为处于亮屏时间和最新历史推送时间之间的消息,最新历史推送时间为消息推送服务器上一次向移动终端推送消息的时间。After the communication unit 50 sends a message pull request to the message push server, the communication unit 50 is further configured to receive a push message that satisfies the first preset condition, where the message push server is configured to obtain the first preset condition according to the bright screen time. The push message, the push message satisfying the first preset condition is a message between the bright time and the latest historical push time, and the latest historical push time is the time when the message push server pushes the message to the mobile terminal last time.
通信单元50可用于收发信息或通话过程中,信号的接收和发送,该通信单元可以为射频(Radio Frequency,简称RF)电路、路由器、调制解调器、等网络通信设备。特别地,当通信单元为RF电路时,将基站的下行信息接收后,交由一个或者一个以上处理器处理;另外,将涉及上行的数据发送给基站。通常,作为通信单元的RF电路包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(Subscriber Identity Module,简称SIM)卡、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,简称LNA)、双工器等。此外,通信单元还可以通过无线通信与网络和其他设备通信。无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,简称GSM)、通用分组无线服务(General Packet Radio Service,简称GPRS)、码分多址(Code Division Multiple Access,简称CDMA)、宽带码分多址(Wideband Code Division Multiple Access,简称WCDMA)、 长期演进(Long Term Evolution,简称LTE)、电子邮件、短消息服务(Short Messaging Service,简称SMS)等。存储器可用于存储软件程序以及模块,处理器通过运行存储在存储器的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器还可以包括存储器控制器,以提供处理器和输入单元对存储器的访问。The communication unit 50 can be used for transmitting and receiving information and receiving and transmitting signals during a call. The communication unit can be a radio frequency (RF) circuit, a router, a modem, or the like. Specifically, when the communication unit is an RF circuit, the downlink information of the base station is received and then processed by one or more processors; in addition, the data related to the uplink is transmitted to the base station. Generally, RF circuits as communication units include, but are not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, and low noise. Low Noise Amplifier (LNA), duplexer, etc. In addition, the communication unit can also communicate with the network and other devices through wireless communication. Wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code). Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), etc. The memory can be used to store software programs and modules, and the processor executes various functional applications and data processing by running software programs and modules stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to the terminal. Data created by the use of the device (such as audio data, phone book, etc.). Further, the memory may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory can also include a memory controller to provide access to the memory by the processor and the input unit.
本实施例通过传感器40,用于检测移动终端是否亮屏。通信单元50,用于在检测到移动终端亮屏时,向消息推送服务器发送消息拉取请求,并接收消息推送服务器推送的消息,其中,消息拉取请求用于请求消息推送服务器向移动终端推送消息,消息推送服务器用于在接收到消息拉取请求后向移动终端推送消息。实现了在检测到终端亮屏后再向消息推送服务器发送消息拉取请求并接收推送消息,达到了节省移动终端的网络流量和电量的效果。This embodiment is used by the sensor 40 to detect whether the mobile terminal is bright. The communication unit 50 is configured to: when detecting that the mobile terminal is bright, send a message pull request to the message push server, and receive a message pushed by the message push server, wherein the message pull request is used to request the message push server to push the mobile terminal The message, the message push server is configured to push the message to the mobile terminal after receiving the message pull request. After the terminal is detected to be bright, the message pull request is sent to the message push server and the push message is received, thereby achieving the effect of saving network traffic and power of the mobile terminal.
图7是根据本发明第三实施例的移动终端的示意图。如图7所示,该移动终端包括:Figure 7 is a schematic diagram of a mobile terminal in accordance with a third embodiment of the present invention. As shown in FIG. 7, the mobile terminal includes:
处理组件110,包括一个或多个处理核心的处理器111,处理器是终端设备的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器内的软件程序和/或模块,以及调用存储在存储器内的数据,执行终端设备的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器可包括一个或多个处理核心;处理器可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。上述调制解调处理器也可以不集成到处理器中。The processing component 110 includes a processor 111 of one or more processing cores, and the processor is a control center of the terminal device, and connects various parts of the entire mobile phone by using various interfaces and lines, by running or executing a software program stored in the memory and / or module, as well as calling data stored in the memory, performing various functions and processing data of the terminal device, thereby performing overall monitoring of the mobile phone. Optionally, the processor may include one or more processing cores; the processor may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application, etc., and performs modulation and demodulation processing. The device mainly handles wireless communication. The above modem processor may also not be integrated into the processor.
通信单元120,用于收发信息或通话过程中,信号的接收和发送,通信单元120可以为射频(Radio Frequency,简称RF)电路、路由器、调制解调器、等网络通信设备。特别地,当通信单元120为RF电路时,将基站的下行信息接收后,交由一个或者一个以上处理器处理;另外,将涉及上行的数据发送给基站。通常,作为通信单元的RF电路包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(Subscriber Identity Module,简称SIM)卡、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,简称LNA)、双工器等。此外,通信单元120还可以通过无线通信与网络和其他设备通信。无线通信120可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,简称GSM)、通 用分组无线服务(General Packet Radio Service,简称GPRS)、码分多址(Code Division Multiple Access,简称CDMA)、宽带码分多址(Wideband Code Division Multiple Access,简称WCDMA)、长期演进(Long Term Evolution,简称LTE)、电子邮件、短消息服务(Short Messaging Service,简称SMS)等。存储器可用于存储软件程序以及模块,处理器通过运行存储在存储器的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序,例如声音播放功能、图像播放功能等;存储数据区可存储根据终端设备的使用所创建的数据,例如音频数据、电话本等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器还可以包括存储器控制器,以提供处理器和输入单元对存储器的访问。The communication unit 120 is configured to receive and transmit information during a message or a call, and the communication unit 120 may be a radio frequency (RF) circuit, a router, a modem, or the like. Specifically, when the communication unit 120 is an RF circuit, the downlink information of the base station is received and processed by one or more processors; in addition, data related to the uplink is transmitted to the base station. Generally, RF circuits as communication units include, but are not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, and low noise. Low Noise Amplifier (LNA), duplexer, etc. In addition, the communication unit 120 can also communicate with the network and other devices through wireless communication. Wireless communication 120 may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), Using General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (Long Term Evolution) , referred to as LTE), e-mail, Short Messaging Service (SMS), etc. The memory can be used to store software programs and modules, and the processor executes various functional applications and data processing by running software programs and modules stored in the memory. The memory mainly includes a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function, such as a sound playing function, an image playing function, and the like; and the storage data area can be stored according to the use of the terminal device. The data created, such as audio data, phone book, etc. Further, the memory may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory can also include a memory controller to provide access to the memory by the processor and the input unit.
电源组件130,用于为终端提供电源。终端设备还包括给各个部件供电的电源组件130,优选的,电源可以通过电源管理系统与处理器逻辑相连,从而通过电源管理系统实现管理充电、放电以及功耗管理等功能。电源还可以包括一个或一个以上的直流或交流电源、再充系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The power component 130 is configured to provide power to the terminal. The terminal device also includes a power component 130 that supplies power to the various components. Preferably, the power source can be logically coupled to the processor through the power management system to manage functions such as charging, discharging, and power management through the power management system. The power supply may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
存储器140,包括一个或多个计算机可读存储介质的存储器,用于存储应用程序等数据。The memory 140 includes a memory of one or more computer readable storage media for storing data such as an application.
输入/输出接口150,输入接口可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。优选地,输入单元可包括触敏表面151以及其他输入设备152。触敏表面151,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作,例如用户使用手指、触笔等任何适合的物体或附件在触敏表面上或在触敏表面附近的操作,并根据预先设定的程式驱动相应的连接装置。可选地,触敏表面可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器,并能接收处理器发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面。除了触敏表面,输入单元还可以包括其他输入设备。优选地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。An input/output interface 150 that can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Preferably, the input unit can include a touch sensitive surface 151 as well as other input devices 152. A touch-sensitive surface 151, also referred to as a touch display or trackpad, can collect touch operations on or near the user, such as a user using a finger, stylus, or the like on any touch-sensitive surface or touch Sensing the operation near the surface and driving the corresponding connecting device according to a preset program. Alternatively, the touch sensitive surface can include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. Give the processor and receive commands from the processor and execute them. In addition, touch-sensitive surfaces can be implemented in a variety of types, including resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface, the input unit can also include other input devices. Preferably, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元160,显示单元160用于显示由用户输入的信息或提供给用户的信息以及终端设备的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元160可包括显示面板161,可选的,可以采用液晶显 示器(Liquid Crystal Display,简称LCD)、有机发光二极管(Organic Light-Emitting Diode,简称OLED)等形式来配置显示面板。可选地,触敏表面可覆盖显示面板,当触敏表面检测到在其上或附近的触摸操作后,传送给处理器以确定触摸事件的类型,随后处理器根据触摸事件的类型在显示面板上提供相应的视觉输出。触敏表面与显示面板可作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与显示面板集成而实现输入和输出功能。The display unit 160 is configured to display information input by the user or information provided to the user and various graphical user interfaces of the terminal device, and the graphic user interfaces may be composed of graphics, text, icons, videos, and any combination thereof. . The display unit 160 may include a display panel 161, and optionally, may use liquid crystal display The display panel is configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED). Optionally, the touch-sensitive surface may cover the display panel, and when the touch-sensitive surface detects a touch operation on or near it, transmits to the processor to determine the type of the touch event, and then the processor displays the panel according to the type of the touch event. Provide corresponding visual output on it. The touch-sensitive surface and display panel can function as two separate components to implement input and input functions, but in some embodiments, the touch-sensitive surface can be integrated with the display panel to implement input and output functions.
传感器170,包括至少一种传感器,比如光传感器、运动传感器以及其他传感器。光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在终端设备移动到耳边时关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端设备还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The sensor 170 includes at least one type of sensor such as a light sensor, a motion sensor, and other sensors. The light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and/or the backlight when the terminal device moves to the ear. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the terminal device can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, not here Let me repeat.
音频电路180,音频电路、扬声器,传声器可提供用户与终端设备之间的音频接口。音频电路180可将接收到的音频数据转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路180接收后转换为音频数据,再将音频数据输出处理器处理后,经RF电路以发送给比如另一终端设备,或者将音频数据输出至存储器以便进一步处理。音频电路还可能包括耳塞插孔,以提供外设耳机与终端设备的通信。The audio circuit 180, the audio circuit, the speaker, and the microphone provide an audio interface between the user and the terminal device. The audio circuit 180 can transmit the converted electrical data of the received audio data to a speaker, and convert the sound signal to a sound signal output. On the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 180 and then converted. After the audio data is processed by the audio data output processor, it is sent to, for example, another terminal device via the RF circuit, or the audio data is output to the memory for further processing. The audio circuit may also include an earbud jack to provide communication between the peripheral earphone and the terminal device.
无线通信单元190,用于实现无线通信。终端设备上可以配置有无线通信单元190,无线通信单元190可以为WIFI模块。WIFI属于短距离无线传输技术,终端设备通过无线通信单元190可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图中示出了无线通信单元190,但是可以理解的是,其并不属于终端设备的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。The wireless communication unit 190 is configured to implement wireless communication. A wireless communication unit 190 can be configured on the terminal device, and the wireless communication unit 190 can be a WIFI module. WIFI belongs to short-range wireless transmission technology. The terminal device can help users to send and receive emails, browse web pages and access streaming media through the wireless communication unit 190, and provides wireless broadband Internet access for users. Although the wireless communication unit 190 is shown in the drawings, it can be understood that it does not belong to the essential configuration of the terminal device, and may be omitted as needed within the scope of not changing the essence of the invention.
尽管未示出,终端设备还可以包括摄像头、蓝牙模块等,在此不再赘述。在本实施例中,终端设备还包括有一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器140中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行本公开实施例提供的方法的指令。Although not shown, the terminal device may further include a camera, a Bluetooth module, and the like, and details are not described herein again. In this embodiment, the terminal device further includes one or more programs, wherein one or more programs are stored in the memory 140 and configured to execute the one or more programs by the one or more processors. Instructions for performing the methods provided by embodiments of the present disclosure.
本领域技术人员可以理解,图中示出的终端设备结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。 It will be understood by those skilled in the art that the terminal device structure shown in the drawings does not constitute a limitation of the terminal device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
本实施例通过上述组成部件,实现了在检测到终端亮屏后再向消息推送服务器发送消息拉取请求并接收推送消息,达到了节省移动终端的网络流量和电量的效果。In this embodiment, after detecting the bright screen of the terminal, the message pull request is sent to the message push server and the push message is received, which achieves the effect of saving network traffic and power of the mobile terminal.
根据本发明实施例的另一方面,提供了一种消息推送服务器,该消息推送服务器可以用于执行本发明实施例的消息推送方法,本发明实施例的消息推送方法也可以通过本发明实施例的消息推送服务器来执行。According to another aspect of the present invention, a message push server is provided, and the message push server may be used to perform the message push method in the embodiment of the present invention. The message push method in the embodiment of the present invention may also be implemented in the embodiment of the present invention. The message is pushed to the server to execute.
图8是根据本发明第一实施例的消息推送服务器的示意图。如图8所示,该消息推送服务器包括:FIG. 8 is a schematic diagram of a message push server according to a first embodiment of the present invention. As shown in FIG. 8, the message push server includes:
接收单元60,用于接收来自移动终端的消息拉取请求,其中,移动终端在亮屏时向消息推送服务器发送消息拉取请求,消息拉取请求用于请求消息推送服务器向移动终端推送消息。The receiving unit 60 is configured to receive a message pull request from the mobile terminal, where the mobile terminal sends a message pull request to the message push server when the screen is bright, and the message pull request is used to request the message push server to push the message to the mobile terminal.
可选地,接收单元60接收来自移动终端的消息拉取请求时,接收亮屏时间,消息推送服务器还用于根据亮屏时间确定需要向移动终端推送的消息。在获取接收单元60接收到移动终端的亮屏时间之后,接收最新历史推送时间,其中,最新历史推送时间为消息推送服务器上一次向移动终端推送消息的时间,Optionally, when receiving the message pull request from the mobile terminal, the receiving unit 60 receives the bright screen time, and the message pushing server is further configured to determine, according to the bright screen time, the message that needs to be pushed to the mobile terminal. After the receiving unit 60 receives the bright time of the mobile terminal, receiving the latest historical push time, where the latest historical push time is the time when the message pushing server pushes the message to the mobile terminal last time.
推送单元70,用于在接收到消息拉取请求后向移动终端推送消息。The pushing unit 70 is configured to push a message to the mobile terminal after receiving the message pull request.
在接收单元60接收到来自移动终端的消息拉取请求时,推送单元70向移动终端推送消息,具体地,推送单元70根据接收单元60接收到的终端亮屏时间和最新历史推送时间来推送这之间的消息,移动终端在接收到推送单元70的推送消息之后将最新历史推送时间修改为最后一次接收推送消息的时间。When the receiving unit 60 receives the message pull request from the mobile terminal, the pushing unit 70 pushes the message to the mobile terminal. Specifically, the pushing unit 70 pushes the terminal according to the terminal bright time and the latest historical push time received by the receiving unit 60. Between the messages, the mobile terminal modifies the latest history push time to the last time the push message was received after receiving the push message from the push unit 70.
推送单元70向移动终端接收消息推送消息分为三种情况:第一种情况是接收单元60接收的最新历史推送时间为空,也就是说用户的移动终端是第一次向消息推送服务器发送消息拉取请求,则推送单元70将会返回最新的一条推送消息给用户的移动终端;第二种情况是接收单元60接收的最新历史推送时间不为空但返回新的推送消息为空,也就是说消息推送服务器会根据接收单元60接收到的最新历史推送时间跟终端亮屏时间做比较,若这两个时刻之间并没有新的推送消息需要向终端推送,则推送单元70推送的新的推送消息为空,用户的移动终端不会收到新的推送消息;第三种情况是接收单元60接收的最新历史推送时间不为空且返回新的推送消息也不为空,也就是说消息推送服务器会根据获取到的最新历史推送时间跟终端亮屏时间做比较,若这两个时刻之间有一条或者一条以上的新的推送消息,推送单元70将把新的推送消息推送到移动终端上,移动终端将有所响应。The push unit 70 receives the message push message from the mobile terminal into three cases: the first case is that the latest history push time received by the receiving unit 60 is empty, that is, the user's mobile terminal sends the message to the message push server for the first time. If the request is pulled, the push unit 70 will return the latest push message to the user's mobile terminal; the second case is that the latest historical push time received by the receiving unit 60 is not empty but the new push message is empty, that is, It is said that the message push server compares the latest historical push time received by the receiving unit 60 with the terminal bright time. If there is no new push message between the two times, it needs to be pushed to the terminal, and the push unit 70 pushes the new one. The push message is empty, the user's mobile terminal does not receive a new push message; the third case is that the latest history push time received by the receiving unit 60 is not empty and the return of the new push message is not empty, that is, the message The push server compares the latest historical push time with the terminal's bright time, if there is between these two moments A new bar or more push message, a push unit 70 will push the new push message on a mobile terminal, the mobile terminal will vary in response.
优选地,消息推送服务器将会根据推送消息的有效性向移动终端进行推送,在推送单元70向移动终端推送消息之前,获取移动终端的用户设置和所要推送消息的数 量,根据用户预先设置,推送单元70仅推送或者优先推送与本次亮屏时间最近的一定数量的消息。举例来说,如果用户3小时没有亮屏或没有联网,在亮屏并联网后,可能会有200条推送消息,此时如果推送单元70全部推送给终端,则会因为消息数量太大而被用户忽略掉重要消息,因此可以根据用户预先设置,推送单元70仅推送或者优先推送最新发生的50条消息,这种策略的优势就在于,就算移动终端长期处于无法接收推送消息的状态,在下一次能实现接收消息的时候不会因为接收到的推送消息太多而遗漏任何对用户有效的推送消息。以上3种情况都会返回一个新的最新历史推送时间给移动终端,用户的移动终端则需要将这个新的最新历史推送时间保存记录下来。Preferably, the message push server will push the mobile terminal according to the validity of the push message, and obtain the user setting of the mobile terminal and the number of messages to be pushed before the push unit 70 pushes the message to the mobile terminal. According to the preset setting by the user, the pushing unit 70 only pushes or preferentially pushes a certain number of messages closest to the current bright time. For example, if the user does not have a bright screen or no network for 3 hours, after the screen is bright and connected, there may be 200 push messages. If the push unit 70 is all pushed to the terminal, the number of messages will be too large. The user ignores the important message, so the push unit 70 can only push or preferentially push the latest 50 messages according to the preset setting by the user. The advantage of this strategy is that even if the mobile terminal is in a state in which it cannot receive the push message for a long time, the next time It can realize that when receiving a message, it does not miss any push message valid to the user because there are too many push messages received. In the above three cases, a new latest historical push time will be returned to the mobile terminal, and the user's mobile terminal needs to record and record this new latest historical push time.
本实施例通过接收单元60接收来自移动终端的消息拉取请求,其中,移动终端在亮屏时向消息推送服务器发送消息拉取请求,消息拉取请求用于请求消息推送服务器向移动终端推送消息,推送单元70在接收到消息拉取请求后向移动终端推送消息。实现了在收到终端发送的消息拉取请求后推送消息,达到了节省移动终端的网络流量和电量的效果。In this embodiment, the receiving unit 60 receives a message pull request from the mobile terminal, where the mobile terminal sends a message pull request to the message push server when the screen is bright, and the message pull request is used to request the message push server to push the message to the mobile terminal. The push unit 70 pushes a message to the mobile terminal after receiving the message pull request. The method of pushing the message after receiving the message pull request sent by the terminal achieves the effect of saving network traffic and power of the mobile terminal.
图9是根据本发明第二实施例的消息推送服务器的示意图。如图9所示,该服务器设备包括:9 is a schematic diagram of a message push server in accordance with a second embodiment of the present invention. As shown in FIG. 9, the server device includes:
中央处理器210,包括一个或一个以上中央处理器(Central Processing Units,简称CPU)。中央处理器可以设置为与存储介质通信,在服务器上执行存储介质中的一系列指令操作。The central processing unit 210 includes one or more central processing units (CPUs). The central processor can be arranged to communicate with a storage medium on which a series of instruction operations in the storage medium are performed.
电源220,包括一个或一个以上电源,用于为消息推送服务器供电。The power source 220 includes one or more power sources for powering the message push server.
存储器230,包括一个或一个以上存储应用程序或数据的存储介质231,例如一个或一个以上海量存储设备,其中,存储器和存储介质可以是短暂存储或持久存储。存储在存储介质231的应用程序2313可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作,还包括一个或一个以上操作系统2311,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等操作系统,还包括各种数据2312。The memory 230 includes one or more storage media 231 that store applications or data, such as one or one storage device in Shanghai, where the storage and storage media may be transitory or persistent. The application 2313 stored on the storage medium 231 may include one or more modules (not shown), each of which may include a series of instruction operations in the server, and one or more operating systems 2311, such as Windows. ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and other operating systems also include various data 2312.
有线或无线网络接口240,包括一个或一个以上有线或无线网络接口,用于实现有线或无线网络连接。A wired or wireless network interface 240, including one or more wired or wireless network interfaces, for implementing a wired or wireless network connection.
输入/输出接口250,一个或一个以上输入输出接口,用于连接输入/输出设备。An input/output interface 250, one or more input/output interfaces, for connecting input/output devices.
键盘260,一个或一个以上键盘,用于通过键盘实现输入。A keyboard 260, one or more keyboards, for inputting through a keyboard.
该服务器可因配置或性能不同而产生比较大的差异,并不局限于本实施例中所列出的组成部分。 The server may vary greatly depending on configuration or performance, and is not limited to the components listed in this embodiment.
此外,根据本公开的方法还可以被实现为由CPU执行的计算机程序。在该计算机程序被CPU执行时,执行本公开的方法中限定的上述功能。上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实现上述步骤或单元功能的计算机程序的计算机可读存储设备实现。Furthermore, the method according to the present disclosure may also be implemented as a computer program executed by a CPU. The above-described functions defined in the method of the present disclosure are performed when the computer program is executed by the CPU. The method steps and system elements described above may also be implemented with a controller and a computer readable storage device for storing a computer program that causes the controller to implement the steps or unit functions described above.
本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。为了清楚地说明硬件和软件的这种可互换性,已经就各种示意性组件、方块、模块、电路和步骤的功能对其进行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加给整个系统的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现所述的功能,但是这种实现决定不应被解释为导致脱离本公开的范围。The various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described. Whether such functionality is implemented as software or as hardware depends on the particular application and design constraints imposed on the overall system. A person skilled in the art can implement the described functions in various ways for each specific application, but such implementation decisions should not be construed as causing a departure from the scope of the disclosure.
结合这里的公开所描述的各种示例性逻辑块、模块和电路可以利用被设计成用于执行这里所述功能的下列部件来实现或执行:通用处理器、数字信号处理器(DSP)、专用成电路(ASIC)、现场可编程门阵列(FPGA)或其它可编程逻辑器件、分立门或晶体管逻辑、分立的硬件组件或者这些部件的任何组合。通用处理器可以是微处理器,但是可替换地,处理器可以是任何传统处理器、控制器、微控制器或状态机。处理器也可以被实现为计算设备的组合,例如,DSP和微处理器的组合、多个微处理器、一个或多个微处理器结合DSP核、或任何其它这种配置。The various exemplary logical blocks, modules, and circuits described in connection with the disclosure herein can be implemented or executed with the following components designed to perform the functions described herein: general purpose processors, digital signal processors (DSPs), dedicated An integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
结合这里的公开所描述的方法或算法的步骤可以直接包含在硬件中、由处理器执行的软件模块中或这两者的组合中。软件模块可以驻留在RAM存储器、快闪存储器、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动盘、CD-ROM、或本领域已知的任何其它形式的存储介质中。示例性的存储介质被耦合到处理器,使得处理器能够从该存储介质中读取信息或向该存储介质写入信息。在一个替换方案中,所述存储介质可以与处理器集成在一起。处理器和存储介质可以驻留在ASIC中。ASIC可以驻留在用户终端中。在一个替换方案中,处理器和存储介质可以作为分立组件驻留在用户终端中。The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, such that the processor can read information from or write information to the storage medium. In an alternative, the storage medium can be integrated with a processor. The processor and the storage medium can reside in an ASIC. The ASIC can reside in the user terminal. In an alternative, the processor and the storage medium may reside as discrete components in the user terminal.
在一个或多个示例性设计中,所述功能可以在硬件、软件、固件或其任意组合中实现。如果在软件中实现,则可以将所述功能作为一个或多个指令或代码存储在计算机可读介质上或通过计算机可读介质来传送。计算机可读介质包括计算机存储介质和通信介质,该通信介质包括有助于将计算机程序从一个位置传送到另一个位置的任何介质。存储介质可以是能够被通用或专用计算机访问的任何可用介质。作为例子而非限制性的,该计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其它光盘存储设备、磁盘存储设备或其它磁性存储设备,或者是可以用于携带或存储形式为指令或数据结构的所需程序代码并且能够被通用或专用计算机或者通用或专用处理器 访问的任何其它介质。此外,任何连接都可以适当地称为计算机可读介质。例如,如果使用同轴线缆、光纤线缆、双绞线、数字用户线路(DSL)或诸如红外线、无线电和微波的无线技术来从网站、服务器或其它远程源发送软件,则上述同轴线缆、光纤线缆、双绞线、DSL或诸如红外线、无线电和微波的无线技术均包括在介质的定义。如这里所使用的,磁盘和光盘包括压缩盘(CD)、激光盘、光盘、数字多功能盘(DVD)、软盘、蓝光盘,其中磁盘通常磁性地再现数据,而光盘利用激光光学地再现数据。上述内容的组合也应当包括在计算机可读介质的范围内。In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted as one or more instructions or code on a computer readable medium. Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage medium may be any available media that can be accessed by a general purpose or special purpose computer. By way of example and not limitation, the computer readable medium may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage device, disk storage device or other magnetic storage device, or may be used to carry or store a form of instructions Or the required program code of the data structure and can be used by a general purpose or special purpose computer or a general purpose or special purpose processor Any other media accessed. Also, any connection is properly termed a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technology such as infrared, radio, and microwave is used to transmit software from a website, server, or other remote source, the coaxial line Cables, fiber optic cables, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are all included in the definition of the medium. As used herein, a magnetic disk and an optical disk include a compact disk (CD), a laser disk, an optical disk, a digital versatile disk (DVD), a floppy disk, a Blu-ray disk, in which a disk generally reproduces data magnetically, and the optical disk optically reproduces data using a laser. . Combinations of the above should also be included within the scope of computer readable media.
本实施例通过中央处理器210,电源220,存储器230,有线或无线网络接口240,输入/输出接口250,键盘260实现了接收来自移动终端的消息拉取请求,在接收到消息拉取请求后向移动终端推送消息,达到了节省移动终端的网络流量和电量的效果。In this embodiment, through the central processing unit 210, the power source 220, the memory 230, the wired or wireless network interface 240, and the input/output interface 250, the keyboard 260 implements receiving a message pull request from the mobile terminal, after receiving the message pull request. Pushing a message to the mobile terminal achieves the effect of saving network traffic and power of the mobile terminal.
需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。It should be noted that the steps illustrated in the flowchart of the accompanying drawings may be executed in a computer system such as a set of computer executable instructions, and, although shown in the flowchart, The steps shown or described may be performed in an order different than that herein.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in a storage device by a computing device, or they may be fabricated into individual integrated circuit modules, or Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims (13)

  1. 一种消息推送方法,其特征在于,包括:A message pushing method, comprising:
    检测移动终端是否亮屏;Detecting whether the mobile terminal is bright;
    在检测到所述移动终端亮屏时,所述移动终端向消息推送服务器发送消息拉取请求,其中,所述消息拉取请求用于请求所述消息推送服务器向所述移动终端推送消息,所述消息推送服务器用于在接收到所述消息拉取请求后向所述移动终端推送消息;以及When detecting that the mobile terminal is bright, the mobile terminal sends a message pull request to the message push server, where the message pull request is used to request the message push server to push a message to the mobile terminal. The message push server is configured to push a message to the mobile terminal after receiving the message pull request;
    所述移动终端接收所述消息推送服务器推送的消息。The mobile terminal receives a message pushed by the message push server.
  2. 根据权利要求1所述的消息推送方法,其特征在于,A message pushing method according to claim 1, wherein
    在检测到所述移动终端亮屏时,所述方法还包括:获取所述移动终端的亮屏时间,When the mobile terminal is detected to be bright, the method further includes: acquiring a bright screen time of the mobile terminal,
    所述移动终端将所述亮屏时间发送至所述消息推送服务器,其中,所述消息推送服务器还用于根据所述亮屏时间确定需要向所述移动终端推送的消息。The mobile terminal sends the bright screen time to the message push server, wherein the message push server is further configured to determine, according to the bright screen time, a message that needs to be pushed to the mobile terminal.
  3. 根据权利要求2所述的消息推送方法,其特征在于,在获取所述移动终端的亮屏时间之后,所述方法还包括:The message pushing method according to claim 2, wherein after the obtaining the bright time of the mobile terminal, the method further comprises:
    所述移动终端获取最新历史查询时间,其中,所述最新历史查询时间为所述移动终端上一次向所述消息推送服务器发送所述消息拉取请求的时间;以及The mobile terminal acquires a latest historical query time, where the latest historical query time is a time when the mobile terminal sends the message pull request to the message push server last time;
    所述移动终端判断所述亮屏时间距离所述最新历史查询时间的时间间隔是否大于预设时间间隔,Determining, by the mobile terminal, whether a time interval of the bright screen time from the latest historical query time is greater than a preset time interval,
    其中,所述移动终端在确定所述亮屏时间距离所述最新历史查询时间的时间间隔大于所述预设时间间隔时,向所述消息推送服务器发送所述消息拉取请求。The mobile terminal sends the message pull request to the message push server when determining that the time interval between the bright screen time and the latest historical query time is greater than the preset time interval.
  4. 根据权利要求3所述的消息推送方法,其特征在于,在所述移动终端向所述消息推送服务器发送所述消息拉取请求之后,所述方法还包括:The message pushing method according to claim 3, wherein after the mobile terminal sends the message pull request to the message push server, the method further includes:
    所述移动终端接收满足第一预设条件的推送消息,其中,所述消息推送服务器用于根据所述亮屏时间获取满足所述第一预设条件的推送消息,满足所述第一预设条件的推送消息为处于所述亮屏时间和最新历史推送时间之间的消息,所述最新历史推送时间为所述消息推送服务器上一次向所述移动终端推送消息的时间。The mobile terminal receives a push message that meets a first preset condition, where the message push server is configured to obtain a push message that meets the first preset condition according to the bright screen time, and meet the first preset The conditional push message is a message between the bright time and the latest historical push time, and the latest historical push time is the time when the message push server pushes the message to the mobile terminal last time.
  5. 根据权利要求2所述的消息推送方法,其特征在于,如果所述亮屏时间是所述移动终端首次亮屏的时间,在所述移动终端向所述消息推送服务器发送所述消息拉 取请求之后,所述方法还包括:The message pushing method according to claim 2, wherein if the bright screen time is the time when the mobile terminal first lights up, the mobile terminal sends the message to the message push server. After taking the request, the method further includes:
    所述移动终端接收所述消息推送服务器推送的最新一条消息,其中,所述消息推送服务器用于根据所述移动终端的亮屏时间确定需要推送的最新的一条消息。The mobile terminal receives the latest message pushed by the message pushing server, where the message pushing server is configured to determine a latest message that needs to be pushed according to the bright time of the mobile terminal.
  6. 根据权利要求1所述的消息推送方法,其特征在于,在检测到所述移动终端亮屏时,所述方法还包括:The message pushing method according to claim 1, wherein when the mobile terminal is detected to be bright, the method further comprises:
    检测所述移动终端的网络状态;Detecting a network status of the mobile terminal;
    判断所述移动终端是否处于WIFI连接状态;以及Determining whether the mobile terminal is in a WIFI connection state;
    在判断出所述移动终端处于WIFI连接状态时,所述移动终端向消息推送服务器发送消息拉取请求。When it is determined that the mobile terminal is in a WIFI connection state, the mobile terminal sends a message pull request to the message push server.
  7. 一种消息推送方法,其特征在于,A message pushing method, characterized in that
    消息推送服务器接收来自移动终端的消息拉取请求,其中,所述移动终端在亮屏时向所述消息推送服务器发送消息拉取请求,所述消息拉取请求用于请求所述消息推送服务器向所述移动终端推送消息;以及The message push server receives a message pull request from the mobile terminal, wherein the mobile terminal sends a message pull request to the message push server when the screen is bright, the message pull request is used to request the message push server to The mobile terminal pushes a message;
    所述消息推送服务器在接收到所述消息拉取请求后向所述移动终端推送消息。The message push server pushes a message to the mobile terminal after receiving the message pull request.
  8. 根据权利要求7所述的消息推送方法,其特征在于,在所述消息推送服务器向所述移动终端推送消息之前,所述方法还包括:The message pushing method according to claim 7, wherein before the message pushing server pushes a message to the mobile terminal, the method further includes:
    所述消息推送服务器接收所述移动终端发送的亮屏时间;Receiving, by the message pushing server, a brightness time sent by the mobile terminal;
    所述消息推送服务器根据所述亮屏时间确定需要向所述移动终端推送的消息,The message push server determines, according to the brightness time, a message that needs to be pushed to the mobile terminal,
    其中,所述消息推送服务器向所述移动终端推送确定的消息。The message push server pushes the determined message to the mobile terminal.
  9. 根据权利要求8所述的消息推送方法,其特征在于,所述消息推送服务器根据所述亮屏时间确定需要向所述移动终端推送的消息包括:The message pushing method according to claim 8, wherein the message pushing server determines, according to the bright screen time, that the message to be pushed to the mobile terminal comprises:
    所述消息推送服务器根据所述亮屏时间获取满足第一预设条件的推送消息,满足所述第一预设条件的推送消息为处于所述亮屏时间和最新历史推送时间之间的消息,所述最新历史推送时间为所述消息推送服务器上一次向所述移动终端推送消息的时间,The message pushing server acquires a push message that meets the first preset condition according to the bright time, and the push message that meets the first preset condition is a message between the bright time and the latest historical push time. The latest historical push time is a time when the message push server pushes a message to the mobile terminal last time.
    其中,所述消息推送服务器向所述移动终端推送满足所述第一预设条件的消 息。The message push server pushes the mobile terminal to meet the first preset condition. interest.
  10. 一种移动终端,其特征在于,包括:A mobile terminal, comprising:
    检测单元,用于检测移动终端是否亮屏;a detecting unit, configured to detect whether the mobile terminal is bright;
    发送单元,用于在检测到所述移动终端亮屏时,向消息推送服务器发送消息拉取请求,其中,所述消息拉取请求用于请求所述消息推送服务器向所述移动终端推送消息,所述消息推送服务器用于在接收到所述消息拉取请求后向所述移动终端推送消息;以及a sending unit, configured to send a message pull request to the message push server when the mobile terminal is detected to be bright, wherein the message pull request is used to request the message push server to push a message to the mobile terminal, The message push server is configured to push a message to the mobile terminal after receiving the message pull request;
    接收单元,用于接收所述消息推送服务器推送的消息。And a receiving unit, configured to receive a message pushed by the message pushing server.
  11. 根据权利要求10所述的移动终端,其特征在于,所述移动终端还包括:The mobile terminal according to claim 10, wherein the mobile terminal further comprises:
    获取单元,用于在检测到所述移动终端亮屏时,获取所述移动终端的亮屏时间,An acquiring unit, configured to acquire a bright screen time of the mobile terminal when detecting that the mobile terminal is bright,
    其中,所述发送单元还用于将所述亮屏时间发送至所述消息推送服务器。The sending unit is further configured to send the bright screen time to the message pushing server.
  12. 一种消息推送服务器,其特征在于,包括:A message push server, comprising:
    接收单元,用于接收来自移动终端的消息拉取请求,其中,所述移动终端在亮屏时向所述消息推送服务器发送消息拉取请求,所述消息拉取请求用于请求所述消息推送服务器向所述移动终端推送消息;以及a receiving unit, configured to receive a message pull request from the mobile terminal, where the mobile terminal sends a message pull request to the message push server when the screen is bright, the message pull request is used to request the message push The server pushes a message to the mobile terminal;
    推送单元,用于在接收到所述消息拉取请求后向所述移动终端推送消息。And a pushing unit, configured to push a message to the mobile terminal after receiving the message pull request.
  13. 一种移动终端,其特征在于,包括:A mobile terminal, comprising:
    传感器,用于检测移动终端是否亮屏;以及a sensor for detecting whether the mobile terminal is bright; and
    通信单元,用于在检测到所述移动终端亮屏时,向消息推送服务器发送消息拉取请求,并接收所述消息推送服务器推送的消息,其中,所述消息拉取请求用于请求所述消息推送服务器向所述移动终端推送消息,所述消息推送服务器用于在接收到所述消息拉取请求后向所述移动终端推送消息。 a communication unit, configured to send a message pull request to the message push server when the mobile terminal is detected to be bright, and receive a message pushed by the message push server, wherein the message pull request is used to request the The message push server pushes a message to the mobile terminal, and the message push server is configured to push a message to the mobile terminal after receiving the message pull request.
PCT/CN2016/102277 2015-10-16 2016-10-17 Message push method, mobile terminal and message push server WO2017063604A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510677081.3 2015-10-16
CN201510677081.3A CN105188037A (en) 2015-10-16 2015-10-16 Message push method, mobile terminal, and message push server

Publications (1)

Publication Number Publication Date
WO2017063604A1 true WO2017063604A1 (en) 2017-04-20

Family

ID=54909828

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/102277 WO2017063604A1 (en) 2015-10-16 2016-10-17 Message push method, mobile terminal and message push server

Country Status (2)

Country Link
CN (1) CN105188037A (en)
WO (1) WO2017063604A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413157A (en) * 2018-09-28 2019-03-01 北京小米移动软件有限公司 Message screening method and device
CN113766611A (en) * 2020-06-02 2021-12-07 深圳市万普拉斯科技有限公司 Low-power-consumption control optimization method and device, mobile terminal and storage medium

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105188037A (en) * 2015-10-16 2015-12-23 珠海格力电器股份有限公司 Message push method, mobile terminal, and message push server
CN105812250A (en) * 2016-05-11 2016-07-27 北京奇虎科技有限公司 Control method and device for pushing message to wearable device and mobile terminal
CN106161593B (en) * 2016-06-21 2020-02-07 北京奇虎科技有限公司 Message polling method, server and communication system
CN107659707A (en) * 2016-07-26 2018-02-02 中兴通讯股份有限公司 A kind of data connection management method of mobile terminal, device and mobile terminal
CN106254443A (en) * 2016-07-28 2016-12-21 乐视控股(北京)有限公司 Information push method and device
CN107872495B (en) * 2016-09-28 2020-06-26 腾讯科技(深圳)有限公司 Information processing method and terminal equipment
CN106533904A (en) * 2016-11-04 2017-03-22 广东小天才科技有限公司 Information display method and device
CN106357523A (en) * 2016-11-10 2017-01-25 成都路行通信息技术有限公司 Information pushing method for guaranteeing timely arrival of pushed information, device and terminal
CN107070769A (en) * 2016-11-29 2017-08-18 努比亚技术有限公司 A kind of device and method for obtaining service end PUSH message
CN108847949A (en) * 2018-08-13 2018-11-20 北京奇虎科技有限公司 Message informing method, device, electronic equipment and storage medium based on cloud platform
CN109040317A (en) * 2018-09-20 2018-12-18 北京奇元科技有限公司 A kind of information push method, client, server and system
CN110971643B (en) * 2018-09-30 2022-07-29 北京国双科技有限公司 Message pushing method and device, storage medium and processor
CN109799942A (en) * 2019-01-08 2019-05-24 上海连尚网络科技有限公司 Control method, equipment and the computer readable storage medium of screen locking information flow
CN113905090B (en) * 2021-09-16 2023-07-07 平安科技(深圳)有限公司 Message pushing method, device, server, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005071907A1 (en) * 2004-01-26 2005-08-04 Telenor Asa Method, device and system for conditional forwarding of an im message
CN101784011A (en) * 2009-01-20 2010-07-21 上海亿动信息技术有限公司 Control device and method for releasing advertisements in mobile terminal according to triggering information
WO2014112760A1 (en) * 2013-01-21 2014-07-24 주식회사 아이디어쨘컴퍼니 Method for providing advertisement and server therefor
CN105188037A (en) * 2015-10-16 2015-12-23 珠海格力电器股份有限公司 Message push method, mobile terminal, and message push server

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9479387B2 (en) * 2012-06-22 2016-10-25 Salesforce.Com, Inc. Methods and systems for priority-based notifications for mobile devices
CN103067758A (en) * 2012-12-17 2013-04-24 鸿富锦精密工业(深圳)有限公司 Advertising server and player terminal and system and method of advertising push
CN103428652A (en) * 2013-08-06 2013-12-04 北京华恒铭圣科技发展有限责任公司 Method and device for pushing message of mobile phone
CN104486443B (en) * 2014-12-24 2017-12-12 上海心动企业发展有限公司 Message push system and its method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005071907A1 (en) * 2004-01-26 2005-08-04 Telenor Asa Method, device and system for conditional forwarding of an im message
CN101784011A (en) * 2009-01-20 2010-07-21 上海亿动信息技术有限公司 Control device and method for releasing advertisements in mobile terminal according to triggering information
WO2014112760A1 (en) * 2013-01-21 2014-07-24 주식회사 아이디어쨘컴퍼니 Method for providing advertisement and server therefor
CN105188037A (en) * 2015-10-16 2015-12-23 珠海格力电器股份有限公司 Message push method, mobile terminal, and message push server

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413157A (en) * 2018-09-28 2019-03-01 北京小米移动软件有限公司 Message screening method and device
CN109413157B (en) * 2018-09-28 2021-10-08 北京小米移动软件有限公司 Message shielding method and device
CN113766611A (en) * 2020-06-02 2021-12-07 深圳市万普拉斯科技有限公司 Low-power-consumption control optimization method and device, mobile terminal and storage medium
CN113766611B (en) * 2020-06-02 2023-08-11 深圳市万普拉斯科技有限公司 Low-power consumption control optimization method and device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN105188037A (en) 2015-12-23

Similar Documents

Publication Publication Date Title
WO2017063604A1 (en) Message push method, mobile terminal and message push server
US10732696B2 (en) Method and apparatus for wake-up control of intelligent terminal
KR102354275B1 (en) Speech recognition method and apparatus, and storage medium
AU2013324507B2 (en) Low energy short range communication function operation method and apparatus of mobile terminal
JP6467526B2 (en) Communication message transmission method and wearable device
WO2017008569A1 (en) Message updating method, apparatus, and terminal
WO2018032581A1 (en) Method and apparatus for application program control
WO2015090248A1 (en) Server overload protection method and device
EP2882234B1 (en) Method, apparatus, equipment and system for controlling turn-on and turn-off of wireless network
CN106293308B (en) Screen unlocking method and device
WO2015043189A1 (en) Message display method and apparatus, and terminal device
WO2018166168A1 (en) Screen backlight control method and mobile terminal
WO2015058646A1 (en) Method for processing queue messages, and method and device for controlling messages to enter queue
WO2020024732A1 (en) Process processing method, electronic device, and computer-readable storage medium
WO2014090202A1 (en) Power control method and apparatus and terminal
WO2014206138A1 (en) Webpage data update method, apparatus and terminal device
WO2018040813A1 (en) Audio/video communication method, terminal, server, and storage medium
WO2017206918A1 (en) Terminal awakening accelerating method and related product
WO2015074387A1 (en) Sliding operation response method, apparatus and terminal device
KR20150017897A (en) User equipment and method to process sensor output using a plurality of processors
WO2019128586A1 (en) Application processing method, electronic device, and computer readable storage medium
CN106302101B (en) Message reminding method, terminal and server
CN106708513A (en) Application management method and device and mobile terminal
CN115985323B (en) Voice wakeup method and device, electronic equipment and readable storage medium
CN110543333A (en) Dormancy processing method and device for processor, mobile terminal and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16854979

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16854979

Country of ref document: EP

Kind code of ref document: A1