CN106230709B - Method and device for distinguishing and synchronizing chat information - Google Patents

Method and device for distinguishing and synchronizing chat information Download PDF

Info

Publication number
CN106230709B
CN106230709B CN201610825449.0A CN201610825449A CN106230709B CN 106230709 B CN106230709 B CN 106230709B CN 201610825449 A CN201610825449 A CN 201610825449A CN 106230709 B CN106230709 B CN 106230709B
Authority
CN
China
Prior art keywords
chat information
screen state
synchronized
terminal
chat
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.)
Expired - Fee Related
Application number
CN201610825449.0A
Other languages
Chinese (zh)
Other versions
CN106230709A (en
Inventor
周德海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610825449.0A priority Critical patent/CN106230709B/en
Publication of CN106230709A publication Critical patent/CN106230709A/en
Application granted granted Critical
Publication of CN106230709B publication Critical patent/CN106230709B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes

Abstract

The embodiment of the invention discloses a method and a device for distinguishing and synchronizing chat information, wherein the method can comprise the following steps: monitoring whether a target social account has chat information to be synchronized or not under the condition that the target social account logs in on a plurality of terminal devices; when monitoring that the chat information of the target social contact account needs to be synchronized, acquiring a screen state of a terminal device which needs to synchronize the chat information from the plurality of terminal devices, wherein the screen state comprises a black screen state; and controlling not to synchronize the chat information to be synchronized to the first terminal equipment which needs to synchronize the chat information and has a screen state in a black screen state. By adopting the method and the device, the problem that in the prior art, the chat information of the same social account is not displayed on different terminal devices in a different and synchronous manner, so that inconvenience is brought under certain application scenes is solved, and user experience is improved.

Description

Method and device for distinguishing and synchronizing chat information
Technical Field
The invention relates to the technical field of electronics, in particular to a method and a device for distinguishing and synchronizing chat information.
Background
With the development of internet technology and the continuous improvement of living standard of people, the use of various network applications is more and more popular, and the network chat has become an indispensable communication entertainment tool in people's life. In social applications, particularly in mobile social network applications, most social tools, such as QQ, WeChat, strange and the like, are virtual characters corresponding to one account, and a user logs in with one account, and relevant information corresponding to the account can be obtained regardless of which terminal logs in with the account.
For example, with the continuous improvement and progress of QQ applications, the QQ is newly added with a message synchronization function, which means that a user can see his/her chat records, such as online chatting, transmitting video files, voice files, and other chat records, by logging in his/her same account on various intelligent devices (mobile phones, computers, pads, etc.). That is, all chat messages generated by the account can be synchronized on each terminal logging in the account. For example, when a user uses a computer, the computer is lighted, the mobile phone is not used, and the mobile phone is in a black screen state, if messages are displayed on the computer and the mobile phone, the user may not view the messages through the currently unused mobile phone at all, and electricity of the mobile phone which is not needed to be used at present may be wasted.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method and an apparatus for differentiated synchronization of chat information, which can solve the problem in the prior art that chat information of the same social account is displayed on different terminal devices in a non-differentiated and synchronous manner, which causes inconvenience in some application scenarios.
In a first aspect, an embodiment of the present invention provides a method for differentiated synchronization of chat messages, where the method may include:
monitoring whether a target social account has chat information to be synchronized or not under the condition that the target social account logs in on a plurality of terminal devices;
when monitoring that the chat information of the target social contact account needs to be synchronized, acquiring a screen state of a terminal device which needs to synchronize the chat information from the plurality of terminal devices, wherein the screen state comprises a black screen state;
and controlling not to synchronize the chat information to be synchronized to the first terminal equipment which needs to synchronize the chat information and has a screen state in a black screen state.
In a second aspect, an embodiment of the present invention provides a device for differentiated synchronization of chat messages, which may include:
the system comprises a monitoring module, a synchronization module and a synchronization module, wherein the monitoring module is used for monitoring whether a target social account has chat information to be synchronized or not under the condition that the target social account logs in a plurality of terminal devices;
the obtaining module is used for obtaining the screen state of a terminal device which needs to synchronize the chat information in the plurality of terminal devices when the chat information to be synchronized in the target social contact account is monitored, wherein the screen state comprises a black screen state;
and the first control module is used for controlling not to synchronize the chat information to be synchronized to the first terminal equipment which needs to synchronize the chat information and has a screen state in a black screen state.
In a third aspect, an embodiment of the present invention provides a terminal device, which may include:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform some or all of the steps described in any of the methods of the first aspect of the embodiments of the present invention.
In a fourth aspect, the present invention provides a computer storage medium for storing computer software instructions for an apparatus for differentiated synchronization of chat messages according to the second aspect of the present invention, which includes a program designed to execute the above aspects.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, whether the target social account has chat information to be synchronized or not is monitored under the condition that the target social account logs in a plurality of terminal devices; when monitoring that the chat information of the target social contact account needs to be synchronized, acquiring a screen state of a terminal device which needs to synchronize the chat information from the plurality of terminal devices, wherein the screen state comprises a black screen state; and controlling not to synchronize the chat information to be synchronized to the first terminal equipment which needs to synchronize the chat information and has a screen state in a black screen state. That is, when the same account of the user logs in a plurality of terminal devices, whether to synchronize the chat information to be synchronized to the terminal device is determined according to the current lighting or black screen state of the terminal device, so that the user can check the chat information in time and save the waste of network resources caused by unnecessary information synchronization.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a system architecture diagram for chat message synchronization provided by embodiments of the present invention;
fig. 2 is a flowchart illustrating a method for differentiated synchronization of chat messages according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating another method for differentiated synchronization of chat messages according to an embodiment of the present invention;
fig. 4a is a schematic diagram of a specific application scenario of the method for differentiated synchronization of chat messages according to the embodiment of the present invention;
fig. 4b is a schematic diagram of another specific application scenario of the method for chat message differential synchronization according to the embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for differentiated synchronization of chat messages according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for differentiated synchronization of chat messages according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another embodiment of the terminal device provided by the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and 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 following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Hereinafter, some terms in the present application are explained to facilitate understanding by those skilled in the art.
1) A terminal device, also called a User Equipment (UE), is a device providing voice and/or data connectivity to a User, such as a handheld device with a wireless connection function, a vehicle-mounted device, and so on. Common terminal devices include, for example: a Mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), a wearable device, an intelligent bracelet, a pedometer, an MP3 player (Moving Picture Experts group Audio Layer III, motion Picture Experts compression standard Audio Layer 3), an MP4 player (Moving Picture expert Audio Layer IV, motion Picture Experts compression standard Audio Layer 3), a Personal Digital Assistant (PDA), a laptop computer, and the like.
2) The Application program may be Application software (APP), which refers to a computer program for completing one or more specific tasks, i.e., various programming languages that a user can use, and a set of Application programs compiled by using various programming languages, and is divided into an Application software package and a user program, for example, Application software under various operating systems on a mobile phone or a computer; or may refer to an executable application program having some functions in the operating system itself of the terminal device.
3) "plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In order to facilitate understanding of the embodiments of the present invention, a system architecture provided by the embodiments of the present invention is described below. Referring to fig. 1, fig. 1 is a schematic diagram of a system architecture for synchronizing chat messages according to an embodiment of the present invention. As shown in fig. 1, a system architecture provided in an embodiment of the present invention is an architecture for providing a communication service based on a client-server architecture, and the system architecture may include a social application server and a plurality of terminal devices, where both a sender terminal device and a receiver terminal device log in to the social application server through an Internet network to log in a related social account, that is, the sender terminal device sends chat information to be sent to the social application server first, and then the social application server sends the chat information to the receiver terminal device (or vice versa), so as to complete interaction of the chat information (such as text messages, voice messages, animation messages, video messages, transmission files, and the like) from the sender terminal device to the receiver terminal device. Specifically, when a user logs in on different terminal devices (such as a mobile phone, a computer, a pad, and the like) by using the same social account (for example, various social applications such as QQ, WeChat, strange, and the like) (which may be the same or different after the existence of the same), the social application server synchronizes chat messages (which may be a certain period of time or all periods of time) corresponding to the social account to all the terminal devices that log in the social account, that is, all the chat messages generated by the account can be synchronized on each terminal that logs in the account. The embodiments of the present invention are based on the above system architecture and technical background, and in some special cases, a user may not want all messages to be synchronized on all terminals, so as to improve the user experience.
It should also be understood that the system architecture in fig. 1 is only a preferred implementation manner in the embodiment of the present invention, and the system architecture in the embodiment of the present invention includes, but is not limited to, the above system architecture, as long as the system architecture can implement the differentiated synchronization of chat information in the present invention, and all of the system architectures are within the scope protected and covered by the present invention.
Fig. 2 is a flowchart illustrating a method for differentiated synchronization of chat messages according to an embodiment of the present invention, and the method for differentiated synchronization of chat messages according to an embodiment of the present invention is described in detail below with reference to fig. 2 from a controller or a processor of a social application server or a terminal device, where the method includes the following steps S201 to S203.
Step S201: monitoring whether the target social account has chat information to be synchronized or not under the condition that the target social account logs in on a plurality of terminal devices.
Specifically, in each embodiment of the present invention, when a target social account logs in to multiple terminal devices, the target social account can be divided into two cases, one case is: a user logs in own social account number on a plurality of terminal devices at the same time, for example, the user logs in own QQ number on a mobile phone and a tablet personal computer respectively; the other method is to use different terminal devices to log in the same account in different time periods, for example, a user logs in the own QQ number on a mobile phone at 9 am, and logs in the own QQ number on a tablet computer at 11 am after quitting at 10 am. In both cases, synchronous chat information is needed, the former can be understood as mutual synchronization between the mobile phone and the tablet computer, that is, the mobile phone synchronizes the chat information on the tablet computer, and the tablet computer also synchronizes the chat information on the mobile phone, at this time, the synchronization is mutual for the mobile phone and the tablet computer; the latter can be understood that the user uses the mobile phone to receive the chat information in the morning first, and then the user uses the tablet computer to log in later, the chat information received in the morning on the mobile phone is synchronized, and at the moment, the tablet computer is equivalent to the chat information on the synchronous mobile phone.
That is, it can be simply understood that, for the same chat message (sent or received), the terminal device which logs in to obtain the chat message always sends or receives the chat message on the terminal device of the chat message first (or within a period of time, or all) in synchronization, specifically, the authority (such as a common identity or a member identity) of the target social account is to be watched; if there are two or more terminal devices that acquire the chat information at the same time for the same chat message (sent or received), it can be considered that the two or more terminal devices synchronize the chat information on any one of the terminal devices. For example, not all of the plurality of terminal devices need to synchronize chat information, for example, the terminal device 1 has displayed at 9 o' clock 9: and 00 to 9:30, if the terminal device 9:30 logs in at this time, although both the terminal device 1 and the terminal device 2 log in the target social account, only the terminal device 2 needs to synchronize 9: chat messages of 00 to 9:30 (chat messages to be synchronized). Therefore, not all terminal devices logging in the target social account need to synchronize the information to be chatted. To sum up, in the embodiment of the present invention, for the same chat message (if it is the current time), when a plurality of terminal devices all have logged in the target social account currently, the plurality of terminal devices all need to be synchronized with each other; for the same chat message (if the current time is the current time), the plurality of terminal devices log in before the current time, and also log in after the current time, the later log-in needs to be synchronized, and the earlier log-in does not need to be synchronized.
Based on the above, under the condition that the target social account logs in the plurality of terminal devices, monitoring whether the target social account has chat information to be synchronized, including monitoring whether the later logged terminal device needs to synchronize the chat information (chat records) received or sent by the terminal device logged in before when the plurality of terminals log in the target social account successively; when a plurality of terminal devices log in the target social account at the same time, all instant chat information which is required to be synchronized currently by the terminal devices to log in at the same time is also included.
It should be noted that, in each embodiment of the present invention, if the execution of the action is performed from the controller or the processor side of the terminal device, it may be considered that each terminal device actively participates in the control through the controller or the processor, and as for the control of the action other than itself, it may be understood that a control instruction or a signal is uploaded to the social application server and then transferred to the corresponding other terminal devices by the social application server; if the chat application server side is understood to execute the chat message, the social application server may be understood as a control-oriented action execution subject in the chat message synchronization system. The present invention is not particularly limited in this regard.
Step S202: when monitoring that the target social contact account has chat information to be synchronized, acquiring a screen state of a terminal device which needs to synchronize the chat information from the plurality of terminal devices, wherein the screen state comprises a black screen state.
Specifically, if it is determined that the chat information needs to be synchronized in step S201, the current screen state of the terminal device that needs to synchronize the chat information among the terminal devices that log in the target social account is obtained, so as to subsequently determine whether to send the chat information to be synchronized to the terminal device, thereby avoiding that some terminal devices are frequently turned on to waste power consumption of the terminal device due to the synchronization of the chat information to be synchronized in a black screen state.
Step S203: and controlling not to synchronize the chat information to be synchronized to the first terminal equipment which needs to synchronize the chat information and has a screen state in a black screen state.
Specifically, the terminal device with the screen state in the black screen state is determined as the target terminal device (that is, the terminal device which the user may not use currently), so that the chat information to be synchronized is controlled not to be synchronized to the first terminal device, and thus the network burden and the memory occupation burden on the related terminal device are reduced.
In the embodiment of the invention, whether the target social account has chat information to be synchronized or not is monitored under the condition that the target social account logs in a plurality of terminal devices; when monitoring that the chat information of the target social contact account needs to be synchronized, acquiring a screen state of a terminal device which needs to synchronize the chat information from the plurality of terminal devices, wherein the screen state comprises a black screen state; and controlling not to synchronize the chat information to be synchronized to the first terminal equipment which needs to synchronize the chat information and has a screen state in a black screen state. That is, when the same account of the user logs in a plurality of terminal devices, whether to synchronize the chat information to be synchronized to the terminal device is determined according to the current lighting or black screen state of the terminal device, so that the user can check the chat information in time and save the waste of network resources caused by unnecessary information synchronization.
Fig. 3 is a flowchart illustrating another method for differentiated synchronization of chat messages according to an embodiment of the present invention, and the following step S301 to step S307 may be included in the method for differentiated synchronization of chat messages according to an embodiment of the present invention, which is described in detail below with reference to fig. 3 from a controller or a processor of a social application server or a terminal device, as shown in fig. 3.
Step S301: monitoring whether the target social account has chat information to be synchronized or not under the condition that the target social account logs in on a plurality of terminal devices.
Step S302: and when the chat information to be synchronized of the target social contact account is monitored, sending a screen state acquisition instruction to the terminal equipment which needs to synchronize the chat information in the plurality of terminal equipment.
Step S303: and receiving a black screen state or a lighting state fed back by the terminal equipment needing to synchronize the chat information in the plurality of terminal equipment.
Step S304: and controlling not to synchronize the chat information to be synchronized to the first terminal equipment which needs to synchronize the chat information and has a screen state in a black screen state.
Specifically, if the terminal device is in the black screen state, it indicates that the terminal device may not be in use, and therefore synchronization is not performed temporarily.
Step S305: and controlling to synchronize the chat information to be synchronized to a second terminal device which needs to synchronize the chat information and has a screen state in a lighting state.
Specifically, if the terminal device is in the lit state, it indicates that it is likely that the terminal device is being used, and therefore synchronization is possible.
Step S306: and sending prompt information to the first terminal equipment, wherein the prompt information is used for prompting that the chat information to be synchronized is synchronized to the second terminal equipment.
Specifically, as a humanized setting, the prompt message can be sent to the first terminal device under the condition that the chat messages to be synchronized are not synchronized with the first terminal device and are synchronized with the second terminal device, so that the user is notified to go to the second terminal device for viewing, and the chat messages can be ensured not to be missed under the condition that the chat messages are reasonably synchronized.
Step S307: and if the first terminal equipment is detected to be switched from the black screen state to the lighting state, synchronizing the chat information to be synchronized to the first terminal equipment.
Specifically, if the first terminal device is switched from the black screen state to the lighting state, it may be considered that the terminal device may start to be used by the user, that is, the chat information to be synchronized may be synchronized to the first terminal device.
As shown in fig. 4a, fig. 4a is a schematic view of a specific application scenario of the method for differentiating and synchronizing chat information according to the embodiment of the present invention, and in fig. 4a, for example, a user is currently chatting through a device of type a, and after determining that a current screen state of the device of type a is a black screen; as shown in fig. 4B, fig. 4B is a schematic view of another specific application scenario of the method for differentiating and synchronizing chat information according to the embodiment of the present invention, in fig. 4B, a user logs in a target social account through a type B device, and also performs the same chat content, but after determining that the current screen state of the type B device is a lighting state, the type B device in the lighting state may be synchronized normally, but the type a device in the black screen state is not displayed temporarily, further, a specific number and a terminal device type that has been displayed synchronously may be displayed, and an option that the user may further view the chat information completely is provided to facilitate the user to view the chat information on the target terminal device, so as to improve user experience.
In the embodiment of the invention, whether the target social account has chat information to be synchronized or not is monitored under the condition that the target social account logs in a plurality of terminal devices; when monitoring that the chat information of the target social contact account needs to be synchronized, acquiring a screen state of a terminal device which needs to synchronize the chat information from the plurality of terminal devices, wherein the screen state comprises a black screen state; and controlling not to synchronize the chat information to be synchronized to the first terminal equipment which needs to synchronize the chat information and has a screen state in a black screen state. That is, when the same account of the user logs in a plurality of terminal devices, whether to synchronize the chat information to be synchronized to the terminal device is determined according to the current lighting or black screen state of the terminal device, so that the user can check the chat information in time and save the waste of network resources caused by unnecessary information synchronization.
An embodiment of the present invention further provides a device 10 for differentiating and synchronizing chat messages, as shown in fig. 5, fig. 5 is a schematic structural diagram of the device for differentiating and synchronizing chat messages in the embodiment of the present invention, and the structure of the device 10 for differentiating and synchronizing chat messages will be described in detail below with reference to fig. 5. The apparatus 10 may include: a monitoring module 101, an acquisition module 102 and a first control module 103, wherein
The system comprises a monitoring module 101, a chat module and a chat module, wherein the monitoring module is used for monitoring whether a target social account has chat information to be synchronized or not under the condition that the target social account logs in a plurality of terminal devices;
an obtaining module 102, configured to obtain a screen state of a terminal device that needs to synchronize chat information among the plurality of terminal devices when monitoring that the target social account has chat information to be synchronized, where the screen state includes a black screen state;
the first control module 103 is configured to control not to synchronize the chat information to be synchronized to the first terminal device that needs to synchronize the chat information and has a screen state in a black screen state.
Specifically, as shown in fig. 6, which is a schematic structural diagram of another embodiment of the apparatus for differentially synchronizing chat messages provided by the present invention, the apparatus 10 may further include:
a synchronization module 104, configured to synchronize the chat information to be synchronized to the first terminal device if it is detected that the first terminal device is switched from a black screen state to a lighting state.
Further, the screen status includes a lighting status, and as shown in fig. 6, the obtaining module 102 may include:
a sending unit 1021, configured to send a screen state obtaining instruction to a terminal device that needs to perform chat information synchronization among the plurality of terminal devices;
a receiving unit 1022, configured to receive a black screen status or a lighting status fed back by a terminal device that needs to synchronize chat information among the plurality of terminal devices.
Still further, the screen state includes a lighting state, and as shown in fig. 6, the apparatus may further include:
the second control module 105 is configured to control to synchronize the chat information to be synchronized to a second terminal device that needs to synchronize the chat information and has a screen status in a lighting status.
Still further, as shown in fig. 6, the apparatus may further include:
a prompt module 106, configured to send a prompt message to the first terminal device, where the prompt message is used to prompt that the chat information to be synchronized is synchronized to the second terminal device.
It is understood that, the functions of the modules in the device 10 for differentiating and synchronizing chat messages may refer to the specific implementation manners in the embodiments of the methods in fig. 1 to fig. 4, and are not described herein again.
In the present embodiment, the device 10 for chat message differential synchronization is presented in the form of a module. A "module" herein may refer to an application-specific integrated circuit (ASIC), a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that may provide the described functionality. Further, the monitoring module 101 and the first control module 103 may be implemented by the processor 201 of the terminal device shown in fig. 7, the obtaining module 102 may be implemented by the communication interface 203 of the terminal device shown in fig. 7, and the like.
An embodiment of the present invention further provides a terminal device 20, as shown in fig. 7, fig. 7 is a schematic structural diagram of the terminal device in the embodiment of the present invention, and the structure of the terminal device 20 will be described in detail below with reference to fig. 7. The terminal device 20 comprises at least one processor 201, at least one memory 202, at least one communication interface 203. The processor 201, the memory 202 and the communication interface 203 are connected through the communication bus and complete communication with each other.
The processor 201 may be a general purpose Central Processing Unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of programs according to the above schemes.
Communication interface 203 for communicating with other devices or communication Networks, such as ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), etc.
The Memory 202 may be a Read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these. The memory may be self-contained and coupled to the processor via a bus. The memory may also be integral to the processor.
The memory 202 is used for storing application program codes for executing the above scheme, and is controlled by the processor 201 to execute. The processor 201 is configured to execute application program code stored in the memory 202.
The memory 202 stores code that can perform the method for differentiated synchronization of chat messages of fig. 1-4 (including fig. 4a and 4b) performed by the terminal device provided above, such as monitoring whether the target social account has chat messages to be synchronized in the case that the target social account logs in on multiple terminal devices; when monitoring that the chat information of the target social contact account needs to be synchronized, acquiring a screen state of a terminal device which needs to synchronize the chat information from the plurality of terminal devices, wherein the screen state comprises a black screen state; and controlling not to synchronize the chat information to be synchronized to the first terminal equipment which needs to synchronize the chat information and has a screen state in a black screen state.
It can be understood that, when the execution subject in each method embodiment of the present invention is a social application server, the structure diagram of the server is the same as the structure diagram of the terminal device, and details are not repeated here.
Referring to fig. 8, fig. 8 is a schematic structural diagram of another embodiment of a terminal device according to an embodiment of the present invention. The terminal device 30 may be an intelligent mobile terminal (e.g. a mobile phone), and the terminal device 30 includes: radio Frequency (RF) circuitry 301, memory 302 storing one or more computer programs, input devices 303, output devices 304, sensors 305, audio circuitry 306, wireless fidelity (WiFi) module 307, processor 308 including one or more processing cores, and power supply 303. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 8 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 301 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information of a base station and then processing the received downlink information by the one or more processors 308; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 301 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 301 may also communicate with a network or other terminal device through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), etc.
The memory 302 may be used to store computer programs and modules, and the processor 308 executes various functional applications and data processing by executing the computer programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the terminal device 30 (such as a photographed photograph, audio data, video data, etc.), and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 308 and the input device 303 access to the memory 302.
The input device 303 may be used to receive entered numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input means 303 may comprise a touch sensitive surface 3031 as well as other input devices 3032. Touch-sensitive surface 3031, also referred to as a touch display panel or touchpad, may collect touch operations by a user on or near touch-sensitive surface 3031 (e.g., operations by a user on or near touch-sensitive surface 3031 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, touch sensitive surface 3031 may include both touch sensing devices and touch controllers. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 308, and can receive and execute commands sent by the processor 308. Additionally, touch sensitive surface 3031 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input means 303 may comprise other input devices 3032 in addition to the touch-sensitive surface 3031. In particular, other input devices 3032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The output means 304 may be used to display information input by or provided to the user, as well as various graphical user interfaces of the terminal device 30, which may be made up of graphics, text, icons, video, and any combination thereof. The output device 304 may include a display panel 3041, and optionally, the display panel 3041 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like. Further, touch-sensitive surface 3031 may overlay display panel 3041 and, when touch-sensitive surface 3031 detects a touch operation thereon or thereabout, communicate to processor 308 to determine the type of touch event, and processor 308 then provides a corresponding visual output on display panel 3041 in accordance with the type of touch event. Although in FIG. 8, touch-sensitive surface 3031 and display panel 3041 are implemented as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 3031 may be integrated with display panel 3041 to implement input and output functions.
The terminal device 30 may also include at least one sensor 305, such as a distance sensor, a light sensor, a motion sensor, and other sensors. Specifically, the distance sensor is used for detecting the distance between the screen of the terminal device and an object covering the terminal device, and the optical sensor is used for detecting an optical signal of the external environment of the terminal device. As one of the motion sensors, the gravity acceleration sensor may detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when stationary, and may be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of the terminal device 30, and related functions (such as pedometer and tapping) for vibration recognition; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the terminal device 30, detailed descriptions thereof are omitted.
Audio circuitry 306, speaker 3061, microphone 3062 may provide an audio interface between the user and terminal device 30. The audio circuit 306 may transmit the electrical signal converted from the received audio data to the speaker 3061, and convert the electrical signal into a sound signal by the speaker 3061 and output the sound signal; on the other hand, the microphone 3062 converts collected sound signals into electrical signals, which are received by the audio circuit 306 and converted into audio data, which are then processed by the audio data output processor 308, either via the RF circuit 301 for transmission to another device, for example, or output to the memory 302 for further processing. The audio circuitry 306 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 30.
WiFi belongs to short-distance wireless transmission technology, and the terminal device 30 can help the user send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 307, and it provides wireless broadband internet access for the user. Although fig. 8 shows the WiFi module 307, it is understood that it does not belong to the essential constitution of the terminal device 30, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 308 is a control center of the terminal device 30, connects various parts of the entire terminal device 30 by various interfaces and lines, and performs various functions of the terminal device 30 and processes data by running or executing computer programs and/or modules stored in the memory 302 and calling data stored in the memory 302, thereby performing overall monitoring of the terminal device 30. Optionally, processor 308 may include one or more processing cores; preferably, the processor 308 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 308.
The terminal device 30 further includes a power supply 303 (e.g., a battery) for supplying power to various components, which may preferably be logically connected to the processor 308 via a power management system, so as to manage charging, discharging, and power consumption via the power management system. The power supply 303 may also include any component or components of a direct or alternating current power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 30 may further include a camera, a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment of the present invention, the output device 304 (or the input device 303) of the terminal device is a touch screen display, the terminal device 30 further includes a memory 302, a processor 308, and one or more computer programs, where the one or more computer programs are stored in the memory 302, and the processor 308 is configured to invoke the program for differentiating and synchronizing the chat information stored in the memory 302 (a non-volatile memory) to execute the procedures of the method steps in the foregoing method embodiments, which is not described herein again.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program includes some or all of the steps of any one of the chat information difference synchronization methods described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the combination of the above-mentioned method embodiments
The order of acts described is limited in that some steps may occur in other orders and concurrently with other steps apart from those illustrated and described herein, in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are explained by applying specific embodiments, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for differentiated synchronization of chat messages, comprising:
monitoring whether a target social account has chat information to be synchronized or not under the condition that the target social account logs in on a plurality of terminal devices, wherein when the plurality of terminal devices do not log in at the same time, the chat information to be synchronized comprises the chat information in a time period from the terminal login time logged before the current time to the current time, and controlling the terminal devices logged in after synchronizing the chat information to be synchronized to the current time without synchronizing the chat information to be synchronized to the terminal logged before the current time;
when monitoring that the chat information of the target social contact account needs to be synchronized, acquiring a screen state of a terminal device which needs to synchronize the chat information from the plurality of terminal devices, wherein the screen state comprises a black screen state;
and not synchronizing the chat information to be synchronized to the first terminal equipment which needs to perform chat information synchronization and has a screen state in a black screen state, so as to avoid frequent lighting caused by synchronizing the chat information in the black screen state, wherein if the first terminal equipment is in the black screen state, the first terminal equipment is not used.
2. The method of claim 1, wherein the method further comprises:
and if the first terminal equipment is detected to be switched from the black screen state to the lighting state, synchronizing the chat information to be synchronized to the first terminal equipment.
3. The method of claim 1 or 2, wherein the screen state comprises a lighted state; the acquiring the screen state of the terminal device which needs to synchronize the chat information among the plurality of terminal devices includes:
sending a screen state acquisition instruction to a terminal device which needs to carry out chat information synchronization in the plurality of terminal devices;
and receiving a black screen state or a lighting state fed back by the terminal equipment needing to synchronize the chat information in the plurality of terminal equipment.
4. The method of claim 1, wherein the screen state comprises a lit state; the method further comprises the following steps:
and controlling to synchronize the chat information to be synchronized to a second terminal device which needs to synchronize the chat information and has a screen state in a lighting state.
5. The method of claim 4, wherein the method further comprises:
and sending prompt information to the first terminal equipment, wherein the prompt information is used for prompting that the chat information to be synchronized is synchronized to the second terminal equipment.
6. An apparatus for differentiated synchronization of chat messages, comprising:
the system comprises a monitoring module, a synchronization module and a synchronization module, wherein the monitoring module is used for monitoring whether a target social account has chat information to be synchronized or not under the condition that the target social account logs in a plurality of terminal devices, when the plurality of terminal devices do not log in at the same time, the chat information to be synchronized comprises the chat information in a time period from the terminal login time logged before the current time to the current time, and the terminal devices logged in after the chat information to be synchronized are controlled to be synchronized to the current time without synchronizing the chat information to be synchronized to the terminal logged before the current time;
the obtaining module is used for obtaining the screen state of a terminal device which needs to synchronize the chat information in the plurality of terminal devices when the chat information to be synchronized in the target social contact account is monitored, wherein the screen state comprises a black screen state;
the first control module is used for not synchronizing the chat information to be synchronized to the first terminal equipment which needs to perform chat information synchronization and has a screen state in a black screen state, so as to avoid frequent lighting caused by synchronizing the chat information in the black screen state, wherein if the first terminal equipment is in the black screen state, the first terminal equipment is not used.
7. The apparatus of claim 6, wherein the apparatus further comprises:
and the synchronization module is used for synchronizing the chat information to be synchronized to the first terminal equipment if the first terminal equipment is detected to be switched from the black screen state to the lighting state.
8. The apparatus of claim 6 or 7, wherein the screen state comprises a lit state; the acquisition module includes:
a sending unit, configured to send a screen state acquisition instruction to a terminal device that needs to synchronize chat information among the plurality of terminal devices;
and the receiving unit is used for receiving the black screen state or the lighting state fed back by the terminal equipment which needs to carry out chat information synchronization in the plurality of terminal equipment.
9. The apparatus of claim 6, wherein the screen state comprises a lit state; the device further comprises:
and the second control module is used for controlling the chat information to be synchronized on a second terminal device which needs to synchronize the chat information and has a screen state in a lighting state.
10. The apparatus of claim 9, wherein the apparatus further comprises:
and the prompting module is used for sending prompting information to the first terminal device, wherein the prompting information is used for prompting that the chat information to be synchronized is synchronized to the second terminal device.
CN201610825449.0A 2016-09-14 2016-09-14 Method and device for distinguishing and synchronizing chat information Expired - Fee Related CN106230709B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610825449.0A CN106230709B (en) 2016-09-14 2016-09-14 Method and device for distinguishing and synchronizing chat information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610825449.0A CN106230709B (en) 2016-09-14 2016-09-14 Method and device for distinguishing and synchronizing chat information

Publications (2)

Publication Number Publication Date
CN106230709A CN106230709A (en) 2016-12-14
CN106230709B true CN106230709B (en) 2020-02-14

Family

ID=58076249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610825449.0A Expired - Fee Related CN106230709B (en) 2016-09-14 2016-09-14 Method and device for distinguishing and synchronizing chat information

Country Status (1)

Country Link
CN (1) CN106230709B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106685807A (en) * 2017-01-09 2017-05-17 广东小天才科技有限公司 Display information method and server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102726104A (en) * 2010-01-26 2012-10-10 摩托罗拉移动公司 A mobile computing device and method for maintaining application continuity
CN103684980A (en) * 2012-09-17 2014-03-26 阿里巴巴集团控股有限公司 Method and system for synchronizing chatting records in instant chat tool
CN105471716A (en) * 2015-12-17 2016-04-06 网易(杭州)网络有限公司 Method for achieving message synchronization across clients, user equipment and server
CN105528366A (en) * 2014-09-30 2016-04-27 阿里巴巴集团控股有限公司 A data synchronization control method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8688826B2 (en) * 2009-11-30 2014-04-01 Motorola Mobility Llc Mobile computing device and method with intelligent pushing management
KR101763887B1 (en) * 2011-01-07 2017-08-02 삼성전자주식회사 Contents synchronization apparatus and method for providing synchronized interaction
CN104914976A (en) * 2014-03-12 2015-09-16 中兴通讯股份有限公司 Data processing method, data processing device and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102726104A (en) * 2010-01-26 2012-10-10 摩托罗拉移动公司 A mobile computing device and method for maintaining application continuity
CN103684980A (en) * 2012-09-17 2014-03-26 阿里巴巴集团控股有限公司 Method and system for synchronizing chatting records in instant chat tool
CN105528366A (en) * 2014-09-30 2016-04-27 阿里巴巴集团控股有限公司 A data synchronization control method and device
CN105471716A (en) * 2015-12-17 2016-04-06 网易(杭州)网络有限公司 Method for achieving message synchronization across clients, user equipment and server

Also Published As

Publication number Publication date
CN106230709A (en) 2016-12-14

Similar Documents

Publication Publication Date Title
CN106686396B (en) Method and system for switching live broadcast room
KR101978590B1 (en) Message updating method, device and terminal
CN106878406B (en) Information sharing method, device and system
CN106209608B (en) Method and device for distinguishing and synchronizing chat information
CN106293308B (en) Screen unlocking method and device
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN105094501B (en) Method, device and system for displaying messages in mobile terminal
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN110673770B (en) Message display method and terminal equipment
CN106453514B (en) Method and device for distinguishing and synchronizing chat information
CN106211102B (en) Method and device for distinguishing and synchronizing chat information
CN106302130B (en) A kind of method and device that chat message difference is synchronous
CN106484563B (en) Data migration method and terminal equipment
CN106357512B (en) Method and device for distinguishing and synchronizing chat information
CN106302101B (en) Message reminding method, terminal and server
WO2015135457A1 (en) Method, apparatus, and system for sending and playing multimedia information
CN106792434B (en) Hotspot establishing method and terminal equipment
CN106909295B (en) Application processing method and terminal
CN105991510B (en) Method, device and system for synchronizing session between multiple terminals
CN106230709B (en) Method and device for distinguishing and synchronizing chat information
CN109728918B (en) Virtual article transmission method, virtual article reception method, device, and storage medium
CN106357513B (en) Message processing method, device, server and message processing system
CN106302131B (en) A kind of synchronous method and device of chat message difference
CN106657278B (en) Data transmission method and device and computer equipment
CN111083285A (en) Mobile terminal call positioning system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200214