Method and apparatus for transmitting information
By obtaining and determining the data type in the application attribute set in the micro front-end architecture, automatically obtaining the target application identifier and transmitting data, the problems of low data transmission efficiency and waste of resources are solved, and efficient data transmission and component operation are achieved.
Patent Information
- Application Number
- CN202110646846.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-10
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2041-06-10
AI Technical Summary
In the micro front-end architecture, data transmission efficiency between existing sub-applications and base applications, or between sub-applications, is low and communication resources are severely wasted.
By obtaining data information in the application attribute set, judging the data type and automatically obtaining the identification of the target application, efficient data transmission is achieved, and the data center monitoring function and global monitoring function are used to improve transmission efficiency and targetedness.
It improves information transmission efficiency, reduces the waste of communication resources, and supports componentized operation and development and maintenance.
Smart Images

Figure CN113312193B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method and apparatus for transmitting information. Background Art
[0002] In a micro-frontend architecture, multiple sub-applications can be integrated into a single base application. These sub-applications can be independently developed, run, and deployed within the base application. Data transmission is required between sub-applications and the base application, or between sub-applications, to enable the application, comprised of multiple sub-applications and the base application, to function properly.
[0003] The existing method of data transmission between sub-applications and bases, or between sub-applications, is: data transmission based on manual work, or the base application sends data received by the base application / locally generated to the global sub-application above it, so that the target sub-application receives the data.
[0004] However, the method based on manual data transmission has the problem of low data transmission efficiency; the method in which the base application sends data to the global sub-application thereon so that the target sub-application receives the data has the problem of wasting communication resources. Summary of the Invention
[0005] The present disclosure provides a method, apparatus, electronic device, and computer-readable storage medium for transmitting information.
[0006] According to a first aspect of the present disclosure, a method for transmitting information is provided, which is applied to a first application and includes: for each second application in at least one second application, obtaining an application attribute set of the second application, wherein the application attribute set includes an identifier of the second application and data information of the second application; in response to monitoring a change in the data information in the application attribute set, determining the data type of the changed data information and whether it represents that target data in the changed data information is object-type data; in response to determining that the data type represents that the target data is object-type data, obtaining an identifier of a target second application from the application attribute set to which the target data belongs; and sending the target data to the target second application based on the identifier of the target second application.
[0007] In some embodiments, the application attribute set also includes the address of the second application, and the method includes: obtaining the display information of the second application according to the address of the second application; and displaying the display information of the second application in the display interface of the first application.
[0008] In some embodiments, the method for transmitting information includes: in response to monitoring a preset event, receiving data sent by a second application based on the preset event.
[0009] In some embodiments, obtaining the identifier of the target second application from the set of application attributes to which the target data belongs includes: in response to monitoring an instruction for characterizing sending data to a global second application, obtaining the identifier of each second application from the set of application attributes of each second application; sending the target data to the target second application based on the identifier of the target second application, including: sending the target data to each second application based on the identifier of each second application.
[0010] In some embodiments, the first application is communicatively connected to a data center, and the data center includes an attribute monitoring function for monitoring changes in a set of application attributes. In response to monitoring changes in data information in the set of application attributes, the method includes: responding to receiving a message sent by the data center to characterize that the attribute monitoring function is triggered; sending target data to the target second application based on the identifier of the target second application, including: sending target data to the target second application based on the identifier of the target second application through the data center.
[0011] According to a second aspect of the present disclosure, a method for transmitting information is provided, which is applied to a second application and includes: receiving target data sent by a first application; wherein, after the first application determines that the data type characterizes that the target data is object-type data, the first application obtains an identifier of the second application from the application attribute set to which the target data belongs, and sends the target data according to the identifier of the second application; when the first application monitors that the data information in the application attribute set has changed, it determines whether the target data in the changed data information is object-type data; the first application includes an application attribute set for each second application in at least one second application, and the application attribute set includes the identifier of the second application and the data information of the second application.
[0012] In some embodiments, the second application is communicatively connected to a data center, which includes a monitoring function corresponding to the second application, and receives target data sent by the first application, including: receiving target data based on the monitoring function corresponding to the second application.
[0013] In some embodiments, the method for transmitting information includes: in response to detecting an instruction for indicating stopping monitoring data, sending an instruction for instructing a monitoring function corresponding to the second application to stop monitoring data to a data center.
[0014] According to a third aspect of the present disclosure, a method for transmitting information is provided, which is applied to a data center, wherein the data center is communicatively connected to a first application, and the data center is communicatively connected to at least one second application, and the data center includes: an attribute listening function for monitoring a set of application attributes in the first application, and at least one listening function corresponding to at least one second application, respectively. The method includes: in response to monitoring a change in data information in the set of application attributes in the first application, sending a trigger message to the first application to indicate that the attribute listening function is triggered; receiving an identifier of the target second application returned by the first application based on the trigger message, and target data for triggering the attribute listening function; determining a target listening function corresponding to the target second application from at least one listening function according to the identifier of the target second application; and transmitting the target data to the target second application through the target listening function.
[0015] In some embodiments, the method for transmitting information includes: in response to receiving a message indicating that uninstallation of the preset second application from the first application is complete, terminating a monitoring operation of a monitoring function corresponding to the preset second application.
[0016] According to a fourth aspect of the present disclosure, a device for transmitting information is provided, which is applied to a first application and includes: a first acquisition unit, configured to acquire, for each second application in at least one second application, a set of application attributes of the second application, wherein the application attribute set includes an identifier of the second application and data information of the second application; a judgment unit, configured to determine, in response to monitoring a change in the data information in the application attribute set, the data type of the changed data information and whether it represents that the target data in the changed data information is object-type data; a second acquisition unit, in response to determining that the data type represents that the target data is object-type data, acquires the identifier of the target second application from the application attribute set to which the target data belongs; a first sending unit, configured to send the target data to the target second application based on the identifier of the target second application.
[0017] In some embodiments, the application attribute set also includes the address of the second application, and the device for transmitting information includes: a third acquisition unit, configured to obtain the display information of the second application based on the address of the second application; and a display unit, configured to display the display information of the second application in the display interface of the first application.
[0018] In some embodiments, the apparatus for transmitting information includes: a monitoring unit configured to receive data sent by the second application based on the preset event in response to monitoring the preset event.
[0019] In some embodiments, the second acquisition unit includes: an acquisition module, configured to obtain the identifier of each second application from the application attribute set of each second application in response to monitoring an instruction for characterizing the sending of data to a global second application; the first sending unit includes: a first sending module, configured to send target data to each second application based on the identifier of each second application.
[0020] In some embodiments, the first application is communicatively connected to a data center, and the data center includes an attribute monitoring function for monitoring changes in a set of application attributes. The judgment unit includes: a judgment module, configured to respond to receiving a message sent by the data center to characterize that the attribute monitoring function is triggered; and a first sending unit, including: a second sending module, configured to send target data to the target second application through the data center according to an identifier of the target second application.
[0021] According to a fifth aspect of the present disclosure, a device for transmitting information is provided, which is applied to a second application and includes: a first receiving unit, configured to receive target data sent by the first application; wherein, after the first application determines that the data type represents that the target data is object-type data, the first application obtains the identifier of the second application from the application attribute set to which the target data belongs, and sends the target data according to the identifier of the second application; when the first application monitors that the data information in the application attribute set has changed, it determines whether the target data in the changed data information is object-type data; the first application includes an application attribute set for each second application in at least one second application, and the application attribute set includes the identifier of the second application and the data information of the second application.
[0022] In some embodiments, the second application is communicatively connected to a data center, and the data center includes a monitoring function corresponding to the second application. The first receiving unit includes: a first receiving module that receives target data based on the monitoring function corresponding to the second application.
[0023] In some embodiments, the method for transmitting information includes: a termination monitoring unit configured to send an instruction for instructing a monitoring function corresponding to the second application to stop monitoring data to a data center in response to detecting an instruction for indicating stopping monitoring data.
[0024] According to a sixth aspect of the present disclosure, there is provided a device for transmitting information, which is applied to a data center, wherein the data center is communicatively connected to a first application, and the data center is communicatively connected to at least one second application, and the data center includes: an attribute listening function for listening to a set of application attributes in the first application, and at least one listening function corresponding to at least one second application, respectively; the device includes: a second sending unit, configured to send a trigger message to the first application, indicating that the attribute listening function is triggered, in response to a change in data information in the set of application attributes in the first application being listened to; a second receiving unit, configured to receive an identifier of the target second application returned by the first application based on the trigger message, and target data for triggering the attribute listening function; a determination unit, configured to determine a target listening function corresponding to the target second application from at least one listening function according to the identifier of the target second application; and a parameter writing unit, configured to transmit target data to the target second application through the target listening function.
[0025] In some embodiments, the method for transmitting information includes: a removing unit configured to terminate a monitoring operation of a monitoring function corresponding to the preset second application in response to receiving a message indicating that the preset second application is completely uninstalled from the first application.
[0026] According to the seventh aspect of the present disclosure, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method for transmitting information as provided in the first aspect, or implement the method for transmitting information as provided in the second aspect, or implement the method for transmitting information as provided in the third aspect.
[0027] According to the eighth aspect of the present disclosure, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, it implements the method for transmitting information as provided in the first aspect, or implements the method for transmitting information as provided in the second aspect, or implements the method for transmitting information as provided in the third aspect.
[0028] The present disclosure provides a method and apparatus for transmitting information, comprising: a first application obtaining, for each of at least one second application, an application attribute set of the second application, wherein the application attribute set includes an identifier of the second application and data information of the second application; in response to monitoring a change in the data information in the application attribute set, determining the data type of the changed data information and whether the target data in the changed data information is object-type data; in response to determining that the data type indicates that the target data is object-type data, obtaining the identifier of the target second application from the application attribute set to which the target data belongs; and sending the target data to the target second application based on the identifier of the target second application. This can improve information transmission efficiency and reduce information transmission costs.
[0029] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings are provided to facilitate a better understanding of the present invention and do not constitute a limitation of the present application.
[0031] Figure 1 is an exemplary system architecture diagram to which embodiments of the present application may be applied;
[0032] Figure 2 is a flow chart of an embodiment of a method for transmitting information according to the present application;
[0033] Figure 3 is a flowchart of another embodiment of a method for transmitting information according to the present application;
[0034] Figure 4 is a flow chart of an embodiment of a method for transmitting information according to the present application;
[0035] Figure 5 is a flow chart of an embodiment of a method for transmitting information according to the present application;
[0036] Figure 6 is a flowchart of an application scenario of the method for transmitting information according to the present application;
[0037] Figure 7 is an architectural diagram of a system for transmitting information in an application scenario of the method for transmitting information according to the present application;
[0038] Figure 8 is a structural diagram of an embodiment of a device for transmitting information according to the present application;
[0039] Figure 9 is a structural diagram of an embodiment of a device for transmitting information according to the present application;
[0040] Figure 10 is a structural diagram of an embodiment of a device for transmitting information according to the present application;
[0041] Figure 11 It is a block diagram of an electronic device used to implement the method for transmitting information in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The following description of exemplary embodiments of the present application is made in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding. These details should be considered as merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0043] Figure 1 An exemplary system architecture 100 is shown to which embodiments of the method for transmitting information or the apparatus for transmitting information of the present application can be applied.
[0044] like Figure 1 As shown, the system architecture 100 may include second applications 101, 102, and 103, a network 104, and a first application 105. The network 104 is used as a medium for providing a communication link between the second applications 101, 102, and 103 and the first application 105. The network 104 may include various connection types or communication protocols, such as wired or wireless communication links or fiber optic cables.
[0045] Second applications 101, 102, and 103 interact with first application 105 via network 104 to receive or send messages, etc. Second applications 101, 102, and 103 may be sub-applications in a micro-frontend architecture. Second application 105 may be a base application in a micro-frontend architecture.
[0046] The first application can obtain an application attribute set of the second application for each second application in at least one second application, where the application attribute set includes an identifier of the second application and data information of the second application; if the first application monitors that the data information in the application attribute set has changed, it determines whether the data type in the changed data information indicates that the target data in the data information is object type data; if it is determined that the data type in the changed data information indicates that the target data in the data information is object type data, it obtains the identifier of the target second application from the application attribute set to which the target data belongs; the first application sends the target data to the target second application based on the identifier of the target second application.
[0047] It should be noted that the method for transmitting information provided in the embodiments of the present disclosure may be executed by the first application 105 , and accordingly, the device for transmitting information may be provided in the first application 105 .
[0048] It should be understood that Figure 1 The number of first applications, networks, and second applications in the embodiment is merely illustrative. Any number of first applications, networks, and second applications may be provided as required.
[0049] Continue to refer Figure 2 , shows a process 200 of an embodiment of a method for transmitting information according to the present disclosure, applied to a first application, including the following steps:
[0050] Step 201: For each second application in at least one second application, obtain an application attribute set of the second application, wherein the application attribute set includes an identifier of the second application and data information of the second application.
[0051] In this embodiment, the execution subject of the method for transmitting information (eg Figure 1 The first application 105 shown may obtain an application attribute set for each of the at least one second application. Each application attribute set may include an application identifier of the second application and data information of the second application. The data information includes data and the data type of the data. For example, the application attribute set of a second application may be {application identifier, data information (data, data type)}.
[0052] Step 202 : In response to monitoring a change in the data information in the application attribute set, determine the data type in the changed data information and whether the target data in the changed data information is object type data.
[0053] In this embodiment, if the first application monitors that the data information in the application attribute set has changed, it determines whether the data type in the changed data information represents whether the target data in the changed data information is object type data, where the object type data is an array, function or method in the application.
[0054] It should be noted that the data in the data information in the application attribute set of the second application is the data that the sender (the sender can be the first application or another terminal or device) intends to send to the second application. That is, if the sender intends to send data to a second application, the intended data will be written to the data information in the application attribute set of the second application. After new data is written to the data information in the application attribute set, the data information will change, and the application attribute set will also change.
[0055] Step 203 : In response to determining that the data type indicates that the target data is object-type data, an identifier of a target second application is obtained from an application attribute set to which the target data belongs.
[0056] In this embodiment, if the first application determines the data type in the data information within the changed application attribute set, and if this data is identified as an object type, the identifier of the target second application can be obtained from the application attribute set to which the target data belongs. Since each second application's application attribute set includes the second application's identifier and data information, and the data information includes the written data and data type, the data information and application attribute set to which the data belongs can be determined based on the data, and the identifier of the target second application can be obtained from the determined application attribute set.
[0057] Step 204: Send target data to the target second application according to the identifier of the target second application.
[0058] In this embodiment, the first application may send target data to the target second application according to the identifier of the target second application.
[0059] The method for transmitting information provided in this embodiment is that the first application obtains an application attribute set of the second application for each second application in at least one second application, wherein the application attribute set includes an identifier of the second application and data information of the second application; in response to monitoring a change in the data information in the application attribute set, the method determines the data type in the changed data information and whether it represents that the target data in the changed data information is object-type data; in response to determining that the data type represents that the target data is object-type data, the method obtains the identifier of the target second application from the application attribute set to which the target data belongs; based on the identifier of the target second application, the method sends the target data to the target second application. When the first application monitors a change in the data information in the application attribute set, the method automatically sends data to the second application corresponding to the changed data information, thereby improving the efficiency of sending data, and only sends data to the second application corresponding to the changed data information, thereby improving the targeted data sending and avoiding wasting communication resources.
[0060] Optionally, the application attribute set further includes an address of the second application, and the method includes: acquiring display information of the second application according to the address of the second application; and displaying the display information of the second application in the display interface of the first application.
[0061] In this embodiment, the application attribute set of each second application also includes the address of the second application. The display information of the second application can be obtained from the page or storage unit indicated by the address of the second application, and the display information can be presented in the display interface of the first application to load the second application in the first application.
[0062] Optionally, the method for transmitting information includes: in response to monitoring a preset event, receiving data sent by the second application based on the preset event.
[0063] In this embodiment, if the first application monitors a preset event, it can receive data sent by the second application based on the preset event. The preset event can be an event stored in the first application, or an event included in the application attribute set stored in the first application. The first application can process the data received from each second application, so that the first application and each second application can jointly process business or provide services to users.
[0064] Continue to refer Figure 3 , shows a process 300 of another embodiment of a method for transmitting information according to the present disclosure, applied to a first application, and comprising the following steps:
[0065] Step 301: For each second application in at least one second application, obtain an application attribute set of the second application, wherein the application attribute set includes an identifier of the second application and data information of the second application.
[0066] Step 302 : In response to monitoring a change in the data information in the application attribute set, determining the data type in the changed data information and whether the target data in the changed data information is object type data.
[0067] The description of step 301 and step 302 in this embodiment is consistent with the description of step 201 and step 202, and will not be repeated here.
[0068] Step 303 : In response to determining that the data type indicates that the target data is object type data and monitoring an instruction for indicating sending data to a global second application, obtain an identifier of each second application from an application attribute set of each second application.
[0069] In this embodiment, if the first application determines that the data type in the changed data information is object-type data, and the first application monitors an instruction for sending data to a global second application, the first application can obtain the identifier of each second application from each application attribute set. The instruction for sending data to the global second application can be an instruction generated by the first application, an instruction sent by a user to the first application via a terminal device, or an instruction sent by any second application to the first application.
[0070] Step 304: Send target data to each second application according to the identifier of each second application.
[0071] In this embodiment, the first application may send target data to each second application according to the identifier of each second application.
[0072] The method for transmitting information provided in this embodiment is compared with Figure 2 In the described embodiment, after the first application listens to an instruction for representing the sending of data to the global second application, the identifier of each second application is obtained from the application attribute set of each second application, and the target data is sent to the global second application based on the identifier of each second application. This can improve the flexibility of sending data from the first application to the second application and enrich the diversity of the sending methods of the first application to the second application.
[0073] In the above combination Figure 2 and Figure 3 In some optional implementations of the described embodiments, the first application is communicatively connected to a data center, and the data center includes an attribute monitoring function for monitoring changes in a set of application attributes. In response to monitoring changes in data information in the set of application attributes, the method includes: responding to receiving a message sent by the data center to characterize that the attribute monitoring function is triggered; sending target data to the target second application based on the identifier of the target second application, including: sending target data to the target second application based on the identifier of the target second application through the data center.
[0074] In this embodiment, there is a communication connection between the first application and the data center, and the first application and the second application can communicate through the data center. The data center includes an attribute monitoring function, and the attribute monitoring function of the data center can be bound / associated with the first application and used to monitor changes in the application attribute set in the first application. When the first application receives a message sent by the data center to indicate that the attribute monitoring function has been triggered, it means that the attribute monitoring function has monitored that the data information in the application attribute set has changed. If the first application determines that the data type in the changed data information and the target data in the data information that represents the changed data is object type data, the identifier of the target second application in the set can be obtained from the application attribute set to which the target data belongs.
[0075] The first application may send the target data in the changed data information and the identifier of the target second application to the data center, so that the data center may send the target data to the target second application according to the identifier of the target second application.
[0076] In this embodiment, the first application is connected to the data center for communication, and uses the attribute monitoring function in the data center to monitor whether the data information in the application attribute set in the first application has changed, and based on the data center, the target data in the changed data information is sent to the corresponding second application. Functions such as data monitoring and data transmission can be implemented through the data center, reducing the general functions of the first application, so that the first application can focus on its main functions or business, which is conducive to the componentized operation and development and maintenance of the first application.
[0077] Continue to refer Figure 4 , shows a process 400 of an embodiment of a method for transmitting information according to the present disclosure, applied to a second application, including the following steps:
[0078] Step 401: Receive target data sent by a first application. After determining that the data type indicates that the target data is object-type data, the first application obtains the identifier of the second application from the application attribute set to which the target data belongs, and sends the target data based on the identifier of the second application. Upon detecting a change in data information in the application attribute set, the first application determines whether the target data in the changed data information is object-type data. The first application includes an application attribute set for each of at least one second application, and the application attribute set includes the identifier of the second application and the data information of the second application.
[0079] In this embodiment, the execution subject of the method for transmitting information (eg Figure 1 The second application 101, 102, 103 shown in FIG. 1 can receive the target data sent by the first application, wherein the method of the first application sending the target data to the second application is the same as that of FIG. Figure 2 and Figure 3 The methods in the described embodiments are the same and will not be described again here.
[0080] The method for transmitting information provided in this embodiment is that the first application obtains an application attribute set of the second application for each second application in at least one second application, wherein the application attribute set includes an identifier of the second application and data information of the second application; in response to monitoring a change in the data information in the application attribute set, the method determines the data type in the changed data information and whether it represents that the target data in the changed data information is object-type data; in response to determining that the data type represents that the target data is object-type data, the method obtains the identifier of the target second application from the application attribute set to which the target data belongs; based on the identifier of the target second application, the method sends the target data to the target second application. When the first application monitors a change in the data information in the application attribute set, the method automatically sends data to the second application corresponding to the changed data information, thereby improving the efficiency of sending data, and only sends data to the second application corresponding to the changed data information, thereby improving the targeted data sending and avoiding wasting communication resources.
[0081] Optionally, the second application is communicatively connected to the data center, and the data center includes a monitoring function corresponding to the second application. Receiving target data sent by the first application includes: receiving the target data based on the monitoring function corresponding to the second application.
[0082] In this embodiment, there is a communication connection between the second application and the data center, and the second application and the first application can communicate through the data center. The data center includes a monitoring function corresponding to each second application. The monitoring function corresponding to the second application can be a monitoring function bound to the second application, used to monitor whether the second application needs to send data to the first application and to transmit the data sent by the first application to the second application.
[0083] In this embodiment, the second application performs data transmission with the first application based on the monitoring function corresponding to the second application in the data center. Functions such as data monitoring and data transmission can be implemented through the data center, reducing the general functions of the second application, allowing the second application to focus on its main functions or business, which is conducive to the componentized operation and development and maintenance of the second application.
[0084] Optionally, the method for transmitting data further includes: in response to detecting an instruction for indicating stopping monitoring data, sending an instruction for instructing a monitoring function corresponding to the second application to stop monitoring data to the data center.
[0085] In this embodiment, if the second application detects an instruction indicating the stop of data monitoring, the second application may send a stop data monitoring instruction to the data center, so that the monitoring function corresponding to the second application in the data center stops monitoring / receiving data sent by the first application to the second application, or stops monitoring / receiving data sent by the second application to the first application. The instruction indicating the stop of data monitoring may be a user-initiated instruction or a instruction generated by the second application after receiving the uninstall instruction.
[0086] In this embodiment, the second application can release the binding with the corresponding monitoring function in the data center to stop sending and receiving data with the first application, which can improve the flexibility of the second application in sending and receiving data.
[0087] Continue to refer Figure 5 , shows a process 500 of an embodiment of a method for transmitting information according to the present disclosure, which is applied to a data center, the data center being communicatively connected to a first application, and the data center being communicatively connected to at least one second application, the data center including: an attribute monitoring function for monitoring an application attribute set in the first application, and at least one monitoring function corresponding to each of the at least one second application, the method including the following steps:
[0088] Step 501 : In response to monitoring a change in data information in an application attribute set of a first application, a trigger message indicating that an attribute monitoring function is triggered is sent to the first application.
[0089] In this embodiment, a communication connection exists between the data center and the first application, and a communication connection exists between the data center and at least one second application. The data center includes an attribute monitoring function for monitoring the application attribute set of the first application. The data center includes at least one monitoring function corresponding to each second application, and the monitoring function is used to monitor data sent by the corresponding second application to the first application, and is used to monitor data sent by the first application to the second application.
[0090] When the executing subject of the method for transmitting information monitors that the data information in the application attribute set in the first application has changed, a trigger message is sent to the first application to indicate that the attribute monitoring function is triggered, so that the first application monitors that the data information in the application attribute set has changed, and after the first application determines the data type in the changed data information and indicates that the target data in the changed data information is object type data, the identifier of the target second application is obtained from the application attribute set to which the target data belongs.
[0091] Step 502: Receive the identifier of the target second application returned by the first application based on the trigger message, and the target data for triggering the attribute monitoring function.
[0092] In this embodiment, the data center receives the identifier of the target second application returned by the first application based on the trigger message, as well as the target data that triggers the attribute listening function (when the data in a certain data information changes, the application attribute set to which the changed data belongs also changes, and the attribute listening function will be triggered).
[0093] Step 503: Determine a target monitoring function corresponding to the target second application from at least one monitoring function according to the identifier of the target second application.
[0094] In this embodiment, the data center can determine the listening function corresponding to the identifier of the target second application from the listening functions corresponding to each second application in the data center based on the identifier of the target second application. The listening function corresponding to the identifier of the target second application is the target listening function corresponding to / bound to the target second application.
[0095] Step 504: Transmit the target data to the target second application through the target monitoring function.
[0096] In this embodiment, the data center may use the target data as a parameter in the target monitoring function, so as to transmit the target data transmitted from the first application to the target second application to the target second application through the target monitoring function.
[0097] The method for transmitting data provided in this embodiment monitors changes in data information in an application attribute set in a first application at a data center, and sends a trigger message to the first application to indicate that an attribute monitoring function has been triggered; receives an identifier of a target second application returned by the first application based on the trigger message, and target data for triggering the attribute monitoring function; determines a target monitoring function corresponding to the target second application from at least one monitoring function based on the identifier of the target second application; and transmits target data to the target second application through the target monitoring function, thereby improving data transmission efficiency and targeted data transmission.
[0098] In addition, functions such as data monitoring and data transmission between the first application and the second application can be implemented through the data center, reducing the common functions of the first application and the second application, so that the first application and the second application can focus on their main functions or businesses, which is conducive to the componentized operation and development and maintenance of the first application and the second application.
[0099] Optionally, the method for transmitting data includes: in response to receiving a message indicating that uninstallation of the preset second application from the first application is complete, terminating a monitoring operation of a monitoring function corresponding to the preset second application.
[0100] In this embodiment, when the data center receives a message indicating that a preset second application has been uninstalled from a first application, it can terminate the monitoring operation of the monitoring function corresponding to the uninstalled second application in the data center, thereby preventing the monitoring function in the data center from continuing to monitor the data of the second application that has been uninstalled from the first application, thereby saving communication and system resources. Terminating the data monitoring operation can be achieved by unbinding the monitoring function from the second application, uninstalling the corresponding monitoring function from the data center, and so on.
[0101] In some application scenarios, the first application may be a base application in a micro-frontend architecture, and the multiple second applications may be multiple sub-applications in the micro-frontend architecture. The data center may be used to provide communication services between the base application and the multiple sub-applications.
[0102] like Figure 6 As shown, data transmission between the base application and the sub-application may include the following steps:
[0103] Step 601: Insert a sub-application element into the base application: Create an element for each sub-application in the base application (i.e., a set of application attributes for each sub-application), and set the following attributes in each sub-application element: the sub-application identifier, the sub-application address, and data information, where the data information includes data and the data type of the data. For example, the element for each sub-application (i.e., a set of application attributes for each sub-application) may be {identifier, address, data information (data, data type)}.
[0104] Step 602: Display sub-applications: The base application retrieves the display information of each sub-application based on its address and displays the information on the base application's display interface. For example, the base application retrieves HTML (Hypertext Markup Language) data for each sub-application based on its URL (Uniform Resource Locator) address, processes the HTML data, and renders it on the base application's display interface.
[0105] Step 603, the base application binds the monitoring function: the base application can be bound to the monitoring function corresponding to each sub-application in the data center to receive data transmitted by the sub-application to the base application, or the base application can be bound to the monitoring function corresponding to the base application to monitor the data published by each sub-application through the monitoring function corresponding to the base application.
[0106] The data center includes a publish-subscribe system and a data cache center. Through the publish-subscribe system, the listener functions corresponding to the base application and the sub-application can be bound based on the sub-application's identifier. Published data can first be cached in the data cache center. When the publish-subscribe system receives a new subscription (e.g., a base application subscribes to a sub-application's data in order to receive data published by that sub-application, or a sub-application subscribes to a base application's data in order to receive data published by the base application), the cached data in the data cache can be sent to the new subscriber, thereby implementing a publish-first-then-subscribe function for data and avoiding data loss or omission.
[0107] Step 604 : The sub-application is bound to the corresponding monitoring function through the identifier: the sub-application monitors the data released by the base application through the monitoring function corresponding to the sub-application.
[0108] Step 605, the base application and the sub-application are all bound to the global listening function: the base application is bound to the global listening function in the data center, and each sub-application is bound to the global listening function. When the base application needs to publish data to the global sub-application, the global listening function can be triggered so that each sub-application can receive the data published by the base application through the global listening function, or when a sub-application needs to send data to other sub-applications and the base application, the global listening function can be triggered so that other sub-applications and the base application can receive the data published by the sub-application through the global listening function.
[0109] Step 606: The property monitoring function monitors the application property changes of the sub-application elements (ie, the application property set) in the base application. If the property monitoring function monitors the property changes in the base application, step 607 is executed.
[0110] Step 607 , determining whether the changed attribute is an attribute in the element of the sub-application, if so, executing step 608 , otherwise executing the operation indicated by the changed attribute.
[0111] Step 608 , determining whether the changed attribute is the attribute of data information in the element of the sub-application; if so, executing step 609 ; otherwise, executing the operation indicated by the changed attribute.
[0112] Step 609 , determining whether the data type in the changed data information indicates that the data type of the changed target data is an object type; if so, executing step 610 ; otherwise, executing the operation indicated by the changed attribute.
[0113] Step 610, obtaining the sub-application identifier: determining the element of the sub-application to which the changed data information belongs, obtaining the identifier from the element of the sub-application, using the identifier as the identifier of the target sub-application, and publishing the target data to the target sub-application based on the data center.
[0114] In this application scenario, the way in which the sub-application publishes data to the base application may include: publishing data to the base application based on the identifier of the sub-application through the publish-subscribe system in the data center; or, defining a preset event based on the browser's built-in method for creating custom events, and writing the published data into the data attributes of the custom event object, and sending the custom event based on the identifier of the sub-application so that the base application receives the published data of the sub-application corresponding to the identifier.
[0115] In this application scenario, the base application may monitor data from the sub-application in the following ways: the base application may receive data published by the sub-application based on the sub-application's identifier through the publish-subscribe system in the data center; or the base application may receive data sent by the sub-application by monitoring custom preset events in the sub-application's elements.
[0116] In this application scenario, the system structure consisting of base application, various sub-applications, and data center is as follows: Figure 7 As shown, Figure 7 In the data center, the data center includes a sub-application data communication channel, which serves the data release from the base application to the sub-application, performs data processing, listener function query (searches for the listener function of the corresponding sub-application based on the identifier of the sub-application), and executes the listener function of the sub-application (transmits data to the sub-application based on the listener function of the sub-application); the sub-application data communication channel also serves the data release from the sub-application to the base application, performs data processing, listener function query, and executes the listener function of the sub-application (transmits data to the base application based on the listener function of the sub-application).
[0117] The data center also includes a global data communication channel, which is used to process the data released by the base application or sub-application and trigger the global monitoring function so that the global sub-application or base application receives the data.
[0118] The data center also includes functions such as unbinding the listening function from the sub-application or base application, uninstalling or clearing the listening function, data subscription function, or automatically unbinding the corresponding listening function after the sub-application is uninstalled.
[0119] Further references Figure 8 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for transmitting information. Figure 2 and Figure 3 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0120] like Figure 8 As shown, the apparatus 800 for transmitting information in this embodiment is applied to a first application and includes: a first acquisition unit 801, a judgment unit 802, a second acquisition unit 803, and a first sending unit 804. The first acquisition unit is configured to, for each second application in at least one second application, acquire an application attribute set of the second application, wherein the application attribute set includes an identifier of the second application and data information of the second application; the judgment unit is configured to, in response to monitoring a change in the data information in the application attribute set, determine the data type in the changed data information and whether it indicates that the target data in the changed data information is object-type data; the second acquisition unit, in response to determining that the data type indicates that the target data is object-type data, acquires the identifier of the target second application from the application attribute set to which the target data belongs; and the first sending unit is configured to send the target data to the target second application based on the identifier of the target second application.
[0121] In some embodiments, the application attribute set also includes the address of the second application, and the device for transmitting information includes: a third acquisition unit, configured to obtain the display information of the second application based on the address of the second application; and a display unit, configured to display the display information of the second application in the display interface of the first application.
[0122] In some embodiments, the apparatus for transmitting information includes: a monitoring unit configured to receive data sent by the second application based on the preset event in response to monitoring the preset event.
[0123] In some embodiments, the second acquisition unit includes: an acquisition module, configured to obtain the identifier of each second application from the application attribute set of each second application in response to monitoring an instruction for characterizing the sending of data to a global second application; the first sending unit includes: a first sending module, configured to send target data to each second application based on the identifier of each second application.
[0124] In some embodiments, the first application is communicatively connected to a data center, and the data center includes an attribute monitoring function for monitoring changes in a set of application attributes. The judgment unit includes: a judgment module, configured to respond to receiving a message sent by the data center to characterize that the attribute monitoring function is triggered; and a first sending unit, including: a second sending module, configured to send target data to the target second application through the data center according to an identifier of the target second application.
[0125] Each unit in the above device 800 is consistent with the reference Figure 2 and Figure 3 Therefore, the operations, features and technical effects achieved by the method for generating information described above are also applicable to the apparatus 800 and the units included therein, and will not be described in detail here.
[0126] Further references Figure 9 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for transmitting information. Figure 4 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0127] like Figure 9 As shown, the apparatus 900 for transmitting information in this embodiment is applied to a second application and includes a first receiving unit 901. The first receiving unit is configured to receive target data sent by a first application; after determining that the data type indicates that the target data is object-type data, the first application obtains the identifier of the second application from the application attribute set to which the target data belongs, and sends the target data based on the identifier of the second application; upon detecting a change in data information in the application attribute set, the first application determines whether the target data in the changed data information is object-type data; the first application includes an application attribute set for each of at least one second application, and the application attribute set includes the identifier of the second application and the data information of the second application.
[0128] In some embodiments, the second application is communicatively connected to a data center, and the data center includes a monitoring function corresponding to the second application. The first receiving unit includes: a first receiving module that receives target data based on the monitoring function corresponding to the second application.
[0129] In some embodiments, the method for transmitting information includes: a termination monitoring unit configured to send an instruction for instructing a monitoring function corresponding to the second application to stop monitoring data to a data center in response to detecting an instruction for indicating stopping monitoring data.
[0130] Each unit in the above-mentioned device 900 is consistent with the reference Figure 4 Therefore, the operations, features and technical effects achieved by the method described above for generating information are also applicable to the device 900 and the units included therein, and will not be described in detail here.
[0131] Further references Figure 10 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for transmitting information. Figure 5Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0132] like Figure 10 As shown, the apparatus 1000 for transmitting information in this embodiment is applied to a data center, the data center being communicatively connected to a first application and to at least one second application. The data center includes: an attribute listening function for monitoring an application attribute set in the first application, and at least one listening function corresponding to at least one second application. The apparatus includes: a second sending unit 1001, a second receiving unit 1002, a determining unit 1003, and a parameter writing unit 1004. The second sending unit is configured to, in response to monitoring a change in data information in the application attribute set in the first application, send a trigger message to the first application indicating that the attribute listening function has been triggered; the second receiving unit is configured to receive an identifier of the target second application returned by the first application based on the trigger message, and target data for triggering the attribute listening function; the determining unit is configured to determine, from the at least one listening function, a target listening function corresponding to the target second application based on the identifier of the target second application; and the parameter writing unit is configured to transmit the target data to the target second application via the target listening function.
[0133] In some embodiments, the method for transmitting information includes: a removing unit configured to terminate a monitoring operation of a monitoring function corresponding to the preset second application in response to receiving a message indicating that the preset second application is completely uninstalled from the first application.
[0134] Each unit in the above device 1000 is similar to the reference Figure 5 Therefore, the operations, features and technical effects achieved by the method for generating information described above are also applicable to the device 1000 and the units included therein, and will not be described in detail here.
[0135] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0136] like Figure 11 , is a block diagram of an electronic device 1100 for a method of transmitting information according to an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or claimed herein.
[0137] like Figure 11 As shown, the electronic device includes: one or more processors 1101, a memory 1102, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 11 A processor 1101 is taken as an example.
[0138] Memory 1102 is the non-transitory computer-readable storage medium provided in this application. The memory stores instructions executable by at least one processor to cause the at least one processor to perform the method for transmitting information provided in this application. The non-transitory computer-readable storage medium of this application stores computer instructions for causing a computer to perform the method for transmitting information provided in this application.
[0139] The memory 1102 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as the program instructions / modules corresponding to the method for transmitting information in the embodiment of the present application (for example, the attached Figure 8 The processor 1101 executes the non-transient software programs, instructions, and modules stored in the memory 1102 to execute various functional applications and data processing of the server, that is, to implement the method for transmitting information in the above method embodiment.
[0140] Memory 1102 may include a program storage area and a data storage area. The program storage area may store an operating system and applications required for at least one function; the data storage area may store data generated based on the use of the electronic device used to extract video clips. Furthermore, memory 1102 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state memory device. In some embodiments, memory 1102 may optionally include memory remotely located relative to processor 1101. Such remote memory may be connected to the electronic device used to extract video clips via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0141] The electronic device for transmitting information may further include: an input device 1103, an output device 1104 and a bus 1105. The processor 1101, the memory 1102, the input device 1103 and the output device 1104 may be connected via the bus 1105 or other means. Figure 11 The connection via bus 1105 is taken as an example.
[0142] The input device 1103 can receive input digital or character information and generate key signal input related to user settings and function control of the electronic device used to extract the video clip, such as an input device such as a touch screen, a keypad, a mouse, a trackpad, a touch pad, a pointer, one or more mouse buttons, a trackball, a joystick, etc. The output device 1104 can include a display device, an auxiliary lighting device (e.g., an LED), and a tactile feedback device (e.g., a vibration motor). The display device can include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device can be a touch screen.
[0143] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0144] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for a programmable processor and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., a magnetic disk, an optical disk, a memory, a programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0145] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0146] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.
[0147] Computer systems may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The client and server relationship arises through computer programs running on the respective computers and having a client-server relationship to each other.
[0148] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this application can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this application can be achieved. This is not a limitation herein.
[0149] The above specific embodiments do not constitute a limitation on the scope of protection of this application. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application shall be included within the scope of protection of this application.
Claims
1. A method for transmitting information, applied to a first application, comprising: For each second application of the at least one second application, obtaining an application attribute set of the second application, wherein the application attribute set includes an identifier of the second application and data information of the second application; In response to monitoring a change in the data information in the application attribute set, determining a data type in the changed data information and whether it indicates that target data in the changed data information is object type data; In response to determining that the data type represents that the target data is data of the object type, obtaining an identifier of a target second application from an application attribute set to which the target data belongs; sending the target data to the target second application according to the identifier of the target second application; The first application is in communication with a data center, the data center includes an attribute monitoring function for monitoring changes in an application attribute set, and the response to monitoring changes in data information in the application attribute set includes: In response to receiving a message sent by the data center indicating that the attribute monitoring function is triggered; The sending the target data to the target second application according to the identifier of the target second application includes: The target data is sent to the target second application through the data center according to the identifier of the target second application.
2. The method according to claim 1, wherein The application attribute set also includes an address of the second application, and the method includes: Obtaining display information of the second application according to the address of the second application; Display the display information of the second application in the display interface of the first application.
3. The method according to claim 1, wherein The method comprises: In response to monitoring a preset event, data sent by the second application based on the preset event is received.
4. The method according to claim 1, wherein The acquiring the identifier of the target second application from the application attribute set to which the target data belongs includes: In response to monitoring an instruction for indicating sending data to a global second application, obtaining an identifier of each second application from an application attribute set of each second application; The sending the target data to the target second application according to the identifier of the target second application includes: The target data is sent to each second application according to the identifier of each second application.
5. A method for transmitting information, applied to a second application, comprising: receiving target data sent by the first application; Among them, after determining that the data type represents that the target data is object type data, the first application obtains the identifier of the second application from the application attribute set to which the target data belongs, and sends the target data according to the identifier of the second application; when the first application monitors that the data information in the application attribute set has changed, it determines whether the target data in the changed data information is object type data; the first application includes an application attribute set for each second application in at least one second application, and the application attribute set includes the identifier of the second application and the data information of the second application. The first application is communicatively connected to a data center, and the data center includes an attribute monitoring function for monitoring changes in the application attribute set. The first application receives a message sent by the data center to represent that the attribute monitoring function is triggered, and sends the target data to the target second application through the data center according to the identifier of the target second application.
6. The method according to claim 5, wherein: The second application is communicatively connected to a data center, the data center includes a monitoring function corresponding to the second application, and the receiving of target data sent by the first application includes: The target data is received based on a monitoring function corresponding to the second application.
7. The method according to claim 6, wherein: The method comprises: In response to detecting an instruction for indicating stopping monitoring data, an instruction for instructing a monitoring function corresponding to the second application to stop monitoring data is sent to the data center.
8. A method for transmitting information, applied to a data center, the data center being communicatively connected to a first application and the data center being communicatively connected to at least one second application, the data center comprising: The method includes: a property monitoring function for monitoring an application property set in the first application and at least one monitoring function corresponding to each of the at least one second application. In response to monitoring a change in data information in an application attribute set of the first application, sending a trigger message to the first application indicating that the attribute monitoring function has been triggered, wherein the application attribute set is a set of application attributes of each of at least one second application acquired by the first application for the second application, including an identifier of the second application and data information of the second application; receiving an identifier of a target second application returned by the first application based on the trigger message, and target data that triggers the attribute listening function, wherein the first application, after determining that a data type indicates that the target data is object-type data, obtains the identifier of the target second application from an application attribute set to which the target data belongs, and sends the target data according to the identifier of the target second application; determining, according to the identifier of the target second application, a target monitoring function corresponding to the target second application from the at least one monitoring function; The target data is transmitted to the target second application through the target monitoring function.
9. The method according to claim 8, wherein The method comprises: In response to receiving a message indicating that uninstallation of the preset second application from the first application is complete, terminating a monitoring operation of the monitoring function corresponding to the preset second application.
10. A device for transmitting information, applied to a first application, comprising: A first acquiring unit is configured to acquire, for each second application of at least one second application, an application attribute set of the second application, wherein the application attribute set includes an identifier of the second application and data information of the second application; a judgment unit configured to, in response to monitoring a change in the data information in the application attribute set, determine a data type in the changed data information and whether target data in the changed data information is object-type data; a second acquiring unit, in response to determining that the data type represents that the target data is data of the object type, acquiring an identifier of a target second application from an application attribute set to which the target data belongs; a first sending unit, configured to send the target data to the target second application according to the identifier of the target second application; The first application is in communication with a data center, the data center includes an attribute monitoring function for monitoring changes in an application attribute set, and the judgment unit is further configured to: In response to receiving a message sent by the data center indicating that the attribute monitoring function is triggered; The first sending unit is further configured to: The target data is sent to the target second application through the data center according to the identifier of the target second application.
11. A device for transmitting information, applied to a second application, comprising: a first receiving unit, configured to receive target data sent by a first application; Among them, after determining that the data type represents that the target data is object type data, the first application obtains the identifier of the second application from the application attribute set to which the target data belongs, and sends the target data according to the identifier of the second application; when the first application monitors that the data information in the application attribute set has changed, it determines whether the target data in the changed data information is object type data; the first application includes an application attribute set for each second application in at least one second application, and the application attribute set includes the identifier of the second application and the data information of the second application. The first application is communicatively connected to a data center, and the data center includes an attribute monitoring function for monitoring changes in the application attribute set. The first application receives a message sent by the data center to represent that the attribute monitoring function is triggered, and sends the target data to the target second application through the data center according to the identifier of the target second application.
12. An apparatus for transmitting information, applied to a data center, the data center being communicatively connected to a first application and to at least one second application, the data center comprising: The device is configured to monitor an attribute monitoring function of an application attribute set in the first application and at least one monitoring function corresponding to each of the at least one second application, the device comprising: a second sending unit configured to, in response to monitoring a change in data information in an application attribute set in the first application, send, to the first application, a trigger message indicating that the attribute monitoring function has been triggered, wherein the application attribute set is a set of application attributes of each of at least one second application acquired by the first application for the second application, including an identifier of the second application and data information of the second application; a second receiving unit configured to receive an identifier of a target second application returned by the first application based on the trigger message, and target data that triggers the attribute listening function, wherein the first application, after determining that a data type indicates that the target data is object-type data, obtains the identifier of the target second application from an application attribute set to which the target data belongs, and sends the target data according to the identifier of the target second application; a determining unit configured to determine, according to the identifier of the target second application, a target monitoring function corresponding to the target second application from the at least one monitoring function; The parameter writing unit is configured to transmit the target data to the target second application through the target monitoring function.
13. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4, 5-7, or 8-9.
14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method of any one of claims 1-4, 5-7 or 8-9.
Citation Information
Patent Citations
Data transmission method and device of multiple opened applications and mobile terminal
CN106445706A
Link information generation method, device and system, storage medium and electronic device
CN110674404A