CN107257313A - A kind of message synchronization method and terminal - Google Patents

A kind of message synchronization method and terminal Download PDF

Info

Publication number
CN107257313A
CN107257313A CN201710345964.3A CN201710345964A CN107257313A CN 107257313 A CN107257313 A CN 107257313A CN 201710345964 A CN201710345964 A CN 201710345964A CN 107257313 A CN107257313 A CN 107257313A
Authority
CN
China
Prior art keywords
instant messaging
messaging account
target
target instant
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201710345964.3A
Other languages
Chinese (zh)
Inventor
辛将
彭建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201710345964.3A priority Critical patent/CN107257313A/en
Publication of CN107257313A publication Critical patent/CN107257313A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • 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/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a kind of message synchronization method and terminal, wherein, methods described includes:If detecting currently logged target instant messaging account and receiving instant communication message, whether detection is currently interacted by the listed target instant messaging account in other-end;If the target instant messaging account that the currently used other-end is logged in is interacted, the target instant messaging account is set to off-line state;The corresponding synchronization message of the target instant messaging account is obtained every preset time.The embodiment of the present invention can reduce this terminal and obtain the power consumption that instant communication message is consumed when at least two terminals log in target instant messaging account simultaneously.

Description

A kind of message synchronization method and terminal
Technical field
The present invention relates to electronic technology field, more particularly to a kind of message synchronization method and terminal.
Background technology
Instant messaging (Instant Messaging, IM) is the industry for referring to send and receive internet message etc. immediately Business.At present, some instant messagings application supports multiple terminals to log in same account simultaneously, and any terminal and its can be used in user Contact person interacts.For example, wechat application, QQ applications allow user same in the terminals such as mobile phone, computer and tablet personal computer The same accounts of Shi Denglu, user can be interacted by mobile phone, computer or tablet personal computer using the account and contact person.
When multiple terminals logs in same instant messaging account simultaneously, instant messaging application server can be by real-time interaction data Immediately it is synchronized to each terminal.For example, user logs in same wechat account on computer and mobile phone, and use on computers When wechat application associates people and interacted, wechat server can be by the message sent on computer or the message synchronization received Onto mobile phone, such user can in time see on computer and mobile phone before historical information.
Because the mobile terminals such as mobile phone are when receiving the synchronization message that instant messaging application server is pushed, mobile phone etc. is mobile Wireless status machine in terminal is generally in full power state, and the wechat application on mobile phone is not used as user, but when long Between when carrying out data interaction using the wechat application on computer, mobile phone terminal can constantly receive synchronization message so that mobile phone Wireless status machine frequently be in full power state, can so cause to consume substantial amounts of electricity.
The content of the invention
The embodiment of the present invention provides a kind of message synchronization method and terminal, can log in target simultaneously at least two terminals During instant messaging account, reduce this terminal and obtain the power consumption that instant communication message is consumed.
In a first aspect, the embodiments of the invention provide a kind of message synchronization method, this method includes:
If detecting currently logged target instant messaging account and receiving instant communication message, detection it is current whether Interacted by the listed target instant messaging account in other-end;
If the target instant messaging account that the currently used other-end is logged in is interacted, by the target Instant messaging account is set to off-line state;
The corresponding synchronization message of the target instant messaging account is obtained every preset time.
Second aspect, the embodiments of the invention provide a kind of terminal, the terminal includes:
Detection unit, if for detecting currently logged target instant messaging account and receiving instant communication message, Then whether detection is currently interacted by the listed target instant messaging account in other-end;
First setting unit, if being carried out for the target instant messaging account that the currently used other-end is logged in Interaction, then be set to off-line state by the target instant messaging account;
Synchronization unit, for obtaining the corresponding synchronization message of the target instant messaging account every preset time.
The third aspect, the embodiments of the invention provide a kind of terminal, including processor, input equipment, output equipment and is deposited Reservoir, the processor, input equipment, output equipment and memory are connected with each other, wherein, the memory, which is used to store, to be supported Terminal performs the application code of the above method, and the processor is arranged to the method for performing above-mentioned first aspect.
Fourth aspect, the embodiments of the invention provide a kind of computer-readable recording medium, the computer-readable storage medium Be stored with computer program, and the computer program includes programmed instruction, and described program instruction makes institute when being executed by a processor The method for stating the above-mentioned first aspect of computing device.
If the embodiment of the present invention is by detecting currently logged target instant messaging account and being currently received IMU Believe message, then whether detection is currently interacted by the listed target instant messaging account in other-end;If working as The preceding target instant messaging account logged in using the other-end is interacted, then by the target instant messaging account It is set to off-line state;The corresponding synchronization message of the target instant messaging account is obtained every preset time.Because terminal is surveyed When listed target instant messaging account is interacted in by other-end, reception target is reached the standard grade i.e. every preset time When the corresponding synchronization message of communications account, rather than the corresponding synchronization message of real-time reception target instant messaging account so that eventually The wireless status machine at end is waken up once every preset time, it is to avoid wireless status machine causes it frequently to locate because being frequently waken up In full power state, it can reduce this terminal when at least two terminals log in target instant messaging account simultaneously and obtain instant The power consumption that communication information is consumed.
Brief description of the drawings
Technical scheme, is used required in being described below to embodiment in order to illustrate the embodiments of the present invention more clearly Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of message synchronization method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow diagram for message synchronization method that another embodiment of the present invention is provided;
Fig. 3 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of terminal schematic block diagram that another embodiment of the present invention is provided;
Fig. 5 is a kind of terminal schematic block diagram that yet another embodiment of the invention is provided.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" be indicated Described feature, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, it is whole Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, " one " and "the" are intended to include plural form.
It will be further appreciated that, the term "and/or" used in description of the invention and appended claims is Refer to any combinations of one or more of the associated item listed and be possible to combination, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface The mobile phone, laptop computer or tablet PC of (for example, touch-screen display and/or touch pad) etc it is other just Portable device.It is to be further understood that in certain embodiments, the equipment not portable communication device, but with touching Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can use such as touch sensitive surface at least one is public Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table The corresponding information shown in the one or more functions and terminal in face.So, the public physical structure of terminal is (for example, touch Sensing surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
Fig. 1 is referred to, Fig. 1 is a kind of schematic flow diagram of message synchronization method provided in an embodiment of the present invention.This implementation The executive agent of message synchronization method is local device in example, and local device is terminal.Terminal can be mobile phone, tablet personal computer etc. Mobile terminal, but this is not limited to, can also be other-end.Message synchronization method as shown in Figure 1 may include following steps:
S101:If detecting currently logged target instant messaging account and being currently received instant communication message, examine Whether survey is currently interacted by the listed target instant messaging account in other-end.
Terminal is in normal work, and whether detection terminal using corresponding server sets up communication link with instant messaging Connect, when terminal and instant messaging are set up using corresponding server to be communicated to connect, be identified as the currently logged target of terminal Instant messaging account.When the currently logged target instant messaging account of terminal, whether detection target instant messaging account receives To instant communication message.Instant messaging account is the account that instant messaging application server is user's distribution, instant messaging application Can be wechat application, or QQ is applied.The instant messaging account that target instant messaging account monitors for needs.
When target instant messaging account receives instant communication message, whether detection is current by addition to this terminal The listed target instant messaging account associates people and carries out data interaction in other-end, so that it is determined that target IMU Believe whether account logs at least two terminals.Other-end can be mobile terminal, or desktop computer etc. is fixed Terminal.
Detection it is current whether by listed target instant messaging account in the other-end in addition to this terminal with Its contact person carries out the method for data interaction, Ke Yishi:Whether detection user manipulates listed target IMU in this terminal Believe the corresponding instant messaging application of account, listed target instant messaging account in this terminal is currently manipulated when detecting user When corresponding instant messaging is applied, detect whether this terminal is applied by the instant messaging and disappear to its contact person transmission instant messaging Breath.
Wherein, when detect this terminal by the instant messaging apply to its contact person send instant communication message when, know Data friendship Wei not be carried out currently without using listed target instant messaging account in the other-end in addition to this terminal Mutually.When detect this terminal not over the instant messaging apply to its contact person send instant communication message when, then be identified as The target instant messaging account logged in currently using the other-end in addition to this terminal associates people and carries out data friendship Mutually.
Detection it is current whether by listed target instant messaging account in the other-end in addition to this terminal with The method that its contact person carries out data interaction, can also be:Terminal by the instant communication message that receives detect it is current whether The target instant messaging account logged in using the other-end in addition to this terminal is associated people and carries out data interaction.
When detect it is current by listed target instant messaging account in the other-end in addition to this terminal with When its contact person carries out data interaction, S102 is performed.
People's progress data friendship is currently associated by listed target instant messaging account in this terminal when detecting When mutually, the corresponding instant communication message of the instant messaging account that real-time reception instant messaging application server is pushed.
S102:If currently being interacted by the listed target instant messaging account in the other-end, The target instant messaging account is set to off-line state.
If terminal detects current by listed target instant messaging account in the other-end in addition to this terminal Data interaction is carried out, this terminal is disconnected with target instant messaging using the communication connection between corresponding server, by this terminal Interior target instant messaging account is set to off-line state.
It is assumed that this terminal is mobile phone, logged in mobile phone in QQ accounts, computer while having logged in the QQ accounts, i.e. hand The same QQ accounts of generator terminal and computer end are in presence, mobile phone detect active user pass through it is listed in computer When the QQ accounts carry out data interaction with QQ contact persons, currently logged QQ accounts are set to offline by mobile phone from presence State.
S103:The corresponding synchronization message of the target instant messaging account is obtained every preset time.
Terminal is set up using corresponding server every preset time and instant messaging and communicated to connect, and receives instant messaging What application server was got in preset time comes from the target instant messaging account or sends to the target instant messaging account Number corresponding synchronization message, the synchronization message is reminded to user.Terminal disconnects and instant when having received the synchronization message The communication connection between server corresponding to communications applications, recovers off-line state.
Wherein, instant messaging is obtained from the target instant messaging account or sent extremely using corresponding server in real time The instant communication message of the target instant messaging account, and when detecting target instant messaging account in presence, will The corresponding instant communication message of target instant messaging account pushes to the target instant messaging account.
Such scheme, disappears if terminal detects currently logged target instant messaging account and is currently received instant messaging Whether breath, then detection is currently interacted by the listed target instant messaging account in other-end;If currently making The target instant messaging account logged in the other-end is interacted, then is set the target instant messaging account For off-line state;The corresponding synchronization message of the target instant messaging account is obtained every preset time.Because terminal is surveyed logical When crossing that listed target instant messaging account is interacted in other-end, reached the standard grade reception target IMU every preset time Believe the corresponding synchronization message of account, rather than the corresponding synchronization message of real-time reception target instant messaging account so that terminal Wireless status machine is waken up once every preset time, it is to avoid wireless status machine causes it frequently in full because being frequently waken up Power rating, can reduce this terminal and obtains instant messaging when at least two terminals log in target instant messaging account simultaneously The power consumption that message is consumed.
Fig. 2 is referred to, Fig. 2 is a kind of schematic flow diagram for message synchronization method that another embodiment of the present invention is provided.This The executive agent of message synchronization method is in embodiment, and local device is terminal.Terminal can be mobile for mobile phone, tablet personal computer etc. Terminal, but this is not limited to, can also be other-end.Message synchronization method as shown in Figure 2 may include following steps:
S201:If detecting currently logged target instant messaging account and being currently received instant communication message, examine Survey the target the instant communication message whether instant communication message includes target instant messaging account transmission.
Terminal is current to detect this terminal with target instant messaging using the foundation communication connection of corresponding server, target Instant messaging account is identified as currently logged target instant messaging account in terminal logs in, then.Instant messaging account is i.e. When communication application service device be account that user distributes, instant messaging application can be wechat application, or QQ applications.
Terminal judges to be currently received when detecting the target instant messaging account and being currently received instant communication message Instant communication message whether include the message from target instant messaging account.Being currently received instant communication message includes coming From target instant messaging account, and/or, the account from other corresponding contact persons of target instant messaging account.
Terminal is held when the instant communication message for confirming to be currently received includes the message from target instant messaging account Row S202.
Terminal when confirming that the instant communication message that is currently received does not include the message from target instant messaging account, Then it is identified as user and people's progress data interaction, terminal is currently associated by the target instant messaging account logged in this terminal Real-time reception instant messaging applies the instant communication message of corresponding server push.
S202:If the instant communication message disappears comprising the target instant messaging that the target instant messaging account is sent Breath, off-line state is set to by the target instant messaging account.
Terminal detect currently received instant communication message comprising target instant messaging account send target it is instant Communication information, then be identified as current by listed target instant messaging account progress in the other-end in addition to this terminal Interaction, user does not manipulate the target instant messaging application corresponding to listed target instant messaging account in this terminal currently, Terminal disconnects the communication connection between applying corresponding server with target instant messaging, and target instant messaging account is set to Off-line state.Other-end can be mobile terminal, or the fixed terminal such as desktop computer.
It is assumed that this terminal is mobile phone, is logged in mobile phone in QQ accounts, desktop computer and logged in the QQ accounts simultaneously, That is the same QQ accounts of mobile phone terminal and computer end are in presence, and mobile phone is detecting active user by having been stepped in computer When the QQ accounts of record carry out data interaction with QQ contact persons, currently logged QQ accounts are set to by mobile phone from presence Off-line state.
In other embodiments, when this terminal is desktop computer, other-end is the mobile terminals such as mobile phone or tablet personal computer, And desktop computer detect instant communication message comprising target instant messaging account send target instant communication message when, it is desk-top Target instant messaging account can be set to off-line state by computer, can also keep presence.
S203:The corresponding synchronization message of the target instant messaging account is obtained every preset time.
Terminal is set up using corresponding server every preset time and instant messaging and communicated to connect, and receives instant messaging What application server was got in preset time comes from the target instant messaging account or sends to the target instant messaging account Number corresponding synchronization message, the synchronization message is reminded to user.Terminal disconnects and instant when having received the synchronization message The communication connection between server corresponding to communications applications, recovers off-line state.
Wherein, instant messaging is obtained from the target instant messaging account or sent extremely using corresponding server in real time The instant communication message of the target instant messaging account, and when detecting target instant messaging account in presence, will The corresponding instant communication message of target instant messaging account pushes to the target instant messaging account.
Further, S203 specifically includes S2031~S2033:
S2031:If detecting the end time that current time reaches prefixed time interval, the target instant messaging is controlled Account switches to the presence from the off-line state;Wherein, the initial time of the prefixed time interval is the mesh At the time of instant messaging account is marked into off-line state.
Terminal record target instant messaging account switches to the first moment of off-line state from presence, and starts timing Device carries out timing, and when detecting current time and reaching the corresponding end time of prefixed time interval, passes through target IMU Believe this terminal of application recovery with target instant messaging using the communication connection between corresponding server, control targe instant messaging Account switches to presence from off-line state.
Target instant messaging account is in presence and refers to that terminal is set up with instant messaging using corresponding server Communication connection.
The corresponding duration of the when a length of prefixed time interval between first moment and current time.Prefixed time interval It can be 10 minutes, or other values, specifically can according to actual needs be configured, not be limited herein.Preset time Interval is less than the maximum duration that instant messaging retains deferred information using corresponding server.
S2032:Receive the corresponding synchronization message of the target instant messaging account.
Terminal receives mesh in the communication connection between this terminal of recovery applies corresponding server with target instant messaging Mark the corresponding synchronization message of target instant messaging account that instant messaging applies corresponding server push.The synchronization message is What (i.e. this terminal is in the time corresponding to off-line state) got in the prefixed time interval comes from the target IMU Believe account or send to the corresponding message not received of the target instant messaging account.
That is, synchronization message includes the first IMU of the target instant messaging account transmission that user is logged in by other-end Believe that message, and other instant messaging accounts are sent to the second instant messaging account of the target instant messaging account.
S2033:The synchronization message has currently been received if detecting, the target instant messaging account has been controlled from described Presence switches to the off-line state.
Terminal detect received prefixed time interval corresponding all synchronization messages when, back off and instant messaging Using the communication connection between corresponding server, control targe instant messaging account switches to offline shape from presence State.
Further, after S203, message synchronization method, which can also include terminal, can perform S204 or S205.
S204:If detecting user manipulates the corresponding target instant messaging application of the target instant messaging account, will The target instant messaging account is recovered to presence, and obtains the corresponding IMU of the target instant messaging account in real time Believe message.
Terminal is detecting the target instant messaging account of currently logged target instant messaging application, and user's manipulation is originally When the target instant messaging in terminal is applied, terminal is set up with target instant messaging using the communication between corresponding server Connection, presence is switched to control targe instant messaging account from off-line state, and real-time reception target instant messaging should With the instant messaging information of corresponding server push, the instant messaging information includes the server and is in off-line state in terminal When the corresponding deferred information of target instant messaging account that gets and target instant messaging account in this terminal from from Real-time reception is to the corresponding instant communication message of target instant messaging account when wire state switches to presence.
It is understood that terminal does not manipulate the corresponding target instant messaging of target instant messaging account using (such as whole End detects user and is just manipulating other application in local terminal) when, the target instant messaging account in terminal keeps off-line state.
S205:Go out screen state if detecting and being currently at and logged in the target instant messaging account, the target Instant messaging account is set to off-line state.
Terminal goes out screen state and when having logged in target instant messaging account detecting terminal and be currently at, disconnected end with Target instant messaging applies the communication connection between corresponding server, and target instant messaging account is switched to from presence Off-line state.
Such scheme, disappears if terminal detects currently logged target instant messaging account and is currently received instant messaging Whether breath, then detection is currently interacted by the listed target instant messaging account in other-end;If currently making The target instant messaging account logged in the other-end is interacted, then is set the target instant messaging account For off-line state;The corresponding synchronization message of the target instant messaging account is obtained every preset time.Because terminal surveys current It is instant every preset time reception target of reaching the standard grade by when listed target instant messaging account is interacted in other-end The corresponding synchronization message of communications account, rather than the corresponding synchronization message of real-time reception target instant messaging account so that terminal Wireless status machine be waken up once every preset time, it is to avoid wireless status machine because frequently be waken up cause it to be frequently in Full power state, can reduce this terminal and obtains IMU when at least two terminals log in target instant messaging account simultaneously The power consumption that letter message is consumed.
Listed target instant messaging account is set to off-line state, can avoid end by terminal when going out screen state The wireless status machine at end is in full power state because being waken up, so as to save the wireless status machine of terminal in full power The power consumption that state is consumed, reduces stand-by power consumption, to improve the endurance of terminal.
Terminal is detecting the corresponding target instant messaging application of user's manipulation target instant messaging account, real-time reception mesh The corresponding instant communication message of instant messaging account is marked, to avoid bringing puzzlement to user because message is delayed.
Referring to Fig. 3, Fig. 3 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention.Terminal can be mobile phone, put down The mobile terminals such as plate computer, but this is not limited to, it can also be other-end, not be limited herein.The terminal 300 of the present embodiment Including each unit be used to perform each step in the corresponding embodiments of Fig. 1, specifically refer to the corresponding implementations of Fig. 1 and Fig. 1 Associated description in example, is not repeated herein.The terminal of the present embodiment includes:Detection unit 310, the first setting unit 320 and Synchronization unit 330.
If detection unit 310 is used to detect currently logged target instant messaging account and receive instant messaging to disappear Whether breath, then detection is currently interacted by the listed target instant messaging account in other-end.
If the target instant messaging account that the first setting unit 320 is used for the currently used other-end login is entered Row interaction, then be set to off-line state by the target instant messaging account.
Synchronization unit 330 is used to obtain the corresponding synchronization message of the target instant messaging account every preset time.
Such scheme, disappears if terminal detects currently logged target instant messaging account and is currently received instant messaging Whether breath, then detection is currently interacted by the listed target instant messaging account in other-end;If currently making The target instant messaging account logged in the other-end is interacted, then is set the target instant messaging account For off-line state;The corresponding synchronization message of the target instant messaging account is obtained every preset time.Because terminal surveys current It is instant every preset time reception target of reaching the standard grade by when listed target instant messaging account is interacted in other-end The corresponding synchronization message of communications account, rather than the corresponding synchronization message of real-time reception target instant messaging account so that terminal Wireless status machine be waken up once every preset time, it is to avoid wireless status machine because frequently be waken up cause it to be frequently in Full power state, can reduce this terminal and obtains IMU when at least two terminals log in target instant messaging account simultaneously The power consumption that letter message is consumed.
Referring to Fig. 4, Fig. 4 is a kind of schematic block diagram for terminal that another embodiment of the present invention is provided.Terminal can be hand The mobile terminals such as machine, tablet personal computer, but this is not limited to, it can also be other-end, not be limited herein.The end of the present embodiment The each unit that end 400 includes is used to perform each step in the corresponding embodiments of Fig. 2, specifically refers to Fig. 2 and Fig. 2 is corresponding Associated description in embodiment, is not repeated herein.The terminal of the present embodiment includes:Detection unit 410, the first setting unit 420, Wherein, synchronization unit 430 includes first state and switches list for synchronization unit 430, the setting unit 450 of acquiring unit 440 and second Member 431, the status toggle unit 433 of receiving unit 432 and second.
If detection unit 410 is used to detect currently logged target instant messaging account and be currently received instant messaging Message, then detecting the instant communication message, whether the target instant messaging sent comprising the target instant messaging account disappears Breath.
If the first setting unit 420, which is used for the instant communication message, includes the mesh that the target instant messaging account is sent Instant communication message is marked, then the target instant messaging account is set to off-line state.
Synchronization unit 430 is used to obtain the corresponding synchronization message of the target instant messaging account every preset time.
Further, when synchronization unit 430 includes first state switch unit 431, the state of receiving unit 432 and second During switch unit 433,
If first state switch unit 431 is used to detect the end time that current time reaches prefixed time interval, control Make the target instant messaging account and switch to the presence from the off-line state;Wherein, the prefixed time interval Initial time for the target instant messaging account enter off-line state at the time of;
Receiving unit 432 is used to receive the corresponding synchronization message of the target instant messaging account;
If the second status toggle unit 433 is used to detect currently to have received the synchronization message, the target is controlled Instant messaging account switches to the off-line state from the presence.
If acquiring unit 440 is used to detect the corresponding target instant messaging of user's manipulation target instant messaging account Using then the target instant messaging account being recovered to presence, and obtain the target instant messaging account pair in real time The instant communication message answered.
Go out screen state if the second setting unit 450 is used to detect to be currently at and logged in the target instant messaging account Number, then the target instant messaging account is set to off-line state.
Such scheme, disappears if terminal detects currently logged target instant messaging account and is currently received instant messaging Whether breath, then detection is currently interacted by the listed target instant messaging account in other-end;If currently making The target instant messaging account logged in the other-end is interacted, then is set the target instant messaging account For off-line state;The corresponding synchronization message of the target instant messaging account is obtained every preset time.Because terminal surveys current It is instant every preset time reception target of reaching the standard grade by when listed target instant messaging account is interacted in other-end The corresponding synchronization message of communications account, rather than the corresponding synchronization message of real-time reception target instant messaging account so that terminal Wireless status machine be waken up once every preset time, it is to avoid wireless status machine because frequently be waken up cause it to be frequently in Full power state, can reduce this terminal and obtains IMU when at least two terminals log in target instant messaging account simultaneously The power consumption that letter message is consumed.
Listed target instant messaging account is set to off-line state, can avoid end by terminal when going out screen state The wireless status machine at end is in full power state because being waken up, so as to save the wireless status machine of terminal in full power The power consumption that state is consumed, reduces stand-by power consumption, to improve the endurance of terminal.
Terminal is detecting the corresponding target instant messaging application of user's manipulation target instant messaging account, real-time reception mesh The corresponding instant communication message of instant messaging account is marked, to avoid bringing puzzlement to user because message is delayed.
Referring to Fig. 5, Fig. 5 is a kind of terminal schematic block diagram that yet another embodiment of the invention is provided.This implementation as depicted Terminal 500 in example can include:One or more processors 510;One or more input equipments 520, it is one or more defeated Go out equipment 530 and memory 540.Above-mentioned processor 510, input equipment 520, output equipment 530 and memory 540 pass through bus 550 connections.
Memory 540 is instructed for storage program.
The programmed instruction that processor 510 is used to be stored according to memory 540 performs following operate:
If processor 510 is used to detect currently logged target instant messaging account and receive instant communication message, Then whether detection is currently interacted by the listed target instant messaging account in other-end.
If the target instant messaging account that processor 510 is additionally operable to the currently used other-end login is handed over Mutually, then the target instant messaging account is set to off-line state.
Processor 510 is additionally operable to obtain the corresponding synchronization message of the target instant messaging account every preset time.
Further, if processor 510 is additionally operable to detect the corresponding mesh of user's manipulation target instant messaging account Instant messaging application is marked, then is recovered the target instant messaging account to presence, and it is instant to obtain the target in real time The corresponding instant communication message of communications account.
Further, go out screen state if processor 510 is used to detect to be currently at and logged in the target IMU Believe account, then the target instant messaging account is set to off-line state.
Further, if processor 510 reaches the end time of prefixed time interval specifically for detecting current time, The target instant messaging account is controlled to switch to the presence from the off-line state;Wherein, between the preset time Every initial time for the target instant messaging account enter off-line state at the time of;And it is instant for receiving the target The corresponding synchronization message of communications account;And if currently received the synchronization message for detecting, control the target Instant messaging account switches to the off-line state from the presence.
Further, if processor 510 is specifically for detecting currently logged target instant messaging account and currently connecing Instant communication message is received, then detects whether the instant communication message includes the target of target instant messaging account transmission Instant communication message;Wherein, if the instant communication message includes the target IMU that the target instant messaging account is sent Believe message, then perform and described the target instant messaging account is set to off-line state.
Such scheme, disappears if terminal detects currently logged target instant messaging account and is currently received instant messaging Whether breath, then detection is currently interacted by the listed target instant messaging account in other-end;If currently making The target instant messaging account logged in the other-end is interacted, then is set the target instant messaging account For off-line state;The corresponding synchronization message of the target instant messaging account is obtained every preset time.Because terminal surveys current It is instant every preset time reception target of reaching the standard grade by when listed target instant messaging account is interacted in other-end The corresponding synchronization message of communications account, rather than the corresponding synchronization message of real-time reception target instant messaging account so that terminal Wireless status machine be waken up once every preset time, it is to avoid wireless status machine because frequently be waken up cause it to be frequently in Full power state, can reduce this terminal and obtains IMU when at least two terminals log in target instant messaging account simultaneously The power consumption that letter message is consumed.
Listed target instant messaging account is set to off-line state, can avoid end by terminal when going out screen state The wireless status machine at end is in full power state because being waken up, so as to save the wireless status machine of terminal in full power The power consumption that state is consumed, reduces stand-by power consumption, to improve the endurance of terminal.
Terminal is detecting the corresponding target instant messaging application of user's manipulation target instant messaging account, real-time reception mesh The corresponding instant communication message of instant messaging account is marked, to avoid bringing puzzlement to user because message is delayed.
It should be appreciated that in embodiments of the present invention, alleged processor 510 can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
Input equipment 520 can include Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and fingerprint Directional information), microphone etc., output equipment 530 can include display (LCD etc.), loudspeaker etc..
The memory 540 can include read-only storage and random access memory, and to processor 510 provide instruction and Data.The a part of of memory 540 can also include nonvolatile RAM.For example, memory 540 can also be deposited Store up the information of device type.
In the specific implementation, processor 510, input equipment 520, the output equipment 530 described in the embodiment of the present invention can The implementation described in the first embodiment and second embodiment of message synchronization method provided in an embodiment of the present invention is performed, Also the implementation of the terminal described by the embodiment of the present invention is can perform, be will not be repeated here.
A kind of computer-readable recording medium, the computer-readable storage medium are additionally provided in an embodiment of the present invention Matter is stored with computer program, and the computer program is realized when being executed by processor in the embodiment of the present invention to be implemented described in Fig. 1 Implementation described in example and embodiment described in Fig. 2, also can perform embodiment described in Fig. 3 to Fig. 5 in the embodiment of the present invention The implementation of described terminal, will not be repeated here.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This A little functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specially Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience of description and succinctly, the end of foregoing description End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
, can be by it in several embodiments provided herein, it should be understood that disclosed terminal and method Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit Connection or electricity, mechanical or other forms are connected.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Unit in terminal of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs Purpose.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially The part contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain be defined.

Claims (12)

1. a kind of message synchronization method, it is characterised in that the message synchronization method includes:
If detecting currently logged target instant messaging account and receiving instant communication message, whether detection currently passes through The listed target instant messaging account is interacted in other-end;
If the target instant messaging account that the currently used other-end is logged in is interacted, and the target is instant Communications account is set to off-line state;
The corresponding synchronization message of the target instant messaging account is obtained every preset time.
2. message synchronization method according to claim 1, it is characterised in that described to obtain the target every preset time After the corresponding synchronization message of instant messaging account, the message synchronization method also includes:
If detecting user manipulates the corresponding target instant messaging application of the target instant messaging account, it is by the target When communications account recover to presence, and obtain the corresponding instant communication message of the target instant messaging account in real time.
3. message synchronization method according to claim 1 or 2, it is characterised in that the message synchronization method also includes:
Go out screen state if detecting and being currently at and logged in the target instant messaging account, by the target instant messaging Account is set to off-line state.
4. message synchronization method according to claim 3, it is characterised in that described to obtain the target every preset time The corresponding synchronization message of instant messaging account, including:
If detecting the end time that current time reaches prefixed time interval, the target instant messaging account is controlled from described Off-line state switches to the presence;Wherein, the initial time of the prefixed time interval is the target instant messaging At the time of account enters off-line state;
Receive the corresponding synchronization message of the target instant messaging account;
The synchronization message has currently been received if detecting, has controlled the target instant messaging account to be cut from the presence Shift to the off-line state.
5. the message synchronization method according to any one of claim 1,2,4, it is characterised in that currently stepped on if detecting Record target instant messaging account and be currently received instant communication message, then detect current whether by having been logged in other-end The target instant messaging account interact, including:
If detecting currently logged target instant messaging account and being currently received instant communication message, detect described instant Whether communication information includes the target instant communication message of target instant messaging account transmission;
Wherein, if the instant communication message includes the target instant communication message that the target instant messaging account is sent, Execution is described to be set to off-line state by the target instant messaging account.
6. a kind of terminal, it is characterised in that the terminal includes:
Detection unit, if for detecting currently logged target instant messaging account and receiving instant communication message, examining Whether survey is currently interacted by the listed target instant messaging account in other-end;
First setting unit, if being handed over for the target instant messaging account that the currently used other-end is logged in Mutually, then the target instant messaging account is set to off-line state;
Synchronization unit, for obtaining the corresponding synchronization message of the target instant messaging account every preset time.
7. terminal according to claim 6, it is characterised in that the terminal also includes:
Acquiring unit, if manipulating the corresponding target instant messaging application of the target instant messaging account for detecting user, Then the target instant messaging account is recovered to presence, and it is corresponding i.e. to obtain the target instant messaging account in real time When communication information.
8. the terminal according to claim 6 or 7, it is characterised in that the terminal also includes:
Second setting unit, if going out screen state for detecting to be currently at and having logged in the target instant messaging account, The target instant messaging account is set to off-line state.
9. terminal according to claim 8, it is characterised in that the synchronization unit is specifically included:
First state switch unit, if reaching the end time of prefixed time interval for detecting current time, control is described Target instant messaging account switches to the presence from the off-line state;Wherein, the starting of the prefixed time interval At the time of moment is that the target instant messaging account enters off-line state;
Receiving unit, for receiving the corresponding synchronization message of the target instant messaging account;
Second status toggle unit, if currently having received the synchronization message for detecting, controls the target IMU Letter account switches to the off-line state from the presence.
10. the terminal according to any one of claim 6,7,9, it is characterised in that if the detection unit specifically for Detect currently logged target instant messaging account and be currently received instant communication message, then detect that the instant messaging disappears Whether breath includes the target instant communication message of target instant messaging account transmission;Wherein, if the instant communication message The target instant communication message sent comprising the target instant messaging account, then the first setting unit execution is described by institute State target instant messaging account and be set to off-line state.
It is the processor, defeated 11. a kind of terminal, it is characterised in that including processor, input equipment, output equipment and memory Enter equipment, output equipment and memory to be connected with each other, wherein, the memory is used to store application code, the processing Device is arranged to call described program code, performs the method as described in claim any one of 1-5.
12. a kind of computer-readable recording medium, it is characterised in that the computer-readable storage medium is stored with computer program, The computer program includes programmed instruction, and described program instruction makes the computing device such as right when being executed by a processor It is required that the method described in any one of 1-5.
CN201710345964.3A 2017-05-16 2017-05-16 A kind of message synchronization method and terminal Withdrawn CN107257313A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710345964.3A CN107257313A (en) 2017-05-16 2017-05-16 A kind of message synchronization method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710345964.3A CN107257313A (en) 2017-05-16 2017-05-16 A kind of message synchronization method and terminal

Publications (1)

Publication Number Publication Date
CN107257313A true CN107257313A (en) 2017-10-17

Family

ID=60027251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710345964.3A Withdrawn CN107257313A (en) 2017-05-16 2017-05-16 A kind of message synchronization method and terminal

Country Status (1)

Country Link
CN (1) CN107257313A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108156311A (en) * 2017-12-05 2018-06-12 北京小米移动软件有限公司 The method and device of prompting message
CN108536355A (en) * 2018-04-10 2018-09-14 维沃移动通信有限公司 A kind of message display method and mobile terminal
CN110225040A (en) * 2019-06-14 2019-09-10 维沃移动通信有限公司 A kind of information processing method, terminal device and server
CN112637314A (en) * 2020-12-17 2021-04-09 深圳市和讯华谷信息技术有限公司 Message synchronization method, system, first terminal equipment, server and medium
CN113760434A (en) * 2021-09-07 2021-12-07 广州博冠信息科技有限公司 Chat message reminding management method and device, storage medium and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320328A (en) * 2014-10-28 2015-01-28 中国联合网络通信集团有限公司 Message synchronization method, terminal and server

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320328A (en) * 2014-10-28 2015-01-28 中国联合网络通信集团有限公司 Message synchronization method, terminal and server

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108156311A (en) * 2017-12-05 2018-06-12 北京小米移动软件有限公司 The method and device of prompting message
CN108536355A (en) * 2018-04-10 2018-09-14 维沃移动通信有限公司 A kind of message display method and mobile terminal
CN110225040A (en) * 2019-06-14 2019-09-10 维沃移动通信有限公司 A kind of information processing method, terminal device and server
CN110225040B (en) * 2019-06-14 2021-12-24 维沃移动通信有限公司 Information processing method and terminal equipment
CN112637314A (en) * 2020-12-17 2021-04-09 深圳市和讯华谷信息技术有限公司 Message synchronization method, system, first terminal equipment, server and medium
CN113760434A (en) * 2021-09-07 2021-12-07 广州博冠信息科技有限公司 Chat message reminding management method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN107257313A (en) A kind of message synchronization method and terminal
US20230088677A1 (en) Information sending method and apparatus and electronic device
CN107426322A (en) A kind of PUSH message target matching method, server, terminal and computer-readable recording medium
CN107528922A (en) A kind of information push method, terminal and computer-readable recording medium
CN108108216A (en) A kind of method, terminal and computer readable storage medium for managing message
CN106375186A (en) Schedule sharing method and terminal
CN107181858A (en) A kind of method and terminal for showing notification message
CN106569585A (en) Method and terminal of managing application program process
CN107301204A (en) A kind of method and terminal for sharing file
CN106453904A (en) Information reminding method and terminal
CN106951550A (en) Data processing method, device and mobile terminal
CN107193598A (en) One kind application startup method, mobile terminal and computer-readable recording medium
CN107066188A (en) A kind of method and terminal for sending screenshot picture
CN107357489A (en) A kind of synchronous method for browsing information, terminal and server
CN107197082A (en) A kind of information prompting method and terminal
CN107608724A (en) A kind of method, terminal and computer-readable recording medium for managing application program
CN107613091A (en) A kind of method and terminal for establishing communication
CN110377376A (en) Interface message method for refreshing, device, computer installation and readable storage medium storing program for executing
CN107479806A (en) The method and terminal of a kind of changing interface
CN107608719A (en) A kind of interface operation method, terminal and computer-readable recording medium
CN108153458A (en) A kind of dialog box processing method, terminal device and computer readable storage medium
CN107193434A (en) Status bar display method and terminal
CN106656752A (en) Contact person grouping method and terminal
CN107515666A (en) A kind of data managing method and terminal
CN107332988A (en) Information processing method, mobile terminal and computer-readable recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20171017

WW01 Invention patent application withdrawn after publication