WO2018076446A1 - 一种消息同步方法、装置及系统 - Google Patents
一种消息同步方法、装置及系统 Download PDFInfo
- Publication number
- WO2018076446A1 WO2018076446A1 PCT/CN2016/107843 CN2016107843W WO2018076446A1 WO 2018076446 A1 WO2018076446 A1 WO 2018076446A1 CN 2016107843 W CN2016107843 W CN 2016107843W WO 2018076446 A1 WO2018076446 A1 WO 2018076446A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- synchronization
- message
- terminal
- target account
- option
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Definitions
- the present invention relates to the field of communications technologies, and in particular, to a message synchronization method, apparatus, and system.
- chat tools such as instant messaging applications (such as WeChat, QQ, etc.) have become an indispensable communication tool for people.
- the current instant messaging tools generally support the use of different terminals (such as mobile phones, computers, etc.).
- the terminal is a mobile phone and a computer. If the option of allowing the mobile phone and the computer to be online at the same time is not enabled, one end Going online will make the other end offline, which will make the user inconvenient to use. If the option to allow the mobile phone and the computer to be online at the same time is turned on, the historical messages at both ends will be automatically synchronized, resulting in a large number of chat records on the mobile terminal. Waste a lot of traffic from users.
- a technical problem to be solved by embodiments of the present invention is to provide a message synchronization method, apparatus, and system. You can choose whether to synchronize the message.
- an embodiment of the present invention provides a message synchronization method, including:
- the synchronization flag configured for the target account is acquired; the synchronization message includes that the server corresponding to the message application has been pushed to the first terminal that is logged in to the target account. And not sending a message to the second terminal that logs in to the target account;
- Synchronizing the obtained synchronization message to the second terminal so that the second terminal displays the synchronization message on a session interface corresponding to the target account.
- the synchronization option is configured in the menu interface of the message application, and the acquiring the synchronization flag configured for the target account includes:
- the value of the synchronization option includes a value that allows synchronization and a value that prohibits synchronization.
- the synchronization flag is used to indicate permission to the first The second terminal synchronizes the synchronization message.
- the synchronization user interface is configured in the message application, and the synchronization user interface includes a synchronization option, where the synchronization option includes an allow synchronization option and a disable synchronization option, where the acquisition is a synchronization flag configured for the target account, including :
- the value of the allow synchronization option is used as the synchronization flag, and the synchronization flag is used to indicate that the synchronization message is allowed to be synchronized to the second terminal.
- the obtaining the synchronization message includes:
- the synchronization message is searched for and acquired based on the target account.
- the method further includes: if the acquired synchronization flag indicates that the synchronization message is prohibited from being synchronized to the second terminal, controlling the second terminal to display only the information on the session interface corresponding to the target account. The message obtained by the second terminal about the target account.
- the method further includes: if the all-platform synchronization instruction for indicating the synchronization of the specified account of the target account is received, acquiring the specified message about the target account, and acquiring the specified message Synchronizing to the second terminal.
- an embodiment of the present invention further provides another message synchronization method, including:
- the synchronization message After receiving the synchronization request sent by the second terminal that is logged in the target account, the synchronization message is obtained, where the synchronization message includes that the server corresponding to the message application has been pushed to the first terminal that is logged in to the target account and is not pushed to the login. a message of the second terminal of the target account;
- an embodiment of the present invention further provides a message synchronization apparatus, including:
- An acquiring module configured to: when a synchronization message for the target account exists in the detected message application, acquire a synchronization flag configured for the target account; the synchronization message includes that the server corresponding to the message application has been pushed to log in to the target The first terminal of the account is not pushed to the second terminal of the target account;
- the obtaining module is further configured to acquire the synchronization message if the acquired synchronization flag indicates that the synchronization message is allowed to be synchronized to the second terminal;
- the synchronization module is configured to synchronize the acquired synchronization message to the second terminal, so that the second terminal displays the synchronization message on a session interface corresponding to the target account.
- the synchronization option is configured in the menu interface of the message application, and the device further includes:
- a reading module configured to read a value of the synchronization option in the menu interface, and use the value of the read synchronization option as the synchronization flag
- the value of the synchronization option includes a value that allows synchronization and a value that prohibits synchronization.
- the synchronization flag is set to indicate The synchronization message is allowed to be synchronized to the second terminal.
- the synchronization user interface is configured in the message application, and the synchronization user interface includes a synchronization option, where the synchronization option includes a synchronization option and a synchronization prohibition option, and the device further includes:
- control module configured to control display of the synchronous user interface
- a monitoring module configured to monitor user operations for the synchronization option, and when the monitoring module detects that the user operation selects the allow synchronization option, the value of the allow synchronization option is used as the synchronization flag, A synchronization flag is used to indicate that the synchronization message is allowed to be synchronized to the second terminal.
- the obtaining module is specifically configured to: in the server corresponding to the message application, find and acquire the synchronization message based on the target account.
- the control module is further configured to: if the acquired synchronization flag indicates that the synchronization message is prohibited from being synchronized to the second terminal, control the second terminal to display only on the session interface corresponding to the target account. a message about the target account acquired by the second terminal.
- the device further includes: a receiving module, configured to receive an all-platform synchronization instruction for instructing to synchronize the specified message of the target account, and after receiving the full-platform synchronization instruction, trigger the acquiring module to acquire a specified message of the target account, and triggering the synchronization module to synchronize the specified message about the target account acquired by the obtaining module to the second terminal.
- a receiving module configured to receive an all-platform synchronization instruction for instructing to synchronize the specified message of the target account, and after receiving the full-platform synchronization instruction, trigger the acquiring module to acquire a specified message of the target account, and triggering the synchronization module to synchronize the specified message about the target account acquired by the obtaining module to the second terminal.
- an embodiment of the present invention further provides another message synchronization apparatus, including:
- the obtaining module is configured to: when receiving the synchronization request sent by the second terminal that is logged in the target account, acquire a synchronization message, where the synchronization message includes that the server corresponding to the message application has been pushed to the first terminal that is logged in to the target account And not sending a message to the second terminal that logs in to the target account;
- a sending module configured to send the acquired synchronization message to the second terminal in response to the synchronization request.
- an embodiment of the present invention further provides a message synchronization system, including: an intelligent terminal and a server,
- the smart terminal acquires a synchronization flag configured for the target account when detecting a synchronization message for the target account in the message application; the synchronization message includes other intelligence that the server has pushed to log in to the target account. The terminal does not push a message to the smart terminal that logs in to the target account;
- the smart terminal if the acquired synchronization flag indicates that the synchronization message is allowed to be synchronized to the smart terminal, sends a synchronization request to the server;
- the server after receiving the synchronization request, finds and acquires the synchronization message in response to the synchronization request;
- the server further synchronizes the acquired synchronization message to the smart terminal, so that the smart terminal displays the synchronization message on a session interface corresponding to the target account.
- the synchronization flag configured for the target account is obtained, and if the acquired synchronization flag indicates that the synchronization message is allowed to be synchronized to the second terminal, the synchronization is acquired.
- the message synchronizes the acquired synchronization message to the second terminal, thereby implementing autonomous selection whether to perform message synchronization, and realizing the autonomy and intelligence of the synchronization message.
- FIG. 1 is a schematic flowchart of a message synchronization method according to an embodiment of the present invention
- FIG. 2 is a schematic flowchart of a message synchronization method according to another embodiment of the present invention.
- FIG. 3 is a schematic block diagram of a message synchronization apparatus according to an embodiment of the present invention.
- FIG. 4 is a schematic block diagram of a terminal according to an embodiment of the present invention.
- FIG. 5 is a schematic block diagram of a message synchronization apparatus according to another embodiment of the present invention.
- FIG. 6 is a schematic block diagram of a terminal according to another embodiment of the present invention.
- FIG. 7 is a schematic block diagram of a message synchronization system according to an embodiment of the present invention.
- FIG. 1 is a schematic flowchart of a message synchronization method according to an embodiment of the present invention, which may be implemented by a smart phone (such as an Android phone, an iOS phone, a Windows Phone, etc.), a palmtop computer, a laptop computer, or a tablet computer.
- a mobile terminal Mobile Internet Devices, MID), a wearable device, or the like, with a smart terminal having a network communication function and a data processing function, as shown in FIG. 1, a message synchronization method may include the following steps.
- the messaging application can be an instant messaging application.
- the synchronization message includes a message that the server corresponding to the message application has been pushed to the first terminal that is logged in to the target account and is not pushed to the second terminal that is logged in to the target account.
- a message such as a chat message (synchronization message) by logging in to the first terminal (such as a computer) connected to the Internet via the wired account, the user needs to use the paid wireless traffic again (for example, moving).
- the second terminal (such as a smart terminal) accessing the Internet accesses the target account, and the server does not directly send the message that has been sent to the first terminal to the second terminal, and the second terminal does not directly Go to the server to request a message that has been sent to the first terminal.
- the second terminal may determine that the synchronization message exists when receiving the notification message sent by the server corresponding to the message application.
- the server may send a notification to the smart terminal when receiving the message for the target account, and the message is sent to the first terminal of the computer and not sent to the smart terminal (the second terminal), so as to facilitate The user corresponding to the smart terminal decides whether to synchronize these messages.
- a synchronization option is configured in a menu interface of the message application, and the specific manner of obtaining the synchronization flag configured for the target account is:
- Reading the value of the synchronization option in the menu interface and reading the value of the synchronization option as the synchronization flag wherein the value of the synchronization option includes a value that allows synchronization (eg, the value of the synchronization option indicates permission The value of the synchronization 1) and the value for which synchronization is prohibited (for example, the value of the synchronization option indicates a value of 0 for which synchronization is prohibited), and when the value of the synchronization option read is the value of the synchronization allowed (for example, 1), the synchronization
- the flag is used to indicate that the synchronization message is allowed to be synchronized to the second terminal, and when the value of the read synchronization option is the value of the prohibition synchronization (eg, 0), the synchronization flag is used to indicate that the second terminal is prohibited from being Synchronize the synchronization message.
- a synchronization user interface is configured in the message application, the synchronization user interface includes a synchronization option including a permission to synchronize option and a disable synchronization option, the acquisition is a synchronization flag configured for the target account
- the specific way is:
- the value 1) is used as the synchronization flag, which is used to indicate that the synchronization message is allowed to be synchronized to the second terminal, and the value of the prohibition synchronization option is selected when the user operation is selected to select the prohibit synchronization option (for example,
- the value of the disable sync option is the value 0 indicating the prohibition of synchronization as the sync flag, and the sync flag is used to indicate that the sync message is prohibited from being synchronized to the second terminal.
- the value of the synchronization option read is the value that is allowed to be synchronized, and the value that allows synchronization is used as the synchronization flag, or if the user operation is monitored, the permission to synchronize option is selected, and the permission to be synchronized option is selected.
- the value of the synchronization flag is determined to be used to indicate that the synchronization message is allowed to be synchronized to the second terminal, and when it is determined that the acquired synchronization flag is used to indicate that the synchronization message is allowed to be synchronized to the second terminal.
- responding to the indication of the synchronization mark in the server corresponding to the message application searching and acquiring the synchronization message based on the target account.
- the acquired synchronization message is synchronized to the second terminal, so as to facilitate the
- the second terminal displays the synchronization message on the session interface corresponding to the target account.
- the second terminal responds to the indication of the synchronization flag to display the message about the target account acquired by the second terminal only on the session interface corresponding to the target account.
- the server corresponding to the message application searching and acquiring the target account based on the target account Specifying a message, and synchronizing the obtained specified message about the target account to the second terminal, so as to control the second terminal to display the specified message about the second terminal on the session interface corresponding to the target account.
- the specified message may be, for example, a message that has been sent to the first terminal that is logged in to the target account by the server corresponding to the target account in a certain period of time but is not pushed to the second terminal that is logged in to the target account; or may be a friend. Or the message sent by the group that has been sent to the first terminal of the target account by the server corresponding to the target application is not pushed to the second terminal that is logged in to the target account; or may be correspondingly applied by the message.
- the server pushes the first terminal that is logged into the target account without pushing all the messages of the second terminal that is logged into the target account.
- the specified message may also be a message that has been pushed to the first terminal that is logged in to the target account by the server corresponding to the message application under other specific conditions and is not pushed to the second terminal that logs in to the target account.
- each step of the message synchronization method mentioned above may also be performed by a server of the message application, and the user may configure corresponding synchronization options on the smart terminal side or perform option configuration on the displayed synchronization user interface, according to the server.
- the configuration is configured to determine whether to send the synchronization message received by the target account to the second terminal (smart terminal).
- the synchronization flag configured for the target account is obtained, and if the acquired synchronization flag indicates that the synchronization message is allowed to be synchronized to the second terminal, the synchronization is acquired.
- the message synchronizes the acquired synchronization message to the second terminal, thereby implementing autonomous selection whether to perform message synchronization, and realizing the autonomy and intelligence of the synchronization message.
- FIG. 2 is a schematic flowchart of a message synchronization method according to another embodiment of the present invention. The method may be implemented by, for example, a server.
- a message synchronization method as shown in FIG. 2 may include the following steps:
- the synchronization message includes a message that the server corresponding to the message application has been pushed to the first terminal that is logged in to the target account and is not pushed to the second terminal that is logged in to the target account.
- the server corresponding to the message application searches for and acquires the synchronization message based on the target account.
- the synchronization request is generated by the second terminal, such as the smart terminal, when detecting that the synchronization flag configured for the target account indicates that the synchronization message is allowed to be synchronized to the second terminal, and the related description of the synchronization flag can refer to the previous implementation. The description in the example.
- the server corresponding to the message application in response to the synchronization request, in the server corresponding to the message application, after the synchronization message is searched and acquired based on the target account, the acquired synchronization message is sent to the second terminal, so as to facilitate the second
- the terminal displays the synchronization message on the session interface corresponding to the target account.
- the method of the embodiment of the present invention may further include: S203: receiving a session message about the second terminal that is logged in to the target account, but not receiving the second And sending, by the terminal, the received session message to the second terminal.
- the session message about the second terminal that has logged in the target account is received, but the synchronization request sent by the second terminal is not received, only the received information about the target account is received.
- the session message of the second terminal is sent to the second terminal, so as to control the second terminal to display the session message about the second terminal on the session interface corresponding to the target account.
- the server corresponding to the message application Searching for and obtaining the specified message about the target account based on the target account, and sending the obtained specified message about the target account to the second terminal, so as to control the second terminal on the session interface corresponding to the target account.
- a specified message about the second terminal is displayed.
- the specified message may be, for example, a message that has been sent to the first terminal that is logged in to the target account by the server corresponding to the target account in a certain period of time but is not pushed to the second terminal that is logged in to the target account; or may be a friend. Or the message sent by the group that has been sent to the first terminal of the target account by the server corresponding to the target application is not pushed to the second terminal that is logged in to the target account; or may be correspondingly applied by the message.
- the server pushes the first terminal that is logged into the target account without pushing all the messages of the second terminal that is logged into the target account.
- the specified message may also be a message that has been pushed to the first terminal that is logged in to the target account by the server corresponding to the message application under other specific conditions and is not pushed to the second terminal that logs in to the target account.
- the embodiment of the present invention When receiving the synchronization request sent by the second terminal that is logged in the target account, the embodiment of the present invention acquires the synchronization message, and sends the acquired synchronization message to the second terminal in response to the synchronization request, thereby implementing whether the autonomous selection is performed.
- Message synchronization enables autonomy and intelligence of synchronous messages.
- FIG. 3 is a schematic block diagram of a message synchronization apparatus according to an embodiment of the present invention.
- the apparatus may be configured, for example, on a smart phone (such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.), a handheld computer, a notebook computer, or the like.
- a message synchronization device described in the embodiment of the present invention including: a tablet, a mobile Internet device, a wearable device, and the like, with a network communication function and a data processing function, includes:
- the obtaining module 301 is configured to acquire, when the synchronization message for the target account exists in the message application, the synchronization flag configured for the target account.
- the synchronization message includes a message that the server corresponding to the message application has been pushed to the first terminal that is logged in to the target account and is not pushed to the second terminal that is logged in to the target account.
- the synchronization option is configured in the menu interface of the message application, and the specific manner in which the obtaining module 301 obtains the synchronization flag configured for the target account is:
- the reading module 302 is configured to read a value of the synchronization option in the menu interface, and use the value of the read synchronization option as the synchronization flag acquired by the acquisition module.
- the value of the synchronization option includes a value that allows synchronization and a value that prohibits synchronization.
- the value of the synchronization option read by the reading module 302 is the value of the synchronization allowed
- the value of the synchronization is used as the acquisition module.
- the synchronization token obtained by the 301 is used to indicate that the synchronization message is allowed to be synchronized to the second terminal.
- a synchronization user interface is configured in the message application, the synchronization user interface includes a synchronization option, the synchronization option includes an allow synchronization option and a disable synchronization option, and the acquisition module 301 acquires the configuration configured for the target account.
- the specific way to synchronize tags is:
- the control module 303 is configured to control display of the synchronization user interface.
- the monitoring module 304 is configured to monitor a user operation of the synchronization option by the user.
- the value of the permission to be synchronized is used as the synchronization flag acquired by the obtaining module 301, and the synchronization flag is used. Used to indicate that the synchronization message is allowed to be synchronized to the second terminal.
- the obtaining module 301 is further configured to acquire the synchronization message if the acquired synchronization flag indicates that the synchronization message is allowed to be synchronized to the second terminal.
- the obtaining module 301 is specifically configured to: in the server corresponding to the message application, find and acquire the synchronization message based on the target account.
- the value of the synchronization option read by the reading module 302 is the value that is allowed to be synchronized, and the value that is allowed to be synchronized is used as the synchronization flag acquired by the obtaining module 301, or if the monitoring module 304 detects
- the user operation selects the allowable synchronization option, and the value of the allowable synchronization option is used as the synchronization flag acquired by the obtaining module 301, and then determines that the synchronization flag acquired by the obtaining module 301 is used to indicate that the second terminal is allowed to synchronize. Synchronizing the message, and then triggering the obtaining module 301 to respond to the indication of the synchronization mark in the server corresponding to the message application, and find and acquire the synchronization message based on the target account.
- the synchronization module 305 is configured to synchronize the acquired synchronization message to the second terminal, so that the second terminal displays the synchronization message on a session interface corresponding to the target account.
- the synchronization module 305 is triggered to synchronize the acquired synchronization message. Up to the second terminal, so that the second terminal displays the synchronization message on the session interface corresponding to the target account.
- the synchronization option in the menu interface read by the reading module 302 is the value of the synchronization inhibition, or if the monitoring module 304 detects that the user includes the synchronization user interface, The synchronization option selects the forbidden synchronization option, and the value of the forbidden synchronization option is used as the synchronization flag acquired by the obtaining module 301, and then determines that the synchronization flag is used to indicate that the synchronization message is prohibited from being synchronized to the second terminal.
- the receiving module 306 is configured to receive an all-platform synchronization instruction for instructing to synchronize the specified message of the target account, and after receiving the all-platform synchronization instruction, trigger the acquiring module to acquire a specified message about the target account. And triggering the synchronization module to synchronize the specified message about the target account acquired by the obtaining module to the second terminal.
- the receiving module 306 receives the all-platform synchronization instruction for instructing to synchronize the specified message of the target account
- the acquiring module 301 is triggered to search and acquire the server based on the target account.
- the specified message of the target account is triggered, and the synchronization module 305 is configured to synchronize the obtained specified message about the target account to the second terminal, so as to control the second terminal to display the session on the session interface corresponding to the target account.
- the specified message of the second terminal is configured to synchronize the obtained specified message about the target account to the second terminal, so as to control the second terminal to display the session on the session interface corresponding to the target account.
- the specified message may be, for example, a message that has been sent to the first terminal that is logged in to the target account by the server corresponding to the target account in a certain period of time but is not pushed to the second terminal that is logged in to the target account; or may be a friend. Or the message sent by the group that has been sent to the first terminal of the target account by the server corresponding to the target application is not pushed to the second terminal that is logged in to the target account; or may be correspondingly applied by the message.
- the server pushes the first terminal that is logged into the target account without pushing all the messages of the second terminal that is logged into the target account.
- the specified message may also be a message that has been pushed to the first terminal that is logged in to the target account by the server corresponding to the message application under other specific conditions and is not pushed to the second terminal that logs in to the target account.
- the synchronization flag configured for the target account is obtained, and if the acquired synchronization flag indicates that the synchronization message is allowed to be synchronized to the second terminal, the synchronization is acquired.
- the message synchronizes the acquired synchronization message to the second terminal, thereby implementing autonomous selection whether to perform message synchronization, and realizing the autonomy and intelligence of the synchronization message.
- FIG. 4 is a schematic block diagram of a terminal according to an embodiment of the present invention.
- a terminal in this embodiment as shown may include: one or more processors 401; a transceiver 402 and a memory 403.
- the processor 401, the transceiver 402, and the memory 403 are connected by a bus 404.
- the memory 403 is used to store instructions, and the processor 401 is used to execute programs stored in the memory 403. among them:
- the processor 401 is configured to acquire, when the synchronization message for the target account exists in the message application, the synchronization flag configured for the target account.
- the processor 401 is further configured to acquire the synchronization message if the acquired synchronization flag indicates that the synchronization message is allowed to be synchronized to the second terminal.
- the transceiver 402 is configured to synchronize the acquired synchronization message to the second terminal, so that the second terminal displays the synchronization message on a session interface corresponding to the target account.
- the synchronization message includes a message that the server corresponding to the message application has been pushed to the first terminal that is logged in to the target account and is not pushed to the second terminal that is logged in to the target account.
- a synchronization option is configured in a menu interface of the message application, where the processor 401 is configured to acquire, when the synchronization message for the target account exists in the message application, obtain the configuration for the target account.
- the specific way to synchronize tags is:
- the processor 401 reads the value of the synchronization option in the menu interface and uses the value of the read synchronization option as the synchronization flag, wherein the value of the synchronization option includes a value allowing synchronization and prohibiting synchronization
- the value of the synchronization option is used as the synchronization flag when the value of the synchronization option is read.
- the synchronization flag is used to indicate that the synchronization message is allowed to be synchronized to the second terminal.
- a synchronization user interface is configured in the messaging application, the synchronization user interface including a synchronization option including a permission to allow synchronization option and a disable synchronization option, and the processor 401 for detecting a message
- the specific manner of obtaining the synchronization flag configured for the target account is:
- the processor 401 controls display of the synchronous user interface and monitors user operations for the synchronization option.
- the value of the allowable synchronization option is used as the synchronization flag. Used to indicate that the synchronization message is allowed to be synchronized to the second terminal.
- the processor 401 is further configured to: if the acquired synchronization flag indicates that the synchronization message is allowed to be synchronized to the second terminal, the specific manner of acquiring the synchronization message is:
- the value of the synchronization option read by the processor 401 is the value of the allowed synchronization
- the value of the synchronization is allowed as the synchronization flag
- the processor 401 detects the user operation to select the allow synchronization option, and Using the value of the allow synchronization option as the synchronization flag, determining that the synchronization flag acquired by the processor 401 is used to indicate that the synchronization message is allowed to be synchronized to the second terminal, and then the processor 401 responds to the indication of the synchronization flag.
- the server corresponding to the message application searches for and acquires the synchronization message based on the target account.
- the processor 401 determines that the synchronization flag is used to indicate that synchronization of the synchronization message to the second terminal is prohibited. And when it is determined that the acquired synchronization flag is used to indicate that the synchronization message is prohibited from being synchronized to the second terminal, the second terminal is controlled to display only the target acquired by the second terminal on the session interface corresponding to the target account. Account message.
- the processor 401 is further configured to: if receiving the all-platform synchronization instruction for indicating the synchronization of the specified target account, in the server corresponding to the message application, searching and acquiring the target account based on the target account And specifying the message, and triggering the transceiver 402 to synchronize the obtained specified message about the target account to the second terminal.
- the specified message may be, for example, a message that has been sent to the first terminal that is logged in to the target account by the server corresponding to the target account in a certain period of time but is not pushed to the second terminal that is logged in to the target account; or may be a friend. Or the message sent by the group that has been sent to the first terminal of the target account by the server corresponding to the target application is not pushed to the second terminal that is logged in to the target account; or may be correspondingly applied by the message.
- the server pushes the first terminal that is logged into the target account without pushing all the messages of the second terminal that is logged into the target account.
- the specified message may also be a message that has been pushed to the first terminal that is logged in to the target account by the server corresponding to the message application under other specific conditions and is not pushed to the second terminal that logs in to the target account.
- the storage 403 may include a volatile memory such as a random-access memory (RAM); the memory may also include a non-volatile memory such as a flash memory (flash) Memory), hard disk drive or solid-state drive; the memory 404 may also include a combination of the above types of memory.
- the processor 401 may be a central processing unit (CPU). The processor 401 may further include a hardware chip.
- the transceiver 402 can be a radio frequency receiver or a radio frequency chip for transmitting and receiving signals.
- the transceiver 402 can include an integrated transmit channel (Transmitter, TX) and a receiver (Receiver, RX).
- the processor 401, the transceiver 402, and the memory 403 described in the embodiments of the present invention may implement an implementation manner of the message synchronization method described in the method provided in FIG. 1 of the embodiment of the present invention, and may also implement the implementation of the present invention.
- the implementation of the message synchronization apparatus described in FIG. 3 is not described here.
- the synchronization flag configured for the target account is obtained, and if the acquired synchronization flag indicates that the synchronization message is allowed to be synchronized to the second terminal, the synchronization is acquired.
- the message synchronizes the acquired synchronization message to the second terminal, thereby implementing autonomous selection whether to perform message synchronization, and realizing the autonomy and intelligence of the synchronization message.
- FIG. 5 is a schematic block diagram of a message synchronization apparatus according to another embodiment of the present invention.
- the apparatus may be configured, for example, on a server.
- the obtaining module 501 is configured to acquire a synchronization message when receiving a synchronization request sent by the second terminal that has logged in the target account.
- the synchronization message includes a message that the server corresponding to the message application has been pushed to the first terminal that is logged in to the target account and is not pushed to the second terminal that is logged in to the target account.
- the obtaining module 501 after receiving the synchronization request sent by the second terminal that has logged in the target account, the obtaining module 501, in response to the synchronization request, searches for and acquires the synchronization message based on the target account in the server corresponding to the message application.
- the sending module 502 is configured to send the acquired synchronization message to the second terminal in response to the synchronization request.
- the sending module 502 is triggered to send the acquired synchronization message to the synchronization message.
- the second terminal is configured to display the synchronization message on the session interface corresponding to the target account.
- the sending module 502 is further configured to: receive a session message about the second terminal that is logged in to the target account, but do not receive the synchronization sent by the second terminal. When requested, only the received session message is sent to the second terminal.
- the sending module 502 only receives the received information about the target.
- the session message of the second terminal of the account is sent to the second terminal, so that the second terminal displays the session message about the second terminal on the session interface corresponding to the target account.
- the acquiring module 501 is triggered to apply the corresponding message in the message.
- the server searches for and obtains a specified message about the target account based on the target account, and then triggers the sending module 502 to send the obtained specified message about the target account to the second terminal, so as to facilitate the second terminal.
- a specified message about the second terminal is displayed on the session interface corresponding to the target account.
- the specified message may be, for example, a message that has been sent to the first terminal that is logged in to the target account by the server corresponding to the target account in a certain period of time but is not pushed to the second terminal that is logged in to the target account; or may be a friend. Or the message sent by the group that has been sent to the first terminal of the target account by the server corresponding to the target application is not pushed to the second terminal that is logged in to the target account; or may be correspondingly applied by the message.
- the server pushes the first terminal that is logged into the target account without pushing all the messages of the second terminal that is logged into the target account.
- the specified message may also be a message that has been pushed to the first terminal that is logged in to the target account by the server corresponding to the message application under other specific conditions and is not pushed to the second terminal that logs in to the target account.
- the embodiment of the present invention When receiving the synchronization request sent by the second terminal that is logged in the target account, the embodiment of the present invention acquires the synchronization message, and sends the acquired synchronization message to the second terminal in response to the synchronization request, thereby implementing whether the autonomous selection is performed.
- Message synchronization enables autonomy and intelligence of synchronous messages.
- FIG. 6 is a schematic block diagram of a terminal according to another embodiment of the present invention.
- a terminal in this embodiment as shown may include: one or more processors 601; a transceiver 602 and a memory 603.
- the above processor 601, transceiver 602 and memory 603 are connected by a bus 604.
- the memory 603 is used to store instructions, and the processor 601 is used to execute programs stored in the memory 603. among them:
- the receiving processor 601 is configured to acquire a synchronization message when receiving a synchronization request sent by the second terminal that has logged in the target account.
- the transceiver 602 is configured to send the acquired synchronization message to the second terminal in response to the synchronization request.
- the transceiver 602 is further configured to: receive a session message about the second terminal that is logged in to the target account, but does not receive the synchronization sent by the second terminal. When requested, only the received session message is sent to the second terminal.
- the synchronization message includes a message that the server corresponding to the message application has been pushed to the first terminal that is logged in to the target account and is not pushed to the second terminal that is logged in to the target account.
- the receiving processor 601 is configured to: when receiving the synchronization request sent by the second terminal that is logged in the target account, the specific manner of obtaining the synchronization message is:
- the transceiver 602 After receiving the synchronization request sent by the second terminal that has logged in the target account, the transceiver 602 triggers the processor 601 to respond to the synchronization request in the server corresponding to the message application, and find and acquire the synchronization based on the target account. Message.
- the processor 601 if the transceiver 602 receives the all-platform synchronization instruction sent by the second terminal that is logged in the target account to indicate that the target account is synchronized, the processor 601 is triggered.
- the server corresponding to the message application searches for and obtains a specified message about the target account based on the target account, and then triggers the transceiver 602 to send the obtained specified message about the target account to the second terminal, so as to facilitate
- the second terminal displays a specified message about the second terminal on the session interface corresponding to the target account.
- the specified message may be, for example, a message that has been sent to the first terminal that is logged in to the target account by the server corresponding to the target account in a certain period of time but is not pushed to the second terminal that is logged in to the target account; or may be a friend. Or the message sent by the group that has been sent to the first terminal of the target account by the server corresponding to the target application is not pushed to the second terminal that is logged in to the target account; or may be correspondingly applied by the message.
- the server pushes the first terminal that is logged into the target account without pushing all the messages of the second terminal that is logged into the target account.
- the specified message may also be a message that has been pushed to the first terminal that is logged in to the target account by the server corresponding to the message application under other specific conditions and is not pushed to the second terminal that logs in to the target account.
- the memory 603 may include a volatile memory such as a random-access memory (RAM); the memory may also include a non-volatile memory such as a flash memory (flash) Memory), hard disk drive or solid-state drive; the memory 603 may also include a combination of the above types of memories.
- the processor 601 may be a central processing unit (CPU). The processor 601 may further include a hardware chip.
- the transceiver 602 may specifically be a radio frequency receiver or a radio frequency chip for transmitting and receiving signals.
- the transceiver 602 may include an integrated transmit channel (Transmitter, TX) and a receiver (Receiver, RX).
- the processor 601, the transceiver 602, and the memory 603 described in the embodiments of the present invention may implement an implementation manner of the message synchronization method described in the method provided in FIG. 2 of the embodiment of the present invention, and may also implement the implementation of the present invention.
- the implementation of the message synchronization apparatus described in FIG. 5 is not described herein again.
- the embodiment of the present invention When receiving the synchronization request sent by the second terminal that is logged in the target account, the embodiment of the present invention acquires the synchronization message, and sends the acquired synchronization message to the second terminal in response to the synchronization request, thereby implementing whether the autonomous selection is performed.
- Message synchronization enables autonomy and intelligence of synchronous messages.
- FIG. 7 is a schematic block diagram of a message synchronization system according to an embodiment of the present invention.
- the message synchronization system described in the embodiment of the present invention includes: a smart terminal 701 and a server 702.
- the smart terminal 701 is configured to acquire, when the synchronization message for the target account exists in the message application, the synchronization flag configured for the target account.
- the smart terminal 701 is further configured to: if the acquired synchronization flag indicates that the synchronization message is allowed to be synchronized to the smart terminal, send a synchronization request to the server.
- the server 702 is configured to: after receiving the synchronization request, find and acquire the synchronization message in response to the synchronization request.
- the server 702 is further configured to synchronize the acquired synchronization message to the smart terminal, so that the smart terminal displays the synchronization message on a session interface corresponding to the target account.
- the server 702 is further configured to: when receiving a session message about the smart terminal that has logged in the target account, but not receiving the synchronization request sent by the smart terminal, Sending the received session message to the smart terminal.
- the smart terminal 701 displays only the message about the target account acquired by the smart terminal 701 on the session interface corresponding to the target account.
- the server 702 receives the all-platform synchronization instruction sent by the smart terminal 701 to indicate that the specified message of the target account is synchronized, searching and acquiring the designation of the target account based on the target account.
- the message is sent to the smart terminal 701 for the specified message about the target account.
- the specified message may be, for example, a message that has been sent to the first terminal that is logged in to the target account by the server corresponding to the target account in a certain period of time but is not pushed to the second terminal that is logged in to the target account; or may be a friend. Or the message sent by the group that has been sent to the first terminal of the target account by the server corresponding to the target application is not pushed to the second terminal that is logged in to the target account; or may be correspondingly applied by the message.
- the server pushes the first terminal that is logged into the target account without pushing all the messages of the second terminal that is logged into the target account.
- the specified message may also be a message that has been pushed to the first terminal that is logged in to the target account by the server corresponding to the message application under other specific conditions and is not pushed to the second terminal that logs in to the target account.
- the server when the smart terminal detects that the synchronization message for the target account exists in the message application, the synchronization flag configured for the target account is obtained, and if the acquired synchronization flag indicates that the synchronization message is allowed to be synchronized to the smart terminal, the server sends the synchronization message to the server. Sending a synchronization request, the server obtains the synchronization message in response to the synchronization request, and synchronizes the acquired synchronization message to the smart terminal, thereby implementing autonomous selection whether to perform message synchronization, and realizing the autonomy and intelligence of the synchronization message.
- the modules in the apparatus of the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
- the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明实施例公开了一种消息同步方法,包括:在检测到消息应用中存在针对目标账号的同步消息时,获取为所述目标账号配置的同步标记;所述同步消息包括所述消息应用对应的服务器已推送给登录所述目标账号的第一终端而未推送给登录所述目标账号的第二终端的消息;若获取的所述同步标记指示允许向所述第二终端同步所述同步消息,则获取所述同步消息;将获取的所述同步消息同步至所述第二终端,以便于所述第二终端在所述目标账号对应的会话界面上显示所述同步消息。本发明实施例还公开了一种消息同步装置及系统。采用本发明,可自主选择是否进行消息同步。
Description
本申请要求于2016年10月31日提交中国专利局,申请号为201610933922.7、发明名称为“一种消息同步方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及通信技术领域,尤其涉及一种消息同步方法、装置及系统。
随着通信技术的发展,即时通讯应用( 例如微信、QQ 等) 等聊天工具已经成为人们不可或缺的沟通工具。为方便用户使用,目前的即时通讯工具一般都支持在不同的终端(例如手机、电脑等)上使用,以终端为手机和电脑为例,若不开启允许手机、电脑同时在线的选项,则一端上线会让另一端下线,导致用户使用不方便;而若开启允许手机、电脑同时在线的选项,则会自动同步两端的历史消息,导致在手机端可能会接收到电脑端大量的聊天记录,浪费用户大量的流量。
本发明实施例所要解决的技术问题在于,提供一种消息同步方法、装置及系统。可自主选择是否进行消息同步。
一方面,本发明实施例提供了一种消息同步方法,包括:
在检测到消息应用中存在针对目标账号的同步消息时,获取为所述目标账号配置的同步标记;所述同步消息包括所述消息应用对应的服务器已推送给登录所述目标账号的第一终端而未推送给登录所述目标账号的第二终端的消息;
若获取的所述同步标记指示允许向所述第二终端同步所述同步消息,则获取所述同步消息;
将获取的所述同步消息同步至所述第二终端,以便于所述第二终端在所述目标账号对应的会话界面上显示所述同步消息。
其中,在所述消息应用的菜单界面中配置了同步选项,所述获取为所述目标账号配置的同步标记,包括:
读取所述菜单界面中的所述同步选项的值,并将读取的所述同步选项的值作为所述同步标记;
其中,所述同步选项的值包括允许同步的值和禁止同步的值,当读取的所述同步选项的值为所述允许同步的值时,所述同步标记用于指示允许向所述第二终端同步所述同步消息。
其中,在所述消息应用中配置了同步用户界面,所述同步用户界面包括同步选项,所述同步选项包括允许同步选项和禁止同步选项,所述获取为所述目标账号配置的同步标记,包括:
控制显示所述同步用户界面,并监测针对所述同步选项的用户操作;
当所述用户操作选择所述允许同步选项时,将所述允许同步选项的值作为所述同步标记,所述同步标记用于指示允许向所述第二终端同步所述同步消息。
其中,所述获取所述同步消息,包括:
在所述消息应用对应的所述服务器中,基于所述目标账号查找并获取所述同步消息。
其中,所述方法还包括:若获取的所述同步标记指示禁止向所述第二终端同步所述同步消息,则控制所述第二终端在所述目标账号对应的会话界面上仅显示所述第二终端获取的关于所述目标账号的消息。
其中,所述方法还包括:若接收到用于指示同步所述目标账号的指定消息的全平台同步指令,则获取关于所述目标账号的所述指定消息,并将获取到的所述指定消息同步至所述第二终端。
另一方面,本发明实施例还提供了另一种消息同步方法,包括:
在接收到登录了目标账号的第二终端发出的同步请求时,获取同步消息,所述同步消息包括所述消息应用对应的服务器已推送给登录所述目标账号的第一终端而未推送给登录所述目标账号的第二终端的消息;
响应所述同步请求将获取到的所述同步消息发送给所述第二终端。
相应地,本发明实施例还提供了一种消息同步装置,包括:
获取模块,设置为在检测到消息应用中存在针对目标账号的同步消息时,获取为所述目标账号配置的同步标记;所述同步消息包括所述消息应用对应的服务器已推送给登录所述目标账号的第一终端而未推送给登录所述目标账号的第二终端的消息;
所述获取模块,还设置为若获取的所述同步标记指示允许向所述第二终端同步所述同步消息,则获取所述同步消息;
同步模块,设置为将获取的所述同步消息同步至所述第二终端,以便于所述第二终端在所述目标账号对应的会话界面上显示所述同步消息。
其中,在所述消息应用的菜单界面中配置了同步选项,所述装置还包括:
读取模块,设置为读取所述菜单界面中的所述同步选项的值,并将读取的所述同步选项的值作为所述同步标记;
其中,所述同步选项的值包括允许同步的值和禁止同步的值,当所述读取模块读取的所述同步选项的值为所述允许同步的值时,所述同步标记设置为指示允许向所述第二终端同步所述同步消息。
其中,在所述消息应用中配置了同步用户界面,所述同步用户界面包括同步选项,所述同步选项包括允许同步选项和禁止同步选项,所述装置还包括:
控制模块,设置为控制显示所述同步用户界面;
监测模块,设置为监测针对所述同步选项的用户操作,当所述监测模块监测到所述用户操作选择所述允许同步选项时,将所述允许同步选项的值作为所述同步标记,所述同步标记用于指示允许向所述第二终端同步所述同步消息。
其中,所述获取模块,具体设置为在所述消息应用对应的所述服务器中,基于所述目标账号查找并获取所述同步消息。
其中,所述控制模块,还设置为若获取的所述同步标记指示禁止向所述第二终端同步所述同步消息,则控制所述第二终端在所述目标账号对应的会话界面上仅显示所述第二终端获取的关于所述目标账号的消息。
其中,所述装置还包括:接收模块,设置为接收用于指示同步所述目标账号的指定消息的全平台同步指令,并在接收到所述全平台同步指令之后,触发所述获取模块获取关于所述目标账号的指定消息,并触发所述同步模块将所述获取模块获取到的所述关于所述目标账号的指定消息同步至所述第二终端。
相应地,本发明实施例还提供了另一种消息同步装置,包括:
获取模块,设置为在接收到登录了目标账号的第二终端发出的同步请求时,获取同步消息,所述同步消息包括所述消息应用对应的服务器已推送给登录所述目标账号的第一终端而未推送给登录所述目标账号的第二终端的消息;
发送模块,设置为响应所述同步请求将获取到的所述同步消息发送给所述第二终端。
相应地,本发明实施例还提供了一种消息同步系统,包括:智能终端和服务器,
所述智能终端,在检测到消息应用中存在针对目标账号的同步消息时,获取为所述目标账号配置的同步标记;所述同步消息包括所述服务器已推送给登录所述目标账号的其他智能终端而未推送给登录所述目标账号的所述智能终端的消息;
所述智能终端,若获取的所述同步标记指示允许向所述智能终端同步所述同步消息,向所述服务器发送同步请求;
所述服务器,在接收到所述同步请求之后,响应所述同步请求查找并获取所述同步消息;
所述服务器,还将获取的所述同步消息同步至所述智能终端,以便于所述智能终端在所述目标账号对应的会话界面上显示所述同步消息。
实施本发明实施例,具有如下有益效果:
本发明实施例在检测到消息应用中存在针对目标账号的同步消息时,获取为该目标账号配置的同步标记,若获取的该同步标记指示允许向第二终端同步该同步消息,则获取该同步消息并将获取的该同步消息同步至该第二终端,从而实现自主选择是否进行消息同步,实现了同步消息的自主性以及智能化。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图 1是本发明实施例提供的一种消息同步方法的示意流程图;
图 2是本发明另一实施例提供的一种消息同步方法的示意流程图;
图 3是本发明实施例提供的一种消息同步装置的示意性框图;
图 4是本发明实施例提供的一种终端的示意性框图;
图 5是本发明另一实施例提供的一种消息同步装置的示意性框图;
图 6是本发明另一实施例提供的一种终端的示意性框图;
图 7是本发明实施例提供的一种消息同步系统的示意性框图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
参见图1,是本发明实施例提供的一种消息同步方法的示意流程图,所述方法可以由智能手机(如Android手机、iOS手机、Windows Phone手机等)、掌上电脑、笔记本电脑、平板电脑、移动互联网设备(Mobile Internet Devices,MID)、穿戴式设备等带网络通信功能以及数据处理功能的智能终端来实现,如图1所示的一种消息同步方法可包括以下步骤。
S101、在检测到消息应用中存在针对目标账号的同步消息时,获取为所述目标账号配置的同步标记。所述消息应用可以为即时通讯应用。
其中,该同步消息包括该消息应用对应的服务器已推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息。在本发明实施例中,如果用户通过该目标账号登陆了基于有线网络上网的第一终端(如电脑)产生了聊天消息等消息(同步消息)后,用户再次在需要使用付费无线流量(例如移动通信流量)上网的第二终端(如智能终端)登陆了所述目标账号,则服务器并不会将已经发送给该第一终端的消息直接发送给该第二终端,第二终端也不会直接去服务器请求已经发送给该第一终端的消息。该第二终端可以是在接收到该消息应用对应的服务器发出的通知消息时,确定存在该同步消息。该服务器可以在接收到针对该目标账号的消息,且该消息为已发送给电脑等第一终端而未发送给本智能终端(第二终端)的消息时,向本智能终端发送通知,以便于本智能终端对应的用户决定是否同步这些消息。
在一些可行的实施方式中,在该消息应用的菜单界面中配置了同步选项,该获取为该目标账号配置的同步标记的具体方式为:
读取该菜单界面中的该同步选项的值,并将读取的该同步选项的值作为该同步标记,其中,该同步选项的值包括允许同步的值(例如,同步选项的值为表明允许同步的值1)和禁止同步的值(例如,同步选项的值为表明禁止同步的值0),当读取的该同步选项的值为该允许同步的值(如为1)时,该同步标记用于指示允许向该第二终端同步该同步消息,而当读取的该同步选项的值为该禁止同步的值(如为0)时,该同步标记用于指示禁止向该第二终端同步该同步消息。
在一些可行的实施方式中,在该消息应用中配置了同步用户界面,该同步用户界面包括同步选项,该同步选项包括允许同步选项和禁止同步选项,该获取为该目标账号配置的同步标记的具体方式为:
控制显示该同步用户界面,并监测用户针对该同步选项的用户操作,当监测到该用户操作选择该允许同步选项时,将该允许同步选项的值(例如,允许同步选项的值为表明允许同步的值1)作为该同步标记,该同步标记用于指示允许向该第二终端同步该同步消息,而当监测到该用户操作选择该禁止同步选项时,将该禁止同步选项的值(例如,禁止同步选项的值为表明禁止同步的值0)作为该同步标记,该同步标记用于指示禁止向该第二终端同步该同步消息。
S102、若获取的所述同步标记指示允许向所述第二终端同步所述同步消息,则获取所述同步消息。
具体的,若读取的该同步选项的值为该允许同步的值,且将该允许同步的值作为该同步标记,或者若监测到该用户操作选择该允许同步选项,且将该允许同步选项的值作为该同步标记,则确定获取的该同步标记用于指示允许向该第二终端同步该同步消息,并在确定获取的该同步标记用于指示允许向该第二终端同步该同步消息时,响应该同步标记的指示在该消息应用对应的该服务器中,基于该目标账号查找并获取该同步消息。
S103、将获取的所述同步消息同步至所述第二终端,以便于所述第二终端在所述目标账号对应的会话界面上显示所述同步消息。
具体的,在响应该同步标记的指示在该消息应用对应的该服务器中,基于该目标账号查找并获取到该同步消息之后,将获取到的该同步消息同步至该第二终端,以便于该第二终端在该目标账号对应的会话界面上显示该同步消息。
在一些可行的实施方式中,若读取的该菜单界面中的该同步选项的值为该禁止同步的值,或者若监测到该用户针对该同步用户界面包括的该同步选项选择该禁止同步选项,且将该禁止同步选项的值作为该同步标记,则确定该同步标记用于指示禁止向该第二终端同步该同步消息,并在确定获取的该同步标记用于指示禁止向所述第二终端同步所述同步消息时,控制该第二终端响应该同步标记的指示仅在该目标账号对应的会话界面上显示该第二终端获取的关于该目标账号的消息。
在一些可行的实施方式中,若接收到用于指示同步该目标账号的指定消息的全平台同步指令,则在该消息应用对应的该服务器中,基于该目标账号查找并获取关于该目标账号的指定消息,并将获取到的关于该目标账号的指定消息同步至该第二终端,以便于控制该第二终端在该目标账号对应的会话界面上显示关于该第二终端的指定消息。
其中,该指定消息例如可以是某时间段内已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息;或者可以是某好友或者某群组发送的已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息;或者还可以是已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的全部消息。可以理解的是,该指定消息还可以是其他特定条件下的已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息。
进一步地,上述涉及到的消息同步方法的每个步骤也可以由消息应用的服务器来执行,用户可以在智能终端侧配置相应的同步选项或者在显示的同步用户界面上进行选项配置,服务器根据这些配置来确定是否将其接收到的关于该目标账号的同步消息发送给第二终端(智能终端)。
本发明实施例在检测到消息应用中存在针对目标账号的同步消息时,获取为该目标账号配置的同步标记,若获取的该同步标记指示允许向第二终端同步该同步消息,则获取该同步消息并将获取的该同步消息同步至该第二终端,从而实现自主选择是否进行消息同步,实现了同步消息的自主性以及智能化。
参见图2,是本发明另一实施例提供的一种消息同步方法的示意流程图,所述方法例如可以由服务器来实现,如图2所示的一种消息同步方法可包括以下步骤:
S201、在接收到登录了目标账号的第二终端发出的同步请求时,获取同步消息。其中,该同步消息包括该消息应用对应的服务器已推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息。
具体的,在接收到登录了该目标账号的第二终端发出的同步请求之后,响应该同步请求在该消息应用对应的该服务器中,基于该目标账号查找并获取该同步消息。该同步请求是智能终端等第二终端在检测到为该目标账号配置的同步标记指示允许向该第二终端同步该同步消息时生成并发出的,其中该同步标记的相关描述可参考上一实施例中的描述。
S202、响应所述同步请求将获取到的所述同步消息发送给所述第二终端。
具体的,在响应该同步请求在该消息应用对应的该服务器中,基于该目标账号查找并获取到该同步消息之后,将获取到的该同步消息发送给该第二终端,以便于该第二终端在该目标账号对应的会话界面上显示该同步消息。
在一些可行的实施方式中,本发明实施例的所述方法还可以包括:S203、在接收到关于登录了所述目标账号的所述第二终端的会话消息、但未接收到所述第二终端发出的所述同步请求时,将所述接收到的会话消息发送给所述第二终端。
具体的,若接收到了关于登录了该目标账号的该第二终端的会话消息,但未接收到该第二终端发出的该同步请求时,仅将接收到的关于登录了该目标账号的该第二终端的会话消息发送给该第二终端,以便于控制该第二终端在该目标账号对应的会话界面上显示关于该第二终端的会话消息。
在一些可行的实施方式中,若接收到登录了该目标账号的该第二终端发送的用于指示同步该目标账号的指定消息的全平台同步指令,则在该消息应用对应的该服务器中,基于该目标账号查找并获取关于该目标账号的指定消息,并将获取到的关于该目标账号的指定消息发送给该第二终端,以便于控制该第二终端在该目标账号对应的会话界面上显示关于该第二终端的指定消息。
其中,该指定消息例如可以是某时间段内已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息;或者可以是某好友或者某群组发送的已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息;或者还可以是已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的全部消息。可以理解的是,该指定消息还可以是其他特定条件下的已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息。
本发明实施例在接收到登录了目标账号的第二终端发出的同步请求时,获取同步消息,并响应该同步请求将获取到的该同步消息发送给该第二终端,从而实现自主选择是否进行消息同步,实现了同步消息的自主性以及智能化。
参见图3,是本发明实施例提供的一种消息同步装置的示意性框图,所述装置例如可以设置在智能手机(如Android手机、iOS手机、Windows Phone手机等)、掌上电脑、笔记本电脑、平板电脑、移动互联网设备、穿戴式设备等带网络通信功能以及数据处理功能的智能终端上,本发明实施例中描述的一种消息同步装置,包括:
获取模块301,设置为在检测到消息应用中存在针对目标账号的同步消息时,获取为所述目标账号配置的同步标记。
其中,该同步消息包括该消息应用对应的服务器已推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息。
在一些可行的实施方式中,在该消息应用的菜单界面中配置了同步选项,该获取模块301获取为该目标账号配置的同步标记的具体方式为:
读取模块302,设置为读取所述菜单界面中的所述同步选项的值,并将读取的所述同步选项的值作为所述获取模块获取的所述同步标记。
其中,该同步选项的值包括允许同步的值和禁止同步的值,当该读取模块302读取的该同步选项的值为该允许同步的值时,将该允许同步的值作为该获取模块301获取的该同步标记,该同步标记用于指示允许向该第二终端同步该同步消息。
在一些可行的实施方式中,在该消息应用中配置了同步用户界面,该同步用户界面包括同步选项,该同步选项包括允许同步选项和禁止同步选项,该获取模块301获取为该目标账号配置的同步标记的具体方式为:
控制模块303,设置为控制显示该同步用户界面。
监测模块304,设置为监测用户针对该同步选项的用户操作,当监测到该用户操作选择该允许同步选项时,将该允许同步选项的值作为该获取模块301获取的该同步标记,该同步标记用于指示允许向该第二终端同步该同步消息。
所述获取模块301,还设置为若获取的所述同步标记指示允许向所述第二终端同步所述同步消息,则获取所述同步消息。
所述获取模块301,具体设置为在所述消息应用对应的所述服务器中,基于所述目标账号查找并获取所述同步消息。
具体的,若该读取模块302读取的该同步选项的值为该允许同步的值,且将该允许同步的值作为该获取模块301获取的该同步标记,或者若该监测模块304监测到该用户操作选择该允许同步选项,且将该允许同步选项的值作为该获取模块301获取的该同步标记,则确定该获取模块301获取的该同步标记用于指示允许向该第二终端同步该同步消息,然后触发该获取模块301响应该同步标记的指示在该消息应用对应的该服务器中,基于该目标账号查找并获取该同步消息。
同步模块305,设置为将获取的所述同步消息同步至所述第二终端,以便于所述第二终端在所述目标账号对应的会话界面上显示所述同步消息。
具体的,在该获取模块301响应该同步标记的指示在该消息应用对应的该服务器中,基于该目标账号查找并获取到该同步消息之后,触发该同步模块305将获取到的该同步消息同步至该第二终端,以便于该第二终端在该目标账号对应的会话界面上显示该同步消息。
在一些可行的实施方式中,若该读取模块302读取的该菜单界面中的该同步选项的值为该禁止同步的值,或者若该监测模块304监测到该用户针对该同步用户界面包括的该同步选项选择该禁止同步选项,并将该禁止同步选项的值作为该获取模块301获取的该同步标记,则确定该同步标记用于指示禁止向该第二终端同步该同步消息。并在确定获取的该同步标记用于指示禁止向所述第二终端同步所述同步消息时,触发该控制模块303控制该第二终端响应该同步标记的指示仅在该目标账号对应的会话界面上显示该第二终端获取的关于该目标账号的消息。
接收模块306,设置为接收用于指示同步所述目标账号的指定消息的全平台同步指令,并在接收到所述全平台同步指令之后,触发所述获取模块获取关于所述目标账号的指定消息,并触发所述同步模块将所述获取模块获取到的所述关于所述目标账号的指定消息同步至所述第二终端。
具体的,若该接收模块306接收到用于指示同步该目标账号的指定消息的全平台同步指令,则触发该获取模块301在该消息应用对应的该服务器中,基于该目标账号查找并获取关于该目标账号的指定消息,然后触发该同步模块305将获取到的关于该目标账号的指定消息同步至该第二终端,以便于控制该第二终端在该目标账号对应的会话界面上显示关于该第二终端的指定消息。
其中,该指定消息例如可以是某时间段内已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息;或者可以是某好友或者某群组发送的已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息;或者还可以是已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的全部消息。可以理解的是,该指定消息还可以是其他特定条件下的已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息。
需要说明的是,本发明实施例的一种消息同步装置的各功能模块的功能可根据上述方法实施例中的第一实施例的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
本发明实施例在检测到消息应用中存在针对目标账号的同步消息时,获取为该目标账号配置的同步标记,若获取的该同步标记指示允许向第二终端同步该同步消息,则获取该同步消息并将获取的该同步消息同步至该第二终端,从而实现自主选择是否进行消息同步,实现了同步消息的自主性以及智能化。
参见图4,是本发明实施例提供的一种终端的示意框图。如图所示的本实施例中的一种终端可以包括:一个或多个处理器401;收发器402和存储器403。上述处理器401、收发器402和存储器403通过总线404连接。存储器403用于存储指令,处理器401用于执行存储器403存储的程序。其中:
上述处理器401,用于在检测到消息应用中存在针对目标账号的同步消息时,获取为所述目标账号配置的同步标记。
上述处理器401,还用于若获取的所述同步标记指示允许向所述第二终端同步所述同步消息,则获取所述同步消息。
上述收发器402,用于将获取的所述同步消息同步至所述第二终端,以便于所述第二终端在所述目标账号对应的会话界面上显示所述同步消息。
其中,该同步消息包括该消息应用对应的服务器已推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息。
在一些可行的实施方式中,在该消息应用的菜单界面中配置了同步选项,上述处理器401,用于在检测到消息应用中存在针对目标账号的同步消息时,获取为所述目标账号配置的同步标记具体方式为:
该处理器401读取该菜单界面中的所述同步选项的值,并将读取的所述同步选项的值作为所述同步标记,其中,该同步选项的值包括允许同步的值和禁止同步的值,当读取的该同步选项的值为该允许同步的值时,将该允许同步的值作为该同步标记,该同步标记用于指示允许向该第二终端同步该同步消息。
在一些可行的实施方式中,在该消息应用中配置了同步用户界面,该同步用户界面包括同步选项,该同步选项包括允许同步选项和禁止同步选项,上述处理器401,用于在检测到消息应用中存在针对目标账号的同步消息时,获取为所述目标账号配置的同步标记具体方式为:
该处理器401控制显示该同步用户界面,并监测用户针对该同步选项的用户操作,当监测到该用户操作选择该允许同步选项时,将该允许同步选项的值作为该同步标记,该同步标记用于指示允许向该第二终端同步该同步消息。
在一些可行的实施方式中,上述处理器401,还用于若获取的所述同步标记指示允许向所述第二终端同步所述同步消息,则获取所述同步消息的具体方式为:
若该处理器401读取的该同步选项的值为该允许同步的值,则将该允许同步的值作为该同步标记,或者若该处理器401监测到该用户操作选择该允许同步选项,且将该允许同步选项的值作为该同步标记,则确定该处理器401获取的该同步标记用于指示允许向该第二终端同步该同步消息,然后该处理器401响应该同步标记的指示在该消息应用对应的该服务器中,基于该目标账号查找并获取该同步消息。
在一些可行的实施方式中,若该处理器401读取的该菜单界面中的该同步选项的值为该禁止同步的值,或者若该处理器401监测到该用户针对该同步用户界面包括的该同步选项选择该禁止同步选项,且将该禁止同步选项的值作为该同步标记,则确定该同步标记用于指示禁止向该第二终端同步该同步消息。并在确定获取的该同步标记用于指示禁止向所述第二终端同步所述同步消息时,控制该第二终端在该目标账号对应的会话界面上仅显示该第二终端获取的关于该目标账号的消息。
上述处理器401,还用于若接收到用于指示同步所述目标账号的指定消息的全平台同步指令,则在该消息应用对应的该服务器中,基于该目标账号查找并获取关于该目标账号的指定消息,并触发上述收发器402将获取到的所述关于所述目标账号的指定消息同步至所述第二终端。
其中,该指定消息例如可以是某时间段内已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息;或者可以是某好友或者某群组发送的已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息;或者还可以是已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的全部消息。可以理解的是,该指定消息还可以是其他特定条件下的已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息。
上述存储403可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive)或固态硬盘(solid-state drive);存储器404还可以包括上述种类的存储器的组合。上述处理器401可以是中央处理器(central processing unit,CPU)。所述处理器401还可以进一步包括硬件芯片。
收发器402具体可以为射频接收机或者射频芯片,用于收发信号,具体地,收发器402可以包括集成在一起的发射通路(Transmitter,TX)以及接收器(Receiver,RX)。
具体实现中,本发明实施例中所描述的处理器401、收发器402和存储器403可执行本发明实施例图1提供的方法中所描述的消息同步方法的实现方式,也可执行本发明实施例图3所描述的消息同步装置的实现方式,在此不再赘述。
本发明实施例在检测到消息应用中存在针对目标账号的同步消息时,获取为该目标账号配置的同步标记,若获取的该同步标记指示允许向第二终端同步该同步消息,则获取该同步消息并将获取的该同步消息同步至该第二终端,从而实现自主选择是否进行消息同步,实现了同步消息的自主性以及智能化。
参见图5,是本发明另一实施例提供的一种消息同步装置的示意性框图,所述装置例如可以设置在服务器上,本发明实施例中描述的一种终端声音的关闭装置,包括:
获取模块501,设置为在接收到登录了目标账号的第二终端发出的同步请求时,获取同步消息。
其中,该同步消息包括该消息应用对应的服务器已推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息。
具体的,在接收到登录了该目标账号的第二终端发出的同步请求之后,该获取模块501响应该同步请求在该消息应用对应的该服务器中,基于该目标账号查找并获取该同步消息。
发送模块502,设置为响应所述同步请求将获取到的所述同步消息发送给所述第二终端。
具体的,在该获取模块501响应该同步请求在该消息应用对应的该服务器中,基于该目标账号查找并获取到该同步消息之后,触发该发送模块502将获取到的该同步消息发送给该第二终端,以便于该第二终端在该目标账号对应的会话界面上显示该同步消息。
在一些可行的实施方式中,该发送模块502,还设置为在接收到关于登录了所述目标账号的所述第二终端的会话消息、但未接收到所述第二终端发出的所述同步请求时,仅将所述接收到的会话消息发送给所述第二终端。
具体的,若接收到了关于登录了该目标账号的该第二终端的会话消息,但未接收到该第二终端发出的该同步请求时,该发送模块502只将接收到的关于登录了该目标账号的该第二终端的会话消息发送给该第二终端,以便于该第二终端在该目标账号对应的会话界面上显示关于该第二终端的会话消息。
在一些可行的实施方式中,若接收到登录了该目标账号的该第二终端发送的用于指示同步该目标账号的指定消息的全平台同步指令,则触发该获取模块501在该消息应用对应的该服务器中,基于该目标账号查找并获取关于该目标账号的指定消息,然后触发该发送模块502将获取到的关于该目标账号的指定消息发送给该第二终端,以便于该第二终端在该目标账号对应的会话界面上显示关于该第二终端的指定消息。
其中,该指定消息例如可以是某时间段内已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息;或者可以是某好友或者某群组发送的已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息;或者还可以是已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的全部消息。可以理解的是,该指定消息还可以是其他特定条件下的已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息。
需要说明的是,本发明实施例的一种消息同步装置的各功能模块的功能可根据上述方法实施例中的第二实施例的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
本发明实施例在接收到登录了目标账号的第二终端发出的同步请求时,获取同步消息,并响应该同步请求将获取到的该同步消息发送给该第二终端,从而实现自主选择是否进行消息同步,实现了同步消息的自主性以及智能化。
参见图6,是本发明另一实施例提供的一种终端的示意性框图。如图所示的本实施例中的一种终端可以包括:一个或多个处理器601;收发器602和存储器603。上述处理器601、收发器602和存储器603通过总线604连接。存储器603用于存储指令,处理器601用于执行存储器603存储的程序。其中:
上述收处理器601,用于在接收到登录了目标账号的第二终端发出的同步请求时,获取同步消息。
上述收发器602,用于响应所述同步请求将获取到的所述同步消息发送给所述第二终端。
在一些可行的实施方式中,上述收发器602,还用于在接收到关于登录了所述目标账号的所述第二终端的会话消息、但未接收到所述第二终端发出的所述同步请求时,仅将所述接收到的会话消息发送给所述第二终端。
其中,该同步消息包括该消息应用对应的服务器已推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息。
在一些可行的实施方式中,上述收处理器601,用于在接收到登录了目标账号的第二终端发出的同步请求时,获取同步消息的具体方式为:
该收发器602在接收到登录了该目标账号的第二终端发出的同步请求之后,触发该处理器601响应该同步请求在该消息应用对应的该服务器中,基于该目标账号查找并获取该同步消息。
在一些可行的实施方式中,若该收发器602接收到登录了该目标账号的该第二终端发送的用于指示同步该目标账号的指定消息的全平台同步指令,则触发该处理器601在该消息应用对应的该服务器中,基于该目标账号查找并获取关于该目标账号的指定消息,然后触发该收发器602将获取到的关于该目标账号的指定消息发送给该第二终端,以便于该第二终端在该目标账号对应的会话界面上显示关于该第二终端的指定消息。
其中,该指定消息例如可以是某时间段内已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息;或者可以是某好友或者某群组发送的已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息;或者还可以是已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的全部消息。可以理解的是,该指定消息还可以是其他特定条件下的已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息。
上述存储器603可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive)或固态硬盘(solid-state drive);存储器603还可以包括上述种类的存储器的组合。上述处理器601可以是中央处理器(central processing unit,CPU)。所述处理器601还可以进一步包括硬件芯片。
收发器602具体可以为射频接收机或者射频芯片,用于收发信号,具体地,收发器602可以包括集成在一起的发射通路(Transmitter,TX)以及接收器(Receiver,RX)。
具体实现中,本发明实施例中所描述的处理器601、收发器602和存储器603可执行本发明实施例图2提供的方法中所描述的消息同步方法的实现方式,也可执行本发明实施例图5所描述的消息同步装置的实现方式,在此不再赘述。
本发明实施例在接收到登录了目标账号的第二终端发出的同步请求时,获取同步消息,并响应该同步请求将获取到的该同步消息发送给该第二终端,从而实现自主选择是否进行消息同步,实现了同步消息的自主性以及智能化。
参见图7,是本发明实施例提供的一种消息同步系统的示意性框图。本发明实施例中所描述的消息同步系统,包括:智能终端701和服务器702。
上述智能终端701,用于在检测到消息应用中存在针对目标账号的同步消息时,获取为所述目标账号配置的同步标记。
上述智能终端701,还用于若获取的所述同步标记指示允许向所述智能终端同步所述同步消息,则向所述服务器发送同步请求。
上述服务器702,用于在接收到所述同步请求之后,响应所述同步请求查找并获取所述同步消息。
上述服务器702,还用于将获取的所述同步消息同步至所述智能终端,以便于所述智能终端在所述目标账号对应的会话界面上显示所述同步消息。
在一些可行的实施方式中,上述服务器702,还用于在接收到关于登录了所述目标账号的所述智能终端的会话消息、但未接收到所述智能终端发出的所述同步请求时,将所述接收到的会话消息发送给所述智能终端。
在一些可行的实施方式中,若该智能终端701获取的该同步标记指示禁止向该智能终端701同步该同步消息,则向该服务器702发送禁止同步请求,该服务器702在接收到该禁止同步请求后,响应该禁止同步请求控制该智能终端701在该目标账号对应的会话界面上仅显示该智能终端701获取的关于该目标账号的消息。
在一些可行的实施方式中,若该服务器702接收到该智能终端701发送的用于指示同步该目标账号的指定消息的全平台同步指令,则基于该目标账号查找并获取关于该目标账号的指定消息,并将获取到的关于该目标账号的指定消息发送给该智能终端701。
其中,该指定消息例如可以是某时间段内已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息;或者可以是某好友或者某群组发送的已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息;或者还可以是已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的全部消息。可以理解的是,该指定消息还可以是其他特定条件下的已通过该消息应用对应的服务器推送给登录该目标账号的第一终端而未推送给登录该目标账号的第二终端的消息。
可以理解的是,本实施例的智能终端701和服务器702的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
本发明实施例在智能终端检测到消息应用中存在针对目标账号的同步消息时,获取为该目标账号配置的同步标记,若获取的该同步标记指示允许向智能终端同步该同步消息,则向服务器发送同步请求,该服务器响应该同步请求获取该同步消息并将获取的该同步消息同步至该智能终端,从而实现自主选择是否进行消息同步,实现了同步消息的自主性以及智能化。
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本发明实施例装置中的模块可以根据实际需要进行合并、划分和删减。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。
Claims (15)
- 一种消息同步方法,其特征在于,包括:在检测到消息应用中存在针对目标账号的同步消息时,获取为所述目标账号配置的同步标记;所述同步消息包括所述消息应用对应的服务器已推送给登录所述目标账号的第一终端而未推送给登录所述目标账号的第二终端的消息;若获取的所述同步标记指示允许向所述第二终端同步所述同步消息,则获取所述同步消息;将获取的所述同步消息同步至所述第二终端,以便于所述第二终端在所述目标账号对应的会话界面上显示所述同步消息。
- 如权利要求1所述的方法,其特征在于,在所述消息应用的菜单界面中配置了同步选项,所述获取为所述目标账号配置的同步标记,包括:读取所述菜单界面中的所述同步选项的值,并将读取的所述同步选项的值作为所述同步标记;其中,所述同步选项的值包括允许同步的值和禁止同步的值,当读取的所述同步选项的值为所述允许同步的值时,所述同步标记用于指示允许向所述第二终端同步所述同步消息。
- 如权利要求1所述的方法,其特征在于,在所述消息应用中配置了同步用户界面,所述同步用户界面包括同步选项,所述同步选项包括允许同步选项和禁止同步选项,所述获取为所述目标账号配置的同步标记,包括:控制显示所述同步用户界面,并监测针对所述同步选项的用户操作;当所述用户操作选择所述允许同步选项时,将所述允许同步选项的值作为所述同步标记,所述同步标记用于指示允许向所述第二终端同步所述同步消息。
- 如权利要求1所述的方法,其特征在于,所述获取所述同步消息,包括:在所述消息应用对应的所述服务器中,基于所述目标账号查找并获取所述同步消息。
- 如权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:若获取的所述同步标记指示禁止向所述第二终端同步所述同步消息,则控制所述第二终端在所述目标账号对应的会话界面上仅显示所述第二终端获取的关于所述目标账号的消息。
- 如权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:若接收到用于指示同步所述目标账号的指定消息的全平台同步指令,则获取关于所述目标账号的所述指定消息,并将获取到的所述指定消息同步至所述第二终端。
- 一种消息同步方法,其特征在于,包括:在接收到登录了目标账号的第二终端发出的同步请求时,获取同步消息,所述同步消息包括所述消息应用对应的服务器已推送给登录所述目标账号的第一终端而未推送给登录所述目标账号的第二终端的消息;响应所述同步请求将获取到的所述同步消息发送给所述第二终端。
- 一种消息同步装置,其特征在于,包括:获取模块,设置为在检测到消息应用中存在针对目标账号的同步消息时,获取为所述目标账号配置的同步标记;所述同步消息包括所述消息应用对应的服务器已推送给登录所述目标账号的第一终端而未推送给登录所述目标账号的第二终端的消息;所述获取模块,还设置为若获取的所述同步标记指示允许向所述第二终端同步所述同步消息,则获取所述同步消息;同步模块,设置为将获取的所述同步消息同步至所述第二终端,以便于所述第二终端在所述目标账号对应的会话界面上显示所述同步消息。
- 如权利要求8所述的装置,其特征在于,在所述消息应用的菜单界面中配置了同步选项,所述装置还包括:读取模块,设置为读取所述菜单界面中的所述同步选项的值,并将读取的所述同步选项的值作为所述同步标记;其中,所述同步选项的值包括允许同步的值和禁止同步的值,当所述读取模块读取的所述同步选项的值为所述允许同步的值时,所述同步标记用于指示允许向所述第二终端同步所述同步消息。
- 如权利要求8所述的装置,其特征在于,在所述消息应用中配置了同步用户界面,所述同步用户界面包括同步选项,所述同步选项包括允许同步选项和禁止同步选项,所述装置还包括:控制模块,设置为控制显示所述同步用户界面;监测模块,设置为监测针对所述同步选项的用户操作,当所述监测模块监测到所述用户操作选择所述允许同步选项时,将所述允许同步选项的值作为所述同步标记,所述同步标记用于指示允许向所述第二终端同步所述同步消息。
- 如权利要求8所述的装置,其特征在于,所述获取模块,具体设置为在所述消息应用对应的所述服务器中,基于所述目标账号查找并获取所述同步消息。
- 如权利要求8-11任一项所述的装置,其特征在于,所述控制模块,还设置为若获取的所述同步标记指示禁止向所述第二终端同步所述同步消息,则控制所述第二终端在所述目标账号对应的会话界面上仅显示所述第二终端获取的关于所述目标账号的消息。
- 如权利要求8-11任一项所述的装置,其特征在于,所述装置还包括:接收模块,设置为接收用于指示同步所述目标账号的指定消息的全平台同步指令,并在接收到所述全平台同步指令之后,触发所述获取模块获取关于所述目标账号的指定消息,并触发所述同步模块将所述获取模块获取到的所述关于所述目标账号的指定消息同步至所述第二终端。
- 一种消息同步装置,其特征在于,包括:获取模块,设置为在接收到登录了目标账号的第二终端发出的同步请求时,获取同步消息,所述同步消息包括所述消息应用对应的服务器已推送给登录所述目标账号的第一终端而未推送给登录所述目标账号的第二终端的消息;发送模块,设置为响应所述同步请求将获取到的所述同步消息发送给所述第二终端。
- 一种消息同步系统,其特征在于,包括:智能终端和服务器,所述智能终端,在检测到消息应用中存在针对目标账号的同步消息时,获取为所述目标账号配置的同步标记;所述同步消息包括所述服务器已推送给登录所述目标账号的其他智能终端而未推送给登录所述目标账号的所述智能终端的消息;所述智能终端,若获取的所述同步标记指示允许向所述智能终端同步所述同步消息,向所述服务器发送同步请求;所述服务器,在接收到所述同步请求之后,响应所述同步请求查找并获取所述同步消息;所述服务器,还将获取的所述同步消息同步至所述智能终端,以便于所述智能终端在所述目标账号对应的会话界面上显示所述同步消息。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610933922.7 | 2016-10-31 | ||
CN201610933922.7A CN106453586A (zh) | 2016-10-31 | 2016-10-31 | 一种消息同步方法、装置及系统 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018076446A1 true WO2018076446A1 (zh) | 2018-05-03 |
Family
ID=58177499
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/107843 WO2018076446A1 (zh) | 2016-10-31 | 2016-11-30 | 一种消息同步方法、装置及系统 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106453586A (zh) |
WO (1) | WO2018076446A1 (zh) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110661697B (zh) * | 2019-09-10 | 2022-10-18 | 北京百分点科技集团股份有限公司 | 消息同步方法、装置、可读存储介质、电子设备及系统 |
CN111147400B (zh) * | 2019-12-04 | 2022-03-01 | 杭州迪普科技股份有限公司 | 一种命令行配置同步的方法、装置及电子设备 |
CN115118735B (zh) * | 2022-06-08 | 2023-12-01 | 腾讯科技(深圳)有限公司 | 数据同步方法、群组管理方法、装置、设备及存储介质 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103139259A (zh) * | 2011-11-30 | 2013-06-05 | 百度在线网络技术(北京)有限公司 | 一种实现低流量同步消息记录的方法和服务器 |
CN103841004A (zh) * | 2012-11-26 | 2014-06-04 | 腾讯科技(深圳)有限公司 | 信息显示方法及信息服务器 |
CN104601674A (zh) * | 2014-12-29 | 2015-05-06 | 小米科技有限责任公司 | 通知消息同步方法、装置及系统 |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103118048A (zh) * | 2011-11-17 | 2013-05-22 | 腾讯科技(深圳)有限公司 | 数据同步的方法、服务器和终端 |
CN102821150B (zh) * | 2012-08-03 | 2015-09-30 | 东莞宇龙通信科技有限公司 | 基于云服务的应用管理方法及云服务器 |
CN103684980B (zh) * | 2012-09-17 | 2017-08-18 | 阿里巴巴集团控股有限公司 | 即时聊天工具中的聊天记录同步方法和系统 |
CN103118032B (zh) * | 2013-03-01 | 2015-09-30 | 北京奇艺世纪科技有限公司 | 一种终端登录账号同步的方法、终端与服务器 |
CN104243528B (zh) * | 2013-06-20 | 2018-06-05 | 腾讯科技(深圳)有限公司 | 一种在多个终端设备间同步复制内容的方法和系统 |
CN104092646B (zh) * | 2013-10-28 | 2016-10-12 | 腾讯科技(深圳)有限公司 | 操作同步方法和装置 |
CN103596017B (zh) * | 2013-11-28 | 2017-02-15 | 小米科技有限责任公司 | 一种视频下载方法及系统 |
CN113596175A (zh) * | 2014-03-18 | 2021-11-02 | 小米科技有限责任公司 | 场景同步方法、终端、服务器及系统 |
CN105471998A (zh) * | 2015-12-03 | 2016-04-06 | 网易传媒科技(北京)有限公司 | 一种用于在多个终端中同步应用数据的方法和装置 |
-
2016
- 2016-10-31 CN CN201610933922.7A patent/CN106453586A/zh active Pending
- 2016-11-30 WO PCT/CN2016/107843 patent/WO2018076446A1/zh active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103139259A (zh) * | 2011-11-30 | 2013-06-05 | 百度在线网络技术(北京)有限公司 | 一种实现低流量同步消息记录的方法和服务器 |
CN103841004A (zh) * | 2012-11-26 | 2014-06-04 | 腾讯科技(深圳)有限公司 | 信息显示方法及信息服务器 |
CN104601674A (zh) * | 2014-12-29 | 2015-05-06 | 小米科技有限责任公司 | 通知消息同步方法、装置及系统 |
Also Published As
Publication number | Publication date |
---|---|
CN106453586A (zh) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018233352A1 (zh) | 数据传输方法、装置、终端以及计算机可读存储介质 | |
WO2018076841A1 (zh) | 数据分享方法、装置、存储介质及服务器 | |
WO2014200240A1 (en) | Method and apparatus for registering wireless device in wireless communication system | |
WO2014175602A1 (en) | Electronic device and method of registering personal cloud apparatus in user portal server thereof | |
WO2019174090A1 (zh) | 截屏文件分享的控制方法、装置、设备和计算机存储介质 | |
WO2015030364A1 (en) | Method for sharing media data and electronic device thereof | |
EP3304942A1 (en) | Method and apparatus for sharing application | |
WO2018076861A1 (zh) | 数据传输的控制方法、装置、存储介质、服务器及系统 | |
WO2016200018A1 (en) | Method and apparatus for sharing application | |
WO2015072788A1 (en) | Method and apparatus for managing security key in a near fieldd2d communication system | |
WO2016101441A1 (zh) | 一种进行文件同步的方法及系统 | |
WO2018076867A1 (zh) | 数据备份的删除方法、装置、系统、存储介质和服务器 | |
WO2018076446A1 (zh) | 一种消息同步方法、装置及系统 | |
WO2018090465A1 (zh) | 视频监控方法、系统以及监控装置 | |
WO2017131441A1 (en) | Method and electronic device for providing tethering service | |
WO2016192589A1 (zh) | 一种信息传输方法、装置及系统 | |
WO2019235813A1 (en) | Electronic device supporting multiple wireless communication protocols and method therefor | |
WO2016192587A1 (zh) | 一种无线通信方法及装置 | |
WO2016053045A1 (ko) | 무선 통신 시스템의 단말기에서 데이터를 송수신하는 장치 및 방법 | |
WO2018053904A1 (zh) | 一种信息处理方法及终端 | |
EP2918138A1 (en) | Method and apparatus for providing web service in wireless communication system | |
WO2019143212A1 (en) | Electronic apparatus, terminal apparatus and method of controlling the same | |
WO2019041356A1 (zh) | 终端断电处理方法、设备及计算机可读存储介质 | |
WO2020180072A1 (ko) | 엣지 컴퓨팅 환경에서 어플리케이션 재배치를 제어하기 위한 장치 및 방법 | |
WO2020078383A1 (zh) | 基于蓝牙连接的模式切换方法、蓝牙设备、装置及系统 |
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: 16920349 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: 16920349 Country of ref document: EP Kind code of ref document: A1 |