A network system, wherein the network system comprises a synchronization server, a terminal device, and a push server, wherein:
- the synchronization server comprises at least one memory, at least one processor coupled to the at least one memory, and to,
- determine a terminal device associated with a user, among terminal devices associated with the user, needs to perform file content synchronization of a file content, in response to a determination of a change including addition, deletion and/or modification in connection with the file content, the terminal device including a synchronization application invocable to perform the file content synchronization and registered by a first registration at least with the push server;
- determining initiation of a synchronization operation for the terminal device, in response to receiving, by the synchronization server from the terminal device, second registration information including a unique identifier of the terminal device and a unique identifier of the synchronization application generated by the push server to perform a second registration of the synchronization application with the synchronization server, the synchronization operation to determine whether the terminal device needs to perform a file content synchronization according to the second registration information including the unique identifier of the terminal device and the unique identifier of the synchronization application;
- and
- in response to a determining that the terminal device needs to perform the file content synchronization, send a first synchronization message to the push server, wherein the first synchronization message comprises the unique identifier of the terminal device that needs to perform the file content synchronization, the unique identifier of the synchronization application, a command word for the synchronization application, and auxiliary information,
- wherein the command word is used to indicate a synchronization operation that needs to be performed by the terminal device that needs to perform the file content synchronization, and the auxiliary information comprises a parameter for implementing the synchronization operation;
- the push server comprises at least one memory, at least one processor coupled to the at least one memory, and to,
- receive the first synchronization message sent by the synchronization server;
- parse the first synchronization message to obtain the unique identifier of the terminal device that needs to perform the file content synchronization;
- determine, according to the unique identifier of the terminal device that needs to perform the file content synchronization, whether the terminal device that needs to perform the file content synchronization is online;
- and
- send, when the terminal device that needs to perform the file content synchronization is online, a second synchronization message to the terminal device that needs to perform the file content synchronization, wherein the second synchronization message comprises the unique identifier of the synchronization application, the command word, and the auxiliary information;
- and
- the terminal device comprises at least one memory to store the synchronization application, at least one processor coupled to the at least one memory, and is to,
- receive the second synchronization message sent by the push server;
- and
- invoke the synchronization application to perform the file synchronization operation according to the unique identifier of the synchronization application, the command word, and the auxiliary information that are comprised in the second synchronization message,
- to register the synchronization application with at least the push server, the terminal device is to send first registration information to the push server before the synchronization server determines the terminal device that needs to perform file content synchronization, wherein the first registration information comprises a unique identifier of the terminal device and a synchronization application name;
- the push server is to receive the first registration information sent by the terminal device;
- and generate the unique identifier of the synchronization application according to the first registration information and send the unique identifier of the synchronization application to the terminal device;
- the terminal device is to receive the unique identifier of the synchronization application, and send second registration information to the synchronization server, wherein the second registration information comprises the unique identifier of the terminal device and the unique identifier of the synchronization application;
- and
- the synchronization server is to receive the second registration information sent by the terminal device.