[go: up one dir, main page]

CN113918855A - Data synchronization method, electronic device and readable storage medium for multi-terminal applications - Google Patents

Data synchronization method, electronic device and readable storage medium for multi-terminal applications Download PDF

Info

Publication number
CN113918855A
CN113918855A CN202111128986.7A CN202111128986A CN113918855A CN 113918855 A CN113918855 A CN 113918855A CN 202111128986 A CN202111128986 A CN 202111128986A CN 113918855 A CN113918855 A CN 113918855A
Authority
CN
China
Prior art keywords
application
end application
schedule
data synchronization
desktop
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.)
Pending
Application number
CN202111128986.7A
Other languages
Chinese (zh)
Inventor
陈成
李建明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yonyou Network Technology Co Ltd
Original Assignee
Yonyou Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yonyou Network Technology Co Ltd filed Critical Yonyou Network Technology Co Ltd
Priority to CN202111128986.7A priority Critical patent/CN113918855A/en
Publication of CN113918855A publication Critical patent/CN113918855A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/14Two-way operation using the same type of signal, i.e. duplex
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a data synchronization method for multi-terminal application, electronic equipment and a readable storage medium. The data synchronization method of the multi-terminal application is used for the mobile phone terminal application, and comprises the steps of adopting instant messaging based on a full duplex communication protocol and distributing work notification to a desktop terminal application and/or a webpage terminal application under the condition of creating or modifying a schedule; and receiving a work notification sent by the desktop end application and/or the webpage end application, and notifying the schedule application through an application program interface function to update the related schedule under the condition that the work notification creates or modifies the schedule for the desktop end application and/or the webpage end application. According to the technical scheme, under the condition that the schedule is created or modified by the mobile phone side application, the desktop side application and/or the webpage side application can receive the schedule data without refreshing, the effect which can be achieved by the original application is achieved, and the user experience is greatly improved.

Description

Data synchronization method for multi-terminal application, electronic equipment and readable storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a data synchronization method for multi-terminal application, electronic equipment and a readable storage medium.
Background
In the related art, generally, data synchronization between a mobile phone side application, a web page side application (web application) and a desktop side application is performed, and after the mobile phone side application, the web page side application (web application) and the desktop side application are connected to an access terminal, data needs to be refreshed independently or manually by a user, so that the problems of poor user experience and complex operation exist.
Disclosure of Invention
The present invention is directed to solving or improving at least one of the above technical problems.
Therefore, a first object of the present invention is to provide a data synchronization method for a multi-end application.
The second objective of the present invention is to provide a data synchronization method for multi-end application.
A third object of the present invention is to provide an electronic apparatus.
A fourth object of the present invention is to provide a readable storage medium.
In order to achieve the first object of the present invention, the technical solution of the present invention provides a data synchronization method for a multi-end application, which is used for a mobile phone end application, and the data synchronization method includes: under the condition of creating or modifying the schedule, based on a full-duplex communication protocol, adopting instant messaging, and distributing the work notification to desktop end application and/or webpage end application; and receiving a work notification sent by the desktop end application and/or the webpage end application, and notifying the schedule application through an application program interface function to update the related schedule under the condition that the work notification creates or modifies the schedule for the desktop end application and/or the webpage end application.
In the technical scheme, under the condition that the schedule is created or modified by the mobile phone side application, the schedule data can be received by the desktop side application and/or the webpage side application without refreshing, the effect which can be achieved by the native application is achieved, and the user experience is greatly improved.
In addition, the technical scheme provided by the invention can also have the following additional technical characteristics:
in the technical scheme, the schedule in the mobile phone application can be shared by multiple users.
In order to achieve the second object of the present invention, a technical solution of the present invention provides a data synchronization method for a multi-peer application, which is used for a desktop application, and the data synchronization method includes: under the condition of creating or modifying the schedule, based on a full-duplex communication protocol, adopting instant messaging and distributing to a mobile phone side application and/or a webpage side application through a work notice; and receiving a work notification sent by the mobile phone end application and/or the webpage end application, and notifying the schedule application through an application program interface function to update the related schedule under the condition that the schedule is created or modified for the mobile phone end application and/or the webpage end application.
According to the technical scheme, under the condition that the desktop-side application creates or modifies the schedule, the mobile phone-side application and/or the webpage-side application can receive the schedule data without refreshing, the effect which can be achieved by the native application is achieved, and the user experience is greatly improved.
In addition, the technical scheme provided by the invention can also have the following additional technical characteristics:
in the above technical solution, the code adopted by the desktop application and the code adopted by the webpage application are the same, and the method further includes: acquiring a user agent of the equipment, and running by adopting a desktop end application under the condition that the user agent is identified as the desktop end; and/or in case of detecting the file protocol (local resource protocol), running by adopting the desktop end application.
In any of the above technical solutions, the desktop end application adopts an elastic layout.
In any of the above technical solutions, the schedule in the desktop application can be shared by multiple users.
In any of the above technical solutions, the data synchronization method for multi-port application further includes: and setting a first variable, and dynamically adjusting the first variable to enable the desktop end application to dynamically switch the font size and the theme color.
In order to achieve the second object of the present invention, a technical solution of the present invention provides a data synchronization method for a multi-end application, which is used for a web application, and the data synchronization method includes: under the condition of creating or modifying the schedule, based on a full-duplex communication protocol, adopting instant messaging, and distributing to a mobile phone end application and/or a desktop end application through a work notification; and receiving a work notification sent by the mobile phone end application and/or the desktop end application, and notifying the schedule application through an application program interface function to update the related schedule under the condition that the schedule is created or modified for the mobile phone end application and/or the desktop end application.
According to the technical scheme, under the condition that the schedule is created or modified by the webpage side application, the schedule data can be received by the mobile phone side application and/or the desktop side application without refreshing, the effect which can be achieved by the native application is achieved, and the user experience is greatly improved.
In addition, the technical scheme provided by the invention can also have the following additional technical characteristics:
in the above technical solution, the code used by the web application and the code used by the desktop application are the same, and the method further includes: acquiring a user agent of the equipment, and running by adopting a webpage end application under the condition that the user agent is identified as the webpage end; and/or in the case that https protocol (remote resource protocol) is detected, running with a web-side application.
In any of the above technical solutions, the web application adopts an elastic layout.
In any of the above technical solutions, the schedule in the application at the web page side can be shared by multiple users.
In any of the above technical solutions, the data synchronization method for multi-port application further includes: setting a first variable, and dynamically adjusting the first variable to enable the webpage end application to dynamically switch font size and theme color.
To achieve the third object of the present invention, an aspect of the present invention provides an electronic device, including: the device comprises a memory and a processor, wherein the memory stores programs or instructions, and the processor executes the programs or instructions; when the processor executes the program or the instruction, the steps of the data synchronization method of the multi-terminal application according to any technical scheme of the invention are realized.
The electronic device provided in this technical solution implements the steps of the data synchronization method for multi-terminal application according to any one of the technical solutions of the present invention, and thus has all the beneficial effects of the data synchronization method for multi-terminal application according to any one of the technical solutions of the present invention, and details thereof are not repeated herein.
To achieve the fourth object of the present invention, the technical solution of the present invention provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed, the steps of the data synchronization method for a multi-end application of any one of the above technical solutions are implemented.
The readable storage medium provided in this technical solution implements the steps of the data synchronization method for multi-terminal application according to any one of the technical solutions of the present invention, so that it has all the beneficial effects of the data synchronization method for multi-terminal application according to any one of the technical solutions of the present invention, and details thereof are not repeated herein.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flowchart of a data synchronization method for a multi-port application according to an embodiment of the present invention;
FIG. 2 is a second flowchart of a data synchronization method for a multi-port application according to an embodiment of the present invention;
FIG. 3 is a third flowchart of a data synchronization method for a multi-port application according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a data synchronization method for a multi-port application according to an embodiment of the present invention;
FIG. 5 is a fifth flowchart of a data synchronization method for a multi-port application according to an embodiment of the present invention;
FIG. 6 is a sixth flowchart of a data synchronization method for a multi-port application according to an embodiment of the present invention;
FIG. 7 is a seventh flowchart of a data synchronization method for a multi-port application according to an embodiment of the present invention;
FIG. 8 is an eighth flowchart of a data synchronization method for a multi-port application according to an embodiment of the present invention;
FIG. 9 is a ninth flowchart of a data synchronization method for a multi-port application according to an embodiment of the present invention;
FIG. 10 is a schematic block diagram of an electronic device in accordance with one embodiment of the invention;
FIG. 11 is a schematic block diagram of a communication lifecycle, according to one embodiment of the present invention;
FIG. 12 is a schematic block diagram of an operating environment determination in accordance with one embodiment of the present invention.
Wherein, the correspondence between the reference numbers and the part names in fig. 10 to 12 is:
102: mobile-side application, 104: desktop-end application, 106: web-side application, 108: IM, 110: job notification, 112: calendar application update, 114: schedule front end, 116: https protocol, 118: webpage side, 120: file protocol, 122: desktop end, 200: electronic device, 210: memory, 220: a processor.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.
A data synchronization method of a multi-terminal application, an electronic device, and a readable storage medium according to some embodiments of the present invention are described below with reference to fig. 1 to 12.
The multi-terminal data synchronization means that schedule messages generated by other-terminal apps need to be synchronized to schedule applications in time to further achieve data synchronization, but the data synchronization multi-terminal needs to inform the multi-terminal, and it is difficult to keep long link of data.
The multi-end operation needs to consider the protocols, window sizes, authentication modes, multiple languages, dark theme colors, font size dynamic update and the like of different ends, and the existing problems bring challenges to multi-end compatibility. In summary, the present embodiment aims to solve at least one of the above problems.
Example 1:
as shown in fig. 1, this embodiment provides a data synchronization method for a multi-end application, which is used for a mobile phone-end application, and the data synchronization method includes the following steps:
step S102, under the condition of creating or modifying the schedule, based on a full-duplex communication protocol, adopting instant messaging and distributing the instant messaging to desktop end application and/or webpage end application through a work notice;
and step S104, receiving a work notification sent by the desktop side application and/or the webpage side application, and notifying the schedule application through an application program interface function to update the related schedule under the condition that the work notification creates or modifies the schedule for the desktop side application and/or the webpage side application.
In this embodiment, after the notification is sent to the peer and the synchronization is performed to the schedule application, a communication mechanism between a desktop peer electronic (a cross-platform desktop application development tool) and a webview (a web page view) or an iframe (an HTML tag, which is used as a document in a document or a floating frame) needs to be established.
In this embodiment, under the condition that the schedule is created or modified by the mobile phone application, the desktop application and/or the web application can receive the schedule data without refreshing, so that the effect that the native application can achieve is achieved, and the user experience is greatly improved.
In this embodiment, a websocket (full-duplex communication protocol based on TCP) technology is integrated at the mobile phone end, and the mobile phone end is applied to realize multi-end synchronization without independently starting the websocket technology, so that a new idea is provided for accessing other items to the mobile phone end.
In the embodiment, data synchronization can be realized without extra operations such as refreshing, so that the operation of a user can be reduced, the user experience is increased, and the user stickiness is greatly improved.
In the embodiment, the mobile phone side can realize high-availability communication synchronization without using an IM channel by using extra capacity, and has the advantages of convenience and resource saving.
Example 2:
the present embodiment provides a data synchronization method for multi-end application, and in addition to the technical features of the foregoing embodiments, the present embodiment further includes the following technical features:
the schedule in the mobile phone application can be shared by multiple users.
In the embodiment, the schedule has a sharing function, so that sharing and sharing of other people can be invited, the progress and tasks of related cooperative personnel can be controlled more easily, and for a team manager, the team manager can use the team manager to manage the project related people more conveniently and more intentionally to use the team manager to process large and small transactions.
Example 3:
as shown in fig. 2, this embodiment provides a data synchronization method for a multi-end application, which is used for a desktop end application, and the data synchronization method includes the following steps:
step S202, under the condition of creating or modifying the schedule, based on a full-duplex communication protocol, adopting instant messaging and distributing to a mobile phone side application and/or a webpage side application through a work notice;
step S204, receiving a work notification sent by the mobile phone end application and/or the webpage end application, notifying the schedule application through an application program interface function under the condition that the schedule is created or modified for the mobile phone end application and/or the webpage end application, and updating the related schedule.
In this embodiment, under the condition that the desktop application creates or modifies the schedule, the mobile phone application and/or the web application can receive the schedule data without refreshing, so that the effect that the native application can achieve is achieved, and the user experience is greatly improved.
In this embodiment, the desktop end is formed with a websocket (full duplex communication protocol based on TCP) technology, and the desktop end is applied to the case where the websocket technology is not separately enabled, so that multi-end synchronization is achieved, and a new idea is provided for accessing other items to the desktop end.
In the embodiment, data synchronization can be realized without extra operations such as refreshing, so that the operation of a user can be reduced, the user experience is increased, and the user stickiness is greatly improved.
In the embodiment, the desktop application can realize high-availability communication synchronization without using an IM channel by additional capacity, and has the advantages of convenience and resource saving.
Example 4:
as shown in fig. 3 and fig. 4, the present embodiment provides a data synchronization method for a multi-port application, and in addition to the technical features of the above embodiments, the present embodiment further includes the following technical features:
the desktop end application and the webpage end application adopt the same codes, and the method further comprises the following steps:
step S302, a user agent of the equipment is obtained, and under the condition that the user agent is identified as a desktop end, the desktop end application is adopted for running; and/or
And step S304, adopting the desktop application to run under the condition that the file protocol is detected.
In the embodiment, the multi-terminal scheme can keep consistency between UI design (called interface design) and products, meanwhile, a good scheme is provided for development, development time and energy can be saved, and a good access idea is provided for large project access application.
The embodiment can be adapted to multiple ends, perfectly integrates a desktop end and a webpage end, and runs a set of codes at multiple ends. In this embodiment, the desktop application and the web application use the same code, and the running mode of the current application is determined by judging a User Agent (UA) and a file protocol, so that the availability of the code is improved, and high availability and reuse of the code are realized.
In this embodiment, the multi-port operation of the desktop application and the web application can save development cost, and the multi-port operation of a set of codes conforms to the development mode which is becoming more and more popular.
In this embodiment, the desktop application supports the file protocol, that is, supports the local protocol to be opened, so that the pain of loading the native-like application can be realized, and the user experience can be improved.
Example 5:
the present embodiment provides a data synchronization method for multi-end application, and in addition to the technical features of the foregoing embodiments, the present embodiment further includes the following technical features:
the desktop end application adopts an elastic layout.
In order to consider the situation of multi-end operation, the present embodiment considers the layout self-adaptation at the beginning of the design of the front-end architecture, and by adopting the elastic layout, dynamic compatibility can be achieved.
Example 6:
the present embodiment provides a data synchronization method for multi-end application, and in addition to the technical features of the foregoing embodiments, the present embodiment further includes the following technical features:
the schedule in the desktop-side application can be shared by multiple users.
In the embodiment, the schedule has a sharing function, so that sharing and sharing of other people can be invited, the progress and tasks of related cooperative personnel can be controlled more easily, and for a team manager, the team manager can use the team manager to manage the project related people more conveniently and more intentionally to use the team manager to process large and small transactions.
Example 7:
as shown in fig. 5, the present embodiment provides a data synchronization method for multi-terminal application, and in addition to the technical features of the foregoing embodiments, the present embodiment further includes the following technical features:
the data synchronization method of the multi-terminal application further comprises the following steps:
step S402, setting a first variable, and dynamically adjusting the first variable to enable the desktop end application to dynamically switch font size and theme color.
In this embodiment, the css (Cascading Style Sheets ) is controlled by the first variable, and the font size and the theme color can be dynamically switched, so that personalized requirements of different users and different devices are met.
Example 8:
as shown in fig. 6, the present embodiment provides a data synchronization method for a multi-end application, which is used for a web-end application, and the data synchronization method includes the following steps:
step S502, under the condition of creating or modifying the schedule, based on a full-duplex communication protocol, distributing the schedule to a mobile phone end application and/or a desktop end application by adopting instant messaging through a work notice;
step S504, receiving a work notification sent by the mobile phone end application and/or the desktop end application, and notifying the schedule application through an application program interface function to update the related schedule under the condition that the work notification is used for creating or modifying the schedule for the mobile phone end application and/or the desktop end application.
The web application (web application) plays an increasingly important role in the working process, the web application not only needs to meet the use requirement of the web end but also needs to run in the desktop application, and the embodiment can realize the perfect running of the web end application in the desktop end.
In this embodiment, under the condition that the webpage-side application creates or modifies the schedule, the mobile phone-side application and/or the desktop-side application can receive the schedule data without refreshing, so that the effect that the native application can achieve is achieved, and the user experience is greatly improved.
In this embodiment, the web page side is provided with a websocket (full duplex communication protocol based on TCP) technology, and the web page side is applied to realize multi-end synchronization without independently starting the websocket technology, so as to provide a new idea for accessing other items to the web page side.
In the embodiment, data synchronization can be realized without extra operations such as refreshing, so that the operation of a user can be reduced, the user experience is increased, and the user stickiness is greatly improved.
In the embodiment, the webpage side application can realize high-availability communication synchronization without borrowing an IM channel by additional capacity, and has the advantages of convenience and resource saving.
The data unaware synchronization of the embodiment provides a very good native application experience for the web application (the webpage end application) to access the terminal such as the desktop end.
Example 9:
as shown in fig. 7 and fig. 8, the present embodiment provides a data synchronization method for a multi-port application, and in addition to the technical features of the above embodiments, the present embodiment further includes the following technical features:
the code adopted by the webpage end application and the code adopted by the desktop end application are the same, and the method further comprises the following steps:
step S602, acquiring a user agent of the equipment, and running by adopting a webpage end application under the condition that the user agent is identified as the webpage end; and/or
And step S604, adopting the webpage end application to run under the condition that the https protocol is detected.
The embodiment can be adapted to multiple ends, perfectly integrates a webpage end and a desktop end, and runs a set of codes at multiple ends. In this embodiment, the code used by the web application and the code used by the desktop application are the same, and the running mode of the current application is determined by judging the User Agent (UA) and the https protocol, so that the availability of the codes is improved, and high availability and reuse of the codes are realized.
In this embodiment, the multi-end operation of the web application and the desktop application can save development cost, and the multi-end operation of a set of codes conforms to the development mode which is becoming more and more popular.
Example 10:
the present embodiment provides a data synchronization method for multi-end application, and in addition to the technical features of the foregoing embodiments, the present embodiment further includes the following technical features:
the webpage end application adopts flexible layout.
In order to consider the situation of multi-end operation, the present embodiment considers the layout self-adaptation at the beginning of the design of the front-end architecture, and by adopting the elastic layout, dynamic compatibility can be achieved.
Example 11:
the present embodiment provides a data synchronization method for multi-end application, and in addition to the technical features of the foregoing embodiments, the present embodiment further includes the following technical features:
the schedule in the webpage application can be shared by multiple users.
In the embodiment, the schedule has a sharing function, so that sharing and sharing of other people can be invited, the progress and tasks of related cooperative personnel can be controlled more easily, and for a team manager, the team manager can use the team manager to manage the project related people more conveniently and more intentionally to use the team manager to process large and small transactions.
Example 12:
as shown in fig. 9, the present embodiment provides a data synchronization method for multi-terminal application, and in addition to the technical features of the foregoing embodiments, the present embodiment further includes the following technical features:
the data synchronization method of the multi-terminal application further comprises the following steps:
step S702, setting a first variable, and dynamically adjusting the first variable to enable the webpage side application to dynamically switch font size and theme color.
In this embodiment, the css (Cascading Style Sheets ) is controlled by the first variable, and the font size and the theme color can be dynamically switched, so that personalized requirements of different users and different devices are met.
Example 13:
as shown in fig. 10, the present embodiment provides an electronic apparatus 200 including: a memory 210 and a processor 220, the memory 210 storing programs or instructions, the processor 220 executing the programs or instructions; wherein the processor 220, when executing the program or the instructions, implements the steps of the data synchronization method of the multi-peer application according to any embodiment of the present invention.
Example 14:
the present embodiment provides a readable storage medium, which stores a program or instructions, and when the program or instructions are executed by a processor, the steps of the data synchronization method of the multi-end application in any of the above embodiments are implemented.
The specific embodiment is as follows:
the embodiment provides a data synchronization method for a multi-terminal application, and under the condition that a schedule is created or modified by one-terminal application, the multi-terminal application can receive schedule data without refreshing, so that the effect which can be achieved by a native application is realized, and the user experience is greatly improved. The desktop end native application (desktop end application) and the web application (webpage end application) are a set of codes, and therefore the multi-end compatible scheme and the non-inductive data synchronization are achieved.
In this embodiment, the web application data is noninductive synchronized based on the IM channel, and the desktop application and the web application use a set of codes and can be operated at multiple ends.
In the complete life cycle of communication in this embodiment, the mobile application 102, the desktop application 104, and the web application 106 communicate with each other through a websocket (full duplex communication protocol), and multi-terminal synchronization skillfully utilizes an IM108 communication mechanism of the mobile application, the desktop application, and the web application, and when one of the terminals creates or modifies a schedule, the other two terminals may synchronize with each other, for example, as shown in fig. 11, after the mobile application 102 successfully creates a schedule, the mobile application is communicated and distributed to the desktop application 104 through the IM108 of the working notification 110, and after the desktop application 104 receives the working notification, the desktop application notifies the application to update 112 a related schedule through a postmessage (postmessage is a common function in a Windows API (application program interface) and is used to place a message into a message queue).
The embodiment realizes multi-end synchronization under the condition that the websocket technology is not independently started, and provides a new idea for accessing other projects to the desktop end.
In order to consider the multi-end operation, the present embodiment considers layout self-adaptation from the beginning of the design of the front-end architecture, and dynamically and compatibly uses a new layout mode and an elastic layout. And the css is controlled in a variable mode, the font size and the theme color can be dynamically switched, and the multi-language and verification mode of multiple ends is compatible.
In this embodiment, multi-port operation of the web side and the desktop side may be implemented by a set of codes, and information such as a current device and a browser version may be acquired by determining a UA (user agent), so as to determine whether an operation environment is the web side or the desktop side. As shown in fig. 12, for the schedule front end 114, if the https protocol 116 is detected, it is determined as the web page end 118, otherwise, it is detected whether the file protocol 120 is compatible, and if the file protocol 120 is detected, it is determined as the desktop end 122.
In the embodiment, the user wishes to record and manage the memorandum by using the schedule, the web side perfectly integrates the pc side, and the memorandum is supplemented with the pc side, so that the user viscosity is greatly improved.
The embodiment realizes the timely update of the web application through the IM channel, and the specific implementation of the schedule-referenced application has the following advantages:
(1) multi-end adaptation: the desktop end, the web end and a set of codes are fused perfectly and operated at multiple ends;
(2) the local protocol is supported to be opened, so that the pain of the loading of the proto-like application is realized;
(3) self-adaptive layout, which is self-adaptive and compatible for multiple middle windows;
(4) the multi-terminal schedule is synchronized without sensing, the mobile phone terminal is established, and the schedule data can be received by the desktop terminal without refreshing, so that the native experience is realized;
(5) the system has strong sharing and replying functions, can invite to share and share other people, and is easier to control the progress and task of related cooperative personnel;
(6) the file sharing function can realize file cooperation more conveniently, facilitate more application accesses and cooperate with the center of office.
In the present invention, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance; the term "plurality" means two or more unless expressly limited otherwise. The terms "mounted," "connected," "fixed," and the like are to be construed broadly, and for example, "connected" may be a fixed connection, a removable connection, or an integral connection; "coupled" may be direct or indirect through an intermediary. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the description of the present invention, it is to be understood that the terms "upper", "lower", "left", "right", "front", "rear", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of description and simplification of description, but do not indicate or imply that the referred device or unit must have a specific direction, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention.
In the description herein, the description of the terms "one embodiment," "some embodiments," "specific embodiments," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (14)

1. A data synchronization method of multi-terminal application is used for mobile phone terminal application, and comprises the following steps:
under the condition of creating or modifying the schedule, based on a full-duplex communication protocol, adopting instant messaging, and distributing the work notification to desktop end application and/or webpage end application;
and receiving the work notification sent by the desktop end application and/or the webpage end application, and notifying a schedule application through an application program interface function to update a related schedule under the condition that the work notification creates or modifies the schedule for the desktop end application and/or the webpage end application.
2. The data synchronization method for the multi-peer application according to claim 1, wherein the schedule in the mobile-peer application can be shared by multiple users.
3. A data synchronization method of a multi-end application is used for a desktop end application, and comprises the following steps:
under the condition of creating or modifying the schedule, based on a full-duplex communication protocol, adopting instant messaging and distributing to a mobile phone side application and/or a webpage side application through a work notice;
and receiving the work notification sent by the mobile phone end application and/or the webpage end application, and notifying a schedule application through an application program interface function to update a related schedule under the condition that the work notification creates or modifies the schedule for the mobile phone end application and/or the webpage end application.
4. The data synchronization method for the multi-end application according to claim 3, wherein the code adopted by the desktop end application and the code adopted by the webpage end application are the same, and further comprising:
acquiring a user agent of equipment, and running by adopting the desktop end application under the condition that the user agent is identified as the desktop end; and/or
And under the condition that a local resource protocol is detected, the desktop end application is adopted to run.
5. The method for data synchronization of a multi-end application according to claim 3, wherein the desktop end application adopts a flexible layout.
6. The data synchronization method for a multi-peer application according to claim 3, wherein the schedule in the desktop-peer application can be shared by multiple users.
7. The data synchronization method for multi-terminal application according to any one of claims 3 to 6, further comprising:
setting a first variable, and dynamically adjusting the first variable to enable the desktop end application to dynamically switch font size and theme color.
8. A data synchronization method of a multi-end application is used for a webpage end application, and comprises the following steps:
under the condition of creating or modifying the schedule, based on a full-duplex communication protocol, adopting instant messaging, and distributing to a mobile phone end application and/or a desktop end application through a work notification;
and receiving the work notification sent by the mobile phone end application and/or the desktop end application, and notifying a schedule application through an application program interface function to update a related schedule under the condition that the schedule is created or modified for the mobile phone end application and/or the desktop end application.
9. The data synchronization method for the multi-end application according to claim 8, wherein the code adopted by the web-end application and the code adopted by the desktop-end application are the same, and further comprising:
acquiring a user agent of equipment, and running by adopting the webpage end application under the condition that the user agent is identified as a webpage end; and/or
And under the condition that the remote resource protocol is detected, the webpage end application is adopted to run.
10. The data synchronization method for multi-end application according to claim 8, wherein the web-end application adopts flexible layout.
11. The data synchronization method for multi-peer application according to claim 8, wherein the schedule in the web-peer application can be shared by multiple users.
12. The data synchronization method for a multi-end application according to any one of claims 8 to 11, further comprising:
setting a first variable, and dynamically adjusting the first variable to enable the webpage end application to dynamically switch font size and theme color.
13. An electronic device (200), comprising:
a memory (210) storing programs or instructions;
a processor (220) that executes the program or instructions;
wherein the processor (220), when executing the program or instructions, implements the steps of the data synchronization method of the multi-end application according to claim 1 or 2, or the steps of the data synchronization method of the multi-end application according to any one of claims 3 to 7, or the steps of the data synchronization method of the multi-end application according to any one of claims 8 to 12.
14. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, carry out the steps of the data synchronization method of a multi-terminal application according to claim 1 or 2, or the steps of the data synchronization method of a multi-terminal application according to any one of claims 3 to 7, or the steps of the data synchronization method of a multi-terminal application according to any one of claims 8 to 12.
CN202111128986.7A 2021-09-26 2021-09-26 Data synchronization method, electronic device and readable storage medium for multi-terminal applications Pending CN113918855A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111128986.7A CN113918855A (en) 2021-09-26 2021-09-26 Data synchronization method, electronic device and readable storage medium for multi-terminal applications

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111128986.7A CN113918855A (en) 2021-09-26 2021-09-26 Data synchronization method, electronic device and readable storage medium for multi-terminal applications

Publications (1)

Publication Number Publication Date
CN113918855A true CN113918855A (en) 2022-01-11

Family

ID=79236133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111128986.7A Pending CN113918855A (en) 2021-09-26 2021-09-26 Data synchronization method, electronic device and readable storage medium for multi-terminal applications

Country Status (1)

Country Link
CN (1) CN113918855A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110035435A1 (en) * 2009-08-10 2011-02-10 Nec (China) Co., Ltd. Method and system for converting desktop application to web application
CN101989997A (en) * 2009-08-06 2011-03-23 中国电信股份有限公司 Schedule synchronization method, server and system
CN103812755A (en) * 2012-11-12 2014-05-21 腾讯科技(深圳)有限公司 Message synchronization method and device in instant messaging application
CN106209857A (en) * 2016-07-14 2016-12-07 腾讯科技(深圳)有限公司 Data transmission method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989997A (en) * 2009-08-06 2011-03-23 中国电信股份有限公司 Schedule synchronization method, server and system
US20110035435A1 (en) * 2009-08-10 2011-02-10 Nec (China) Co., Ltd. Method and system for converting desktop application to web application
CN103812755A (en) * 2012-11-12 2014-05-21 腾讯科技(深圳)有限公司 Message synchronization method and device in instant messaging application
CN106209857A (en) * 2016-07-14 2016-12-07 腾讯科技(深圳)有限公司 Data transmission method and device

Similar Documents

Publication Publication Date Title
CN111555961B (en) Message display method and device
US7206868B2 (en) Method and system for providing a peripheral service to a host computing device
CN113220474B (en) Android application sharing Linux system screen data method based on Android-EMUGL
US20140052801A1 (en) Method for transmitting messages in instant messaging, client and storage medium thereof
CN113900754B (en) Shared desktop method, shared desktop device, computer equipment and storage medium
US20120143944A1 (en) Integrated handset browser settings
CN112114928B (en) Processing method and device for display page
WO2016090976A1 (en) Mobile terminal and resource management method thereof
CN108255513A (en) Electronic device, the data-interface based on springmvc and its illustrate automatic generation method and storage medium
AU2019256257A1 (en) Processor core scheduling method and apparatus, terminal, and storage medium
CN114385304A (en) Method for calling Linux screenshot tool by android application
CN101198129A (en) Mobile terminal and its data synchronization method
CN102184076A (en) Method and device for controlling input of mobile terminal specific to JAVA program
CN102214076A (en) Method and device for implementing print on Web page
CN113918855A (en) Data synchronization method, electronic device and readable storage medium for multi-terminal applications
CN112395529B (en) Page loading method, device, equipment and storage medium
CN102523271B (en) Terminal and communication method and system thereof
CN113242309A (en) Cloud computing method, system, device and medium
US20050148352A1 (en) Short message system for mobile devices
WO2024045729A1 (en) Micro-service calling method and system, electronic device, and readable storage medium
CN107426114A (en) Resource allocation methods and system
CN107819947B (en) Screen display method and device
WO2021174538A1 (en) Application processing method and related apparatus
US11070647B1 (en) Seamless cross-platform synchronization of user activities and application data between mobile and desktop devices
CN114253649B (en) Image rendering method, device, equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination