CN106487650B - Message synchronization method and server - Google Patents
Message synchronization method and server Download PDFInfo
- Publication number
- CN106487650B CN106487650B CN201610826871.8A CN201610826871A CN106487650B CN 106487650 B CN106487650 B CN 106487650B CN 201610826871 A CN201610826871 A CN 201610826871A CN 106487650 B CN106487650 B CN 106487650B
- Authority
- CN
- China
- Prior art keywords
- terminal device
- message
- synchronized
- dialog box
- target terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/043—Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0815—Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the invention discloses a message synchronization method and a server; the method comprises the following steps: determining that a client of instant messaging software logs in a first terminal device and a second terminal device; after determining that the message to be synchronized needs to be synchronously sent, acquiring the state of the dialog box of the client; according to the state of the client dialog box, determining the terminal equipment where the dialog box in the activated state is located as target terminal equipment; and sending the message to be synchronized to the target terminal equipment. Before a server has a message to be synchronized to a terminal device, the message is only sent to the terminal device of which the dialog box is in an activated state through whether the dialog box of the instant messaging software is in the activated state, so that the terminal in an inactivated state cannot receive the message and further cannot send a prompt for receiving the message; message prompting in the terminal device can be reduced.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a message synchronization method and a server.
Background
At present, instant messaging software supports simultaneous login of multiple terminal devices, for example: logging in both the mobile phone and the computer.
Under the condition that both the mobile phone and the computer log on, the server can synchronize the information received and sent by the instant messaging software.
The synchronization is to send the information to the client of the instant messaging software on the mobile phone and the computer; that is, the client of the instant messaging software receives the information both on the mobile phone side and on the computer side.
By adopting the technical scheme, the mobile phone and the computer side receive the message and can prompt, so that the situation of disturbance to the user is caused, and unnecessary message prompt exists.
Disclosure of Invention
The embodiment of the invention provides a message synchronization method and a server, which are used for reducing message prompts in terminal equipment.
In one aspect, an embodiment of the present invention provides a message synchronization method, including:
determining that a client of instant messaging software logs in a first terminal device and a second terminal device;
after determining that the message to be synchronized needs to be synchronously sent, acquiring the state of the dialog box of the client;
according to the state of the client dialog box, determining the terminal equipment where the dialog box in the activated state is located as target terminal equipment;
and sending the message to be synchronized to the target terminal equipment.
In an optional implementation manner, the determining that the terminal device where the dialog box in the activated state is located is the target terminal device includes:
if the state of the client in a dialog box of first terminal equipment is an activated state, determining that the first terminal equipment is target terminal equipment;
or, if the state of the client in the dialog box of the second terminal device is the activated state, determining that the second terminal device is the target terminal device.
In an optional implementation, the method further includes:
temporarily storing the message to be synchronized;
and after receiving a message acquisition request sent by a non-target terminal device of the first terminal device and the second terminal device, sending the message to be synchronized to the non-target terminal device.
In an optional implementation manner, the first terminal device is a mobile phone, and the second terminal device is another terminal device other than the mobile phone; before the sending the message to be synchronized to the non-target terminal device, the method further includes:
and if the non-target terminal equipment is determined to be the first terminal equipment, executing the sending of the message to be synchronized to the non-target terminal equipment.
In an optional implementation manner, the first terminal device is a mobile phone, and the second terminal device is another terminal device other than the mobile phone; before the sending the message to be synchronized to the non-target terminal device, the method further includes:
and if the type of the non-target terminal equipment is determined to be the second terminal equipment, executing the sending of the message to be synchronized to the non-target terminal equipment after the user authentication of the instant messaging software is passed.
In another aspect, an embodiment of the present invention provides a server, including:
the login control unit is used for determining that the client of the instant messaging software logs in the first terminal device and the second terminal device;
the state acquisition unit is used for acquiring the state of the client dialog box after determining that the message to be synchronized needs to be synchronously sent;
the device determining unit is used for determining the terminal device where the dialog box in the activated state is located as the target terminal device according to the state of the client dialog box;
and the sending unit is used for sending the message to be synchronized to the target terminal equipment.
In an optional implementation manner, the device determining unit is specifically configured to determine that the first terminal device is a target terminal device if the state of the client in the dialog box of the first terminal device is an active state;
or, if the state of the client in the dialog box of the second terminal device is the activated state, determining that the second terminal device is the target terminal device.
In an optional implementation manner, the server further includes:
the storage unit is used for temporarily storing the message to be synchronized;
the sending unit is further configured to send the message to be synchronized to a non-target terminal device after the server receives a message acquisition request sent by the non-target terminal device of the first terminal device and the second terminal device.
In an optional implementation manner, the first terminal device is a mobile phone, and the second terminal device is another terminal device other than the mobile phone;
the sending unit is specifically configured to execute the sending of the message to be synchronized to the non-target terminal device if it is determined that the non-target terminal device is the first terminal device.
In an optional implementation manner, the first terminal device is a mobile phone, and the second terminal device is another terminal device other than the mobile phone;
the sending unit is specifically configured to determine that the type of the non-target terminal device is the second terminal device, and execute sending the message to be synchronized to the non-target terminal device after the user authentication of the instant messaging software is passed.
Embodiments of the present invention in three aspects provide a server, including: a receiving device, a transmitting device, a processor and a memory; the processor is configured to execute any one of the methods provided by the embodiments of the present invention.
According to the technical scheme, the embodiment of the invention has the following advantages: before a server has a message to be synchronized to a terminal device, the message is only sent to the terminal device of which the dialog box is in an activated state through whether the dialog box of the instant messaging software is in the activated state, so that the terminal in an inactivated state cannot receive the message and further cannot send a prompt for receiving the message; message prompting in the terminal device can be reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a server structure according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a server structure according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a server structure according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a server structure according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention is mainly used for the situation that the user is disturbed too much due to too much message prompt easily occurring under the condition that the instant messaging software logs in at multiple terminals, for example, the following application scenes are available:
the user logs in the instant messaging software on the mobile phone and also logs in the instant messaging software on the computer of the user; when a user uses a computer, the mobile phone is placed beside the computer, if the instant messaging software in the mobile phone is not used, the mobile phone and the computer can receive messages, and the mobile phone always prompts that the messages are received, so that trouble is caused to the user. A solution is provided based on this embodiment of the invention.
An embodiment of the present invention provides a message synchronization method, as shown in fig. 1, including:
101: determining that a client of instant messaging software logs in a first terminal device and a second terminal device;
the technical scheme of the embodiment of the invention is realized at one side of the server, and can be an operator server of instant messaging software generally; the client login at the first terminal device and the second terminal device is detected. The embodiment of the present invention is not limited to the only way how to detect that the client of the instant messaging software logs in the first terminal device and the second terminal device.
102: after determining that the message to be synchronized needs to be synchronously sent, acquiring the state of the dialog box of the client;
the message to be synchronized needs to be sent synchronously, which means that the message needs to be sent to the clients of the instant messaging software of the first terminal device and the second terminal device simultaneously according to the established requirement. The state of the dialog box of the client has two states: an active state and an inactive state; the active state refers to a state that the dialog box is opened, and the dialog box can display a message or receive the message input of a user in the state; the other state is an active state, one of which is that the dialog box is in a closed state, and the other is that the dialog box is opened but the terminal device itself is in a screen-locked state. How to obtain the state of the dialog box of the client can be automatically reported by the client and can also be determined by the server. The embodiments of the present invention are not limited to these embodiments.
103: according to the state of the client dialog box, determining the terminal equipment where the dialog box in the activated state is located as target terminal equipment;
the target terminal device may be a first terminal device and may be a second terminal device, and the embodiment of the present invention is not limited uniquely. The application scenarios are in particular: the first terminal device is a mobile phone, the second terminal device is a personal computer, the target terminal device is a personal computer, and the non-target terminal device is a mobile phone.
104: and sending the message to be synchronized to the target terminal equipment.
It is understood that in the embodiment of the present invention, the server will not synchronize the above-mentioned message to be synchronized with the non-target terminal device.
In the embodiment of the invention, before the server has the message to be synchronized to the terminal equipment, the message is only sent to the terminal equipment with the dialog box in the activated state through whether the dialog box of the instant communication software is in the activated state, so that the terminal in the inactivated state cannot receive the message and further cannot send out the message receiving prompt; message prompting in the terminal device can be reduced.
In an optional implementation manner, the determining that the terminal device where the dialog box in the activated state is located is the target terminal device includes:
if the state of the client in a dialog box of first terminal equipment is an activated state, determining that the first terminal equipment is target terminal equipment;
or, if the state of the dialog box of the second terminal device at the client is the activated state, determining that the second terminal device is the target terminal device.
Since the user logs in the instant messaging software on two terminal devices at the same time, but the user only needs to see the message of one terminal device, the target terminal device application is preferably only one.
Further, for messages to be synchronized, the user does not have to send these messages to be synchronized to non-target terminal devices, for example: the user needs to archive the situations of the messages to be synchronized, so the embodiment of the invention provides the following solutions: the method further comprises the following steps:
temporarily storing the message to be synchronized;
and after receiving a message acquisition request sent by a non-target terminal device of the first terminal device and the second terminal device, sending the message to be synchronized to the non-target terminal device.
Further, the embodiment of the present invention further provides an implementation scheme of how to further synchronize the temporarily stored message to be synchronized to the non-target terminal based on different types of terminal devices, which specifically includes:
the first terminal device is a mobile phone, and the second terminal device is other terminal devices except the mobile phone; before the sending the message to be synchronized to the non-target terminal device, the method further includes:
and if the non-target terminal device is determined to be the first terminal device, executing the sending of the message to be synchronized to the non-target terminal device.
Secondly, the first terminal device is a mobile phone, and the second terminal device is other terminal devices except the mobile phone; before the sending the message to be synchronized to the non-target terminal device, the method further includes:
and if the type of the non-target terminal equipment is determined to be the second terminal equipment, after the user authentication of the instant messaging software is passed, executing the sending of the message to be synchronized to the non-target terminal equipment.
In the above embodiment, the mobile phone is a private device, so that the step of synchronous transmission can be directly executed, which is convenient for operation; however, other terminal devices except the mobile phone may be public devices, so that there may be risks in synchronization, and therefore, the risks are reduced by means of secondary authentication, and the security performance is improved.
As shown in fig. 2, an embodiment of the present invention further provides a flowchart based on interaction of a communication system, where the communication system includes three devices: mobile terminals, mobile phones, and personal computers; synchronization object of data to be synchronized: personal computers and cell phones; the control device: a server of a client operator of instant messaging software; the specific flow chart is as follows:
201. the instant communication software logs in the mobile phone and the personal computer at the same time;
the dialog boxes of the instant messaging software on the mobile phone and the personal computer are possibly in an inactive state.
202. If the message to be synchronized needs to be sent to the client of the instant messaging software, firstly, judging which dialog box of the instant messaging software of the terminal equipment is in an activated state; this terminal device is taken as the target terminal device.
Theoretically, the target terminal device here may be a mobile phone or a personal computer, and may also be a mobile phone and a personal computer. The former is of greater interest to this embodiment.
203. And sending the message to be synchronized to the target terminal equipment, and not sending the message to the other terminal equipment. The messages to be synchronized are temporarily stored.
Based on the steps, the mobile phone and the personal computer send the message to be synchronized to the mobile phone and the personal computer which message dialog box is in the activated state;
therefore, another terminal device has many messages which are not received, and the server can temporarily store the messages which are not received;
204. and determining a synchronization mode according to the type of the terminal which does not receive the message.
204, the following may be specifically mentioned:
if the personal computer does not receive the message, the user is required to pass the authentication for the second time and select synchronization, and then the information is sent to the personal computer; if the mobile phone does not receive the message, the number of the temporarily stored messages can be displayed after a dialog box of instant messaging software of the mobile phone is activated, and if the user wants to see (such as sliding upwards or clicking the number to expand), the temporarily stored messages are sent to the mobile phone.
An embodiment of the present invention further provides a server, as shown in fig. 3, including:
a login control unit 301, configured to determine that a client of the instant messaging software logs in a first terminal device and a second terminal device;
a state obtaining unit 302, configured to obtain a state of the client dialog box after determining that a message to be synchronized needs to be synchronously sent;
a device determining unit 303, configured to determine, according to the state of the client dialog box, that the terminal device where the dialog box in the activated state is located is a target terminal device;
a sending unit 304, configured to send the message to be synchronized to the target terminal device.
The technical scheme of the embodiment of the invention is realized at one side of the server, and can be an operator server of instant messaging software generally; the client login at the first terminal device and the second terminal device is detected. The embodiment of the present invention is not limited to the only way how to detect that the client of the instant messaging software logs in the first terminal device and the second terminal device.
The message to be synchronized needs to be sent synchronously, which means that the message needs to be sent to the clients of the instant messaging software of the first terminal device and the second terminal device simultaneously according to the established requirement. The state of the dialog box of the client has two states: an active state and an inactive state; the active state refers to a state that the dialog box is opened, and the dialog box can display a message or receive the message input of a user in the state; the other state is an active state, one of which is that the dialog box is in a closed state, and the other is that the dialog box is opened but the terminal device itself is in a screen-locked state. How to obtain the state of the dialog box of the client can be automatically reported by the client and can also be determined by the server. The embodiments of the present invention are not limited to these embodiments.
The target terminal device may be a first terminal device and may be a second terminal device, and the embodiment of the present invention is not limited uniquely. The application scenarios are in particular: the first terminal device is a mobile phone, the second terminal device is a personal computer, the target terminal device is a personal computer, and the non-target terminal device is a mobile phone.
It is understood that in the embodiment of the present invention, the server will not synchronize the above-mentioned message to be synchronized with the non-target terminal device.
In the embodiment of the invention, before the server has the message to be synchronized to the terminal equipment, the message is only sent to the terminal equipment with the dialog box in the activated state through whether the dialog box of the instant communication software is in the activated state, so that the terminal in the inactivated state cannot receive the message and further cannot send out the message receiving prompt; message prompting in the terminal device can be reduced.
In an optional implementation manner, the device determining unit 303 is specifically configured to determine that the first terminal device is a target terminal device if the state of the client in the dialog box of the first terminal device is an active state;
or, if the state of the dialog box of the second terminal device at the client is the activated state, determining that the second terminal device is the target terminal device.
Since the user logs in the instant messaging software on two terminal devices at the same time, but the user only needs to see the message of one terminal device, the target terminal device application is preferably only one.
Further, for messages to be synchronized, the user does not have to send these messages to be synchronized to non-target terminal devices, for example: the user needs to archive the situations of the messages to be synchronized, so the embodiment of the invention provides the following solutions: as shown in fig. 4, the server further includes:
a storage unit 401, configured to temporarily store the message to be synchronized;
the sending unit 304 is further configured to send the message to be synchronized to the non-target terminal device after the server receives a message acquisition request sent by the non-target terminal device of the first terminal device and the second terminal device.
Further, the embodiment of the present invention further provides an implementation scheme of how to further synchronize the temporarily stored message to be synchronized to the non-target terminal based on different types of terminal devices, which specifically includes:
the first terminal device is a mobile phone, and the second terminal device is other terminal devices except the mobile phone;
the sending unit 304 is specifically configured to execute the sending of the message to be synchronized to the non-target terminal device when it is determined that the non-target terminal device is the first terminal device.
Secondly, the first terminal device is a mobile phone, and the second terminal device is other terminal devices except the mobile phone;
the sending unit 304 is specifically configured to determine that the type of the non-target terminal device is the second terminal device, and execute the sending of the message to be synchronized to the non-target terminal device after the user authentication of the instant messaging software passes.
An embodiment of the present invention further provides another server, as shown in fig. 5, including: a receiving device 501, a transmitting device 502, a processor 503, and a memory 504; the memory 504 may be used to provide a cache for the processor 503 during executing data processing, and may also be used to provide other storage spaces for messages to be synchronized, for example;
the processor 503 is configured to determine that the client of the instant messaging software logs in the first terminal device and the second terminal device; after determining that the message to be synchronized needs to be synchronously sent, acquiring the state of the dialog box of the client; according to the state of the client dialog box, determining the terminal equipment where the dialog box in the activated state is located as target terminal equipment; and sending the message to be synchronized to the target terminal equipment.
The technical scheme of the embodiment of the invention is realized at one side of the server, and can be an operator server of instant messaging software generally; the client login at the first terminal device and the second terminal device is detected. The embodiment of the present invention is not limited to the only way how to detect that the client of the instant messaging software logs in the first terminal device and the second terminal device.
The message to be synchronized needs to be sent synchronously, which means that the message needs to be sent to the clients of the instant messaging software of the first terminal device and the second terminal device simultaneously according to the established requirement. The state of the dialog box of the client has two states: an active state and an inactive state; the active state refers to a state that the dialog box is opened, and the dialog box can display a message or receive the message input of a user in the state; the other state is an active state, one of which is that the dialog box is in a closed state, and the other is that the dialog box is opened but the terminal device itself is in a screen-locked state. How to obtain the state of the dialog box of the client can be automatically reported by the client and can also be determined by the server. The embodiments of the present invention are not limited to these embodiments.
The target terminal device may be a first terminal device and may be a second terminal device, and the embodiment of the present invention is not limited uniquely. The application scenarios are in particular: the first terminal device is a mobile phone, the second terminal device is a personal computer, the target terminal device is a personal computer, and the non-target terminal device is a mobile phone.
It is understood that in the embodiment of the present invention, the server will not synchronize the above-mentioned message to be synchronized with the non-target terminal device.
In the embodiment of the invention, before the server has the message to be synchronized to the terminal equipment, the message is only sent to the terminal equipment with the dialog box in the activated state through whether the dialog box of the instant communication software is in the activated state, so that the terminal in the inactivated state cannot receive the message and further cannot send out the message receiving prompt; message prompting in the terminal device can be reduced.
In an optional implementation manner, the processor 503 is configured to determine that the terminal device where the dialog box in the active state is located is the target terminal device, and includes:
if the state of the client in a dialog box of first terminal equipment is an activated state, determining that the first terminal equipment is target terminal equipment;
or, if the state of the dialog box of the second terminal device at the client is the activated state, determining that the second terminal device is the target terminal device.
Since the user logs in the instant messaging software on two terminal devices at the same time, but the user only needs to see the message of one terminal device, the target terminal device application is preferably only one.
Further, for messages to be synchronized, the user does not have to send these messages to be synchronized to non-target terminal devices, for example: the user needs to archive the situations of the messages to be synchronized, so the embodiment of the invention provides the following solutions: the processor 503 is further configured to temporarily store the message to be synchronized;
and after receiving a message acquisition request sent by a non-target terminal device of the first terminal device and the second terminal device, sending the message to be synchronized to the non-target terminal device.
Further, the embodiment of the present invention further provides an implementation scheme of how to further synchronize the temporarily stored message to be synchronized to the non-target terminal based on different types of terminal devices, which specifically includes:
the first terminal device is a mobile phone, and the second terminal device is other terminal devices except the mobile phone; the processor 503 is further configured to, before the message to be synchronized is sent to the non-target terminal device, determine that the non-target terminal device is the first terminal device, and then execute the sending of the message to be synchronized to the non-target terminal device.
Secondly, the first terminal device is a mobile phone, and the second terminal device is other terminal devices except the mobile phone; the processor 503 is further configured to determine that the type of the non-target terminal device is the second terminal device before sending the message to be synchronized to the non-target terminal device, and then execute the sending of the message to be synchronized to the non-target terminal device after the user authentication of the instant messaging software passes.
Fig. 6 is a schematic diagram of a server structure provided by an embodiment of the present invention, where the server 600 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 622 (e.g., one or more processors) and a memory 632, and one or more storage media 630 (e.g., one or more mass storage devices) for storing applications 642 or data 644. Memory 632 and storage medium 630 may be, among other things, transient or persistent storage. The program stored in the storage medium 630 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 622 may be configured to communicate with the storage medium 630 and execute a series of instruction operations in the storage medium 630 on the server 600.
The server 600 may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input-output interfaces 658, and/or one or more operating systems 641, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.
The steps performed by the server in the above embodiments may be based on the server structure shown in fig. 6.
It should be noted that, in the above server embodiment, each included unit is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
In addition, it is understood by those skilled in the art that all or part of the steps in the above method embodiments may be implemented by related hardware, and the corresponding program may be stored in a computer readable storage medium, where the above mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the embodiment of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (5)
1. A message synchronization method, comprising:
determining that a client of instant messaging software logs in a first terminal device and a second terminal device;
after determining that the message to be synchronized needs to be synchronously sent, acquiring the state of the dialog box of the client;
according to the state of the client dialog box, determining the terminal equipment where the dialog box in the activated state is located as target terminal equipment;
sending the message to be synchronized to the target terminal equipment; not synchronizing the message to be synchronized to the non-target terminal equipment;
temporarily storing the message to be synchronized;
when the non-target terminal equipment is determined to be the first terminal equipment and the first terminal equipment is a mobile phone, displaying the number of the temporary storage messages after a dialog box of instant messaging software of the mobile phone is activated, and when the mobile phone receives an operation of sliding upwards or clicking the number to expand, sending the messages to be synchronized to the non-target terminal equipment;
and when the type of the non-target terminal equipment is determined to be the second terminal equipment, and the second terminal equipment is other terminal equipment except a mobile phone, executing the sending of the message to be synchronized to the non-target terminal equipment after the user authentication of the instant messaging software is passed.
2. The method according to claim 1, wherein the determining that the terminal device where the dialog box in the activated state is located is the target terminal device comprises:
if the state of the client in a dialog box of first terminal equipment is an activated state, determining that the first terminal equipment is target terminal equipment;
or if the state of the client in the dialog box of the second terminal device is the activated state, determining that the second terminal device is the target terminal device.
3. A server, comprising:
the login control unit is used for determining that the client of the instant messaging software logs in the first terminal device and the second terminal device;
the state acquisition unit is used for acquiring the state of the client dialog box after determining that the message to be synchronized needs to be synchronously sent;
the device determining unit is used for determining the terminal device where the dialog box in the activated state is located as the target terminal device according to the state of the client dialog box;
a sending unit, configured to send the message to be synchronized to the target terminal device; not synchronizing the message to be synchronized to the non-target terminal equipment;
the server further comprises:
the storage unit is used for temporarily storing the message to be synchronized;
the sending unit is further configured to send the message to be synchronized to a non-target terminal device after the server receives a message acquisition request sent by the non-target terminal device of the first terminal device and the second terminal device;
the first terminal equipment is a mobile phone, and the second terminal equipment is other terminal equipment except the mobile phone; the sending unit is specifically configured to determine that the non-target terminal device is the first terminal device, display the number of pieces of temporary storage messages after a dialog box of instant messaging software of a mobile phone is activated, and send the message to be synchronized to the non-target terminal device when the mobile phone receives an operation of sliding upwards or clicking the number of pieces to expand;
the sending unit is further specifically configured to determine that the type of the non-target terminal device is the second terminal device, and execute sending the message to be synchronized to the non-target terminal device after the user authentication of the instant messaging software is passed.
4. The server according to claim 3,
the device determining unit is specifically configured to determine that the first terminal device is a target terminal device if the state of the client in the dialog box of the first terminal device is an activated state;
or if the state of the client in the dialog box of the second terminal device is the activated state, determining that the second terminal device is the target terminal device.
5. A server, comprising: a receiving device, a transmitting device, a processor and a memory; characterized in that the processor is configured to perform the method of any of claims 1 to 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610826871.8A CN106487650B (en) | 2016-09-14 | 2016-09-14 | Message synchronization method and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610826871.8A CN106487650B (en) | 2016-09-14 | 2016-09-14 | Message synchronization method and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106487650A CN106487650A (en) | 2017-03-08 |
CN106487650B true CN106487650B (en) | 2020-01-14 |
Family
ID=58267246
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610826871.8A Active CN106487650B (en) | 2016-09-14 | 2016-09-14 | Message synchronization method and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106487650B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110198335A (en) * | 2018-08-30 | 2019-09-03 | 腾讯科技(深圳)有限公司 | Message synchronization method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102025648A (en) * | 2009-09-16 | 2011-04-20 | 腾讯科技(深圳)有限公司 | Instant messaging method and server |
CN102368764A (en) * | 2011-09-10 | 2012-03-07 | 上海量明科技发展有限公司 | Method for carrying out communication through multiple points of presence, system and client thereof |
CN102546640A (en) * | 2012-01-13 | 2012-07-04 | 百度在线网络技术(北京)有限公司 | Information circulation method and server in single-account number and multiple-device login |
CN102932439A (en) * | 2012-10-26 | 2013-02-13 | 华为终端有限公司 | Method and device for synchronizing content |
CN103326925A (en) * | 2012-03-23 | 2013-09-25 | 腾讯科技(深圳)有限公司 | Message push method and device |
CN103812755A (en) * | 2012-11-12 | 2014-05-21 | 腾讯科技(深圳)有限公司 | Message synchronization method and device in instant messaging application |
CN104144116A (en) * | 2014-07-16 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Instant messaging method and system |
-
2016
- 2016-09-14 CN CN201610826871.8A patent/CN106487650B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102025648A (en) * | 2009-09-16 | 2011-04-20 | 腾讯科技(深圳)有限公司 | Instant messaging method and server |
CN102368764A (en) * | 2011-09-10 | 2012-03-07 | 上海量明科技发展有限公司 | Method for carrying out communication through multiple points of presence, system and client thereof |
CN102546640A (en) * | 2012-01-13 | 2012-07-04 | 百度在线网络技术(北京)有限公司 | Information circulation method and server in single-account number and multiple-device login |
CN103326925A (en) * | 2012-03-23 | 2013-09-25 | 腾讯科技(深圳)有限公司 | Message push method and device |
CN102932439A (en) * | 2012-10-26 | 2013-02-13 | 华为终端有限公司 | Method and device for synchronizing content |
CN103812755A (en) * | 2012-11-12 | 2014-05-21 | 腾讯科技(深圳)有限公司 | Message synchronization method and device in instant messaging application |
CN104144116A (en) * | 2014-07-16 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Instant messaging method and system |
Also Published As
Publication number | Publication date |
---|---|
CN106487650A (en) | 2017-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9594496B2 (en) | Method and apparatus for playing IM message | |
US10193971B2 (en) | Method, server and system for application synchronization | |
US10530716B2 (en) | Voice chat mode self-adapting method and apparatus | |
US10492236B2 (en) | Method and device for establishing wireless connection | |
US9612886B2 (en) | Method and device for monitoring API function scheduling in mobile terminal | |
CN107864358B (en) | Shared object operation method in video call | |
CN104283926A (en) | Data synchronization method, device and server | |
US10623450B2 (en) | Access to data on a remote device | |
CN106034138A (en) | Remote service calling method and remote service calling device | |
US20210117306A1 (en) | Systems and methods for probing virtual, web and saas applications | |
CN111930565B (en) | Process fault self-healing method, device and equipment for components in distributed management system | |
CN110505072B (en) | Method, terminal device and computer readable medium for backing up chat records | |
CN105302486A (en) | Virtual offline desktop block device storage synchronization method | |
CN114363334B (en) | Cloud system, network configuration method, device and equipment of cloud desktop virtual machine | |
US20180091602A1 (en) | Method and system for operating and controlling data, and user terminal | |
CN104967527A (en) | Recovering method of communication recording, recovering device of communication recording and server | |
US20150120840A1 (en) | Resource referencing in a collaboration application system and method | |
CN106487650B (en) | Message synchronization method and server | |
US11741588B2 (en) | Systems and methods for visual anomaly detection in a multi-display system | |
EP3833153B1 (en) | Network connection methods and devices | |
US20210112025A1 (en) | Method and server for processing messages | |
CN107547221B (en) | Method and equipment for providing log information | |
CN114466401B (en) | Image transmission method and electronic equipment | |
US10516570B1 (en) | Systems and methods for tagging client devices | |
CN105407218B (en) | A kind of SMS processing method and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong Opel Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |