Application communication method and device, computer equipment and storage medium

By receiving and processing application request messages, forwarding messages are determined based on system type identification and forwarding to the terminal system, the problem of incompatibility between the application and the terminal system is solved, cross-platform communication is realized, and development costs are reduced.

CN119166379APending Publication Date: 2024-12-20BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410993178.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In the prior art, different applications need to be developed for each terminal system (such as Android, Apple, Hongmeng, etc.), resulting in high development costs and incompatible applications with terminal systems, and unable to communicate normally.

Method used

Provide an application communication method, by receiving the request message sent by the target application, determining the forwarding message based on the message content and system type identification, and forwarding the message to the terminal system through the target forwarding interface, realizing the target application and the terminal system Communication, there is no need to develop different applications for different terminal systems.

Benefits of technology

The normal communication between the target application and different terminal systems is achieved, which saves development costs and solves the problem of incompatibility between the application and the terminal system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166379A_ABST
    Figure CN119166379A_ABST
Patent Text Reader

Abstract

The invention relates to an application program communication method and device, computer equipment and a storage medium. Belongs to the technical field of artificial intelligence. Wherein the request message carries message content and a system type identifier used for representing a terminal system type corresponding to the target application program, determining a forwarding message according to the message content and the system type identifier, and forwarding the forwarding message to the terminal system through the target forwarding interface so as to realize communication between the target application program and the terminal system. The problem that the target application program is incompatible with the terminal system and cannot normally communicate with the terminal system is effectively solved, the target application program can normally communicate with different terminal systems based on the method, corresponding target application programs do not need to be developed for different terminal systems, and the development cost of the target application program is greatly saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to an application communication method, device, computer equipment and storage medium. Background Art

[0002] With the rapid development of mobile terminal technology, terminal systems have gradually become diversified. Currently, the most widely used terminal systems include Android, Apple, and Hongmeng.

[0003] With the diversification of terminal systems, the development of terminal applications has also brought development difficulties, because the application to be developed must be applicable to each terminal system, otherwise it will affect the promotion of the application. At present, when developing applications, a corresponding application is developed for each terminal system to ensure the normal communication between the application and the terminal system, resulting in high application development costs. Summary of the invention

[0004] Based on this, it is necessary to provide an application communication method, device, computer equipment and storage medium that can be applied to multiple terminal systems in order to address the above technical problems.

[0005] In a first aspect, the present application provides an application communication method. The method comprises:

[0006] Receive a request message sent by a target application; wherein the request message carries message content and a system type identifier for characterizing a terminal system type corresponding to the target application;

[0007] Determine the forwarding message according to the message content and system type identifier;

[0008] The forwarding message is forwarded to the terminal system through the target forwarding interface to realize the communication between the target application and the terminal system.

[0009] In one embodiment, determining to forward the message according to the message content and the system type identifier includes:

[0010] Matching the system type identifier with the target system identifier;

[0011] Determine the forwarding message based on the matching result and the message content.

[0012] In one embodiment, determining to forward the message according to the matching result and the message content includes:

[0013] If the matching result is successful, the message content is used as the forwarding message.

[0014] In one embodiment, determining to forward the message according to the matching result and the message content includes:

[0015] If the matching result is failure, the message forwarding is determined based on the message content and system type identifier.

[0016] In one embodiment, the method further comprises:

[0017] Determine candidate forwarding interfaces according to the target system identifier;

[0018] The target forwarding interface is determined according to the message content and the interface performance parameters of each candidate forwarding interface.

[0019] In one embodiment, determining the target forwarding interface according to the message content and the interface performance parameters of each candidate forwarding interface includes:

[0020] Determine a preliminary forwarding interface from among the candidate forwarding interfaces according to the message content and the application version number of the target application;

[0021] According to the interface performance parameters of each preliminary forwarding interface and the system version number of the terminal system, a target forwarding interface is determined from each preliminary forwarding interface.

[0022] In a second aspect, the present application also provides an application communication device. The device includes:

[0023] A receiving module, used to receive a request message sent by a target application; wherein the request message carries a message content and a system type identifier used to characterize a terminal system type corresponding to the target application;

[0024] A first determination module, used to determine the forwarding message according to the message content and the system type identifier;

[0025] The forwarding module is used to forward the forwarding message to the terminal system through the target forwarding interface to realize the communication between the target application and the terminal system.

[0026] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0027] Receive a request message sent by a target application; wherein the request message carries message content and a system type identifier for characterizing a terminal system type corresponding to the target application;

[0028] Determine the forwarding message according to the message content and system type identifier;

[0029] The forwarding message is forwarded to the terminal system through the target forwarding interface to realize the communication between the target application and the terminal system.

[0030] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0031] Receive a request message sent by a target application; wherein the request message carries message content and a system type identifier for characterizing a terminal system type corresponding to the target application;

[0032] Determine the forwarding message according to the message content and system type identifier;

[0033] The forwarding message is forwarded to the terminal system through the target forwarding interface to realize the communication between the target application and the terminal system.

[0034] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0035] Receive a request message sent by a target application; wherein the request message carries message content and a system type identifier for characterizing a terminal system type corresponding to the target application;

[0036] Determine the forwarding message according to the message content and system type identifier;

[0037] The forwarding message is forwarded to the terminal system through the target forwarding interface to realize the communication between the target application and the terminal system.

[0038] The above-mentioned application communication method, device, computer equipment and storage medium receive a request message sent by a target application; wherein the request message carries a message content and a system type identifier for characterizing the terminal system type corresponding to the target application, and determines a forwarding message based on the message content and the system type identifier, and forwards the forwarding message to the terminal system through a target forwarding interface to achieve communication between the target application and the terminal system, effectively solving the problem that the target application is incompatible with the terminal system and cannot communicate normally. Based on the method of the present application, the target application can communicate normally with different terminal systems, and there is no need to develop corresponding target applications for different terminal systems, which greatly saves the development cost of the target application. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 An application environment diagram of the application communication method provided in this embodiment;

[0040] Figure 2 A schematic diagram of a flow chart of a first application communication method provided in this embodiment;

[0041] Figure 3A schematic diagram of a process for determining a forwarding message provided in this embodiment;

[0042] Figure 4 A schematic diagram of a process for determining a target forwarding interface provided in this embodiment;

[0043] Figure 5 A schematic diagram of a flow chart of a second application communication method provided in this embodiment;

[0044] Figure 6 A structural block diagram of a first application communication device provided in this embodiment;

[0045] Figure 7 A structural block diagram of a second application communication device provided in this embodiment;

[0046] Figure 8 This is a diagram of the internal structure of the computer device provided in this embodiment. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] The application communication method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the intermediate communication component 104 receives the request message sent by the target application 102; wherein the request message carries the message content and the system type identifier used to characterize the terminal system type corresponding to the target application; the intermediate communication component 104 determines the forwarding message according to the message content and the system type identifier, and forwards the forwarding message to the terminal system 106 through the target forwarding interface to realize the communication between the target application 102 and the terminal system 106, which effectively solves the problem that the target application is incompatible with the terminal system and cannot communicate normally. Based on this embodiment, the target application 102 can communicate normally with different terminal systems 106, and there is no need to develop corresponding target applications 102 for different terminal systems 106, which greatly saves the development cost of the target application 102.

[0049] The intermediate communication component in this embodiment may be a software program, a hardware circuit, or a combined communication component formed by a combination of hardware and software.

[0050] In one embodiment, an application communication method is provided, which is applied to Figure 1 The middleware in the example is used to illustrate. Figure 2 As shown, the following steps are included:

[0051] S201, receiving a request message sent by a target application; wherein the request message carries message content and a system type identifier for representing a terminal system type corresponding to the target application.

[0052] Among them, the target application refers to the application under development that needs to communicate normally with the terminal system. The request message refers to the message sent by the target application, carrying the message content and the system type identifier. The message content refers to the message content carried in the request message sent by the target application to instruct the terminal system to perform the corresponding operation, such as opening the camera, calling the address book, etc. The mobile terminal refers to terminal devices such as mobile phones and smart watches. The terminal system type refers to the operating system type of the mobile terminal, such as Android system, Apple system and Hongmeng system. The system type identifier refers to the identifier of the terminal system type corresponding to the target application, that is, the terminal system type corresponding to the system type identifier carried in the request message matches the target application that sends the request message, and the target application can directly communicate with the terminal system of this type.

[0053] An optional implementation of this embodiment is: receiving a request message sent by a target application through a fixed interface. The number of the fixed interface is one, and all request messages are received through the fixed interface.

[0054] Another optional implementation of this embodiment is: receiving the request message sent by the target application through the optimal receiving interface. The intermediate communication component includes multiple candidate receiving interfaces. Before receiving the request message, the candidate receiving interface with the best interface performance index is selected from the multiple candidate receiving interfaces as the optimal receiving interface. The optimal interface performance can be the lowest latency.

[0055] S202: Determine to forward the message according to the message content and the system type identifier.

[0056] The forwarding message refers to a message determined based on the message content and the system type identifier for forwarding to the terminal system.

[0057] Optionally, in this embodiment, the forwarding message is determined based on the message content, the system type identifier, and the target system identifier of the terminal system to be forwarded. Specifically, the system type identifier and the target system identifier can be compared. If they are consistent, there is no need to convert the format of the message content, and the forwarding message is directly determined based on the message content format. If they are inconsistent, the message content is converted based on the target system identifier so that the terminal system corresponding to the message content and the target system identifier can match and effectively identify.

[0058] S203, forwarding the forwarding message to the terminal system through the target forwarding interface to achieve communication between the target application and the terminal system.

[0059] The target forwarding interface refers to the interface through which the intermediate communication component sends the forwarding message to the terminal system.

[0060] The present embodiment receives a request message sent by a target application; wherein the request message carries a message content and a system type identifier for characterizing the terminal system type corresponding to the target application; based on the message content and the system type identifier, a forwarding message is determined, and the forwarding message is forwarded to the terminal system through a target forwarding interface to implement communication between the target application and the terminal system, thereby effectively solving the problem that the target application and the terminal system are incompatible and cannot communicate normally. Based on the method of the present application, the target application can communicate normally with different terminal systems, and there is no need to develop corresponding target applications for different terminal systems, which greatly saves the development cost of the target application.

[0061] In one embodiment, in order to quickly determine the forwarding message, such as Figure 3 As shown, an optional implementation of S202 includes:

[0062] S301, matching the system type identifier with the target system identifier.

[0063] The target system identifier refers to the system identifier of the terminal system to which the message is to be forwarded, that is, the system identifier of the terminal system to which the intermediate communication component is connected.

[0064] Optionally, in this embodiment, the intermediate communication component obtains the target system identifier of the connected terminal system, and matches the system type identifier of the request message with the target system identifier.

[0065] S302: Determine the message to be forwarded based on the matching result and the message content.

[0066] An optional implementation of this embodiment is: if the matching result is a successful match, the message content is used as a forwarding message.

[0067] Another optional implementation of this embodiment is: if the matching result is a failure, the forwarding message is determined according to the message content and the system type identifier. Specifically, if the matching result is a failure, the message content is converted according to the target system identifier to obtain the forwarding content so that the forwarding content can be normally recognized by the terminal system, and the system type identifier is adjusted so that the system type identifier matches the target system identifier, and the forwarding message is determined according to the forwarding content and the adjusted system type identifier.

[0068] In this embodiment, an optional implementation method for determining the forwarding message based on the forwarding content and the adjusted system type identifier is: adding the forwarding content to the content field of the forwarding message template, and adding the adjusted system type identifier to the identifier field of the forwarding message template to form a forwarding message.

[0069] In this embodiment, the system type identifier is matched with the target system identifier, and the forwarding message is quickly determined based on the matching result and the message content.

[0070] In one embodiment, if Figure 4 As shown, an optional implementation of an application communication method includes:

[0071] S401, determining a candidate forwarding interface according to a target system identifier.

[0072] The candidate forwarding interface refers to a selectable forwarding interface.

[0073] Optionally, in this embodiment, according to the target system identifier, a forwarding interface that can send a message to the terminal system corresponding to the target system identifier is selected from all forwarding interfaces, and such forwarding interface is used as a candidate forwarding interface.

[0074] S402, determining a target forwarding interface according to the message content and the interface performance parameters of each candidate forwarding interface.

[0075] The interface performance parameters refer to the parameters used to characterize the performance of the forwarding interface, such as delay parameters and throughput.

[0076] Optionally, in this embodiment, a preliminary forwarding interface is determined from each candidate forwarding interface based on the message content and the application version number of the target application, and a target forwarding interface is determined from each preliminary forwarding interface based on the interface performance parameters of each preliminary forwarding interface and the system version number of the terminal system.

[0077] In this embodiment, the first forwarding interface is determined from each candidate forwarding interface according to the message content and the application version number of the target application. An optional implementation method is as follows: a first screening condition is determined according to the message content, and a second screening condition is determined according to the application version number of the target application. A first forwarding interface is determined from each candidate forwarding interface according to the first screening condition and the second screening condition. The forwarding message forwarded by the obtained first forwarding interface supports both the message content and the target application with the corresponding version number.

[0078] In this embodiment, an optional implementation method for determining the target forwarding interface from each preliminary forwarding interface according to the interface performance parameters of each preliminary forwarding interface and the system version number of the terminal system is: determine the third screening condition according to the interface performance parameters of each preliminary forwarding interface, determine the fourth screening condition according to the system version number of the terminal system, and determine the target forwarding interface from each preliminary forwarding interface according to the third screening condition and the fourth screening condition. Among them, an optional method for determining the third screening condition according to the interface performance parameters of each preliminary forwarding interface is: according to the delay parameters of the interface performance parameters of each preliminary forwarding interface, use the delay parameter threshold as the third screening condition, and only the preliminary forwarding interfaces whose delay parameters of the interface performance parameters exceed the delay parameter threshold meet the requirements of the third screening condition. An optional implementation method for determining the fourth screening condition according to the system version number of the terminal system is: use the forwarding message that can be normally received and recognized by the terminal system corresponding to the system version number as the fourth screening condition.

[0079] In one embodiment, if Figure 5 As shown, an optional implementation of an application communication method includes:

[0080] S501, receiving a request message sent by a target application, wherein the request message carries message content and a system type identifier for representing a terminal system type corresponding to the target application.

[0081] S502, matching the system type identifier with the target system identifier to determine whether the match is successful. If the match is successful, execute S603; if the match fails, execute S604.

[0082] S503: Use the message content as a forwarded message.

[0083] S504: Determine to forward the message according to the message content and the system type identifier.

[0084] S505: Determine a candidate forwarding interface according to the target system identifier.

[0085] S506: Determine a preliminary forwarding interface from the candidate forwarding interfaces according to the message content and the application version number of the target application program.

[0086] S507 , determining a target forwarding interface from among the preliminary forwarding interfaces according to the interface performance parameters of the preliminary forwarding interfaces and the system version number of the terminal system.

[0087] S508, forwarding the forwarding message to the terminal system through the target forwarding interface to achieve communication between the target application and the terminal system.

[0088] In the present embodiment, a request message sent by a target application is received; wherein the request message carries message content and a system type identifier for characterizing the terminal system type corresponding to the target application; based on the message content and the system type identifier, a forwarding message is determined, and the forwarding message is forwarded to the terminal system through a target forwarding interface to implement communication between the target application and the terminal system, thereby effectively solving the problem that the target application and the terminal system are incompatible and cannot communicate normally; based on the method of the present application, the target application can communicate normally with different terminal systems, and there is no need to develop corresponding target applications for different terminal systems, which greatly saves the development cost of the target application.

[0089] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0090] Based on the same inventive concept, the embodiment of the present application also provides an application communication device for implementing the application communication method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations of one or more application communication device embodiments provided below can refer to the limitations of the application communication method above, and will not be repeated here.

[0091] In one embodiment, if Figure 6 As shown, an application communication device 1 is provided, comprising: a receiving module 10, a first determining module 20 and a forwarding module 30, wherein:

[0092] The receiving module 10 is used to receive a request message sent by a target application; wherein the request message carries a message content and a system type identifier for representing a terminal system type corresponding to the target application;

[0093] A first determination module 20, configured to determine, based on the message content and the system type identifier, whether to forward the message;

[0094] The forwarding module 30 is used to forward the forwarding message to the terminal system through the target forwarding interface to realize the communication between the target application and the terminal system.

[0095] The application communication device in this embodiment receives a request message sent by a target application; wherein the request message carries a message content and a system type identifier for characterizing the terminal system type corresponding to the target application, and determines a forwarding message based on the message content and the system type identifier, and forwards the forwarding message to the terminal system through a target forwarding interface to achieve communication between the target application and the terminal system, thereby effectively solving the problem that the target application is incompatible with the terminal system and cannot communicate normally. Based on the method of this application, the target application can communicate normally with different terminal systems, and there is no need to develop corresponding target applications for different terminal systems, which greatly saves the development cost of the target application.

[0096] In one embodiment, the Figure 6 The first determining module 20 further comprises:

[0097] A matching unit is used to match the system type identifier with the target system identifier.

[0098] The first determining unit is used to determine the forwarding message according to the matching result and the message content.

[0099] In one of the embodiments, the first determination unit is further specifically configured to: if the matching result is a successful match, use the message content as a forwarding message.

[0100] In one of the embodiments, the first determination unit is further specifically configured to: if the matching result is failure, determine to forward the message according to the message content and the system type identifier.

[0101] In one embodiment, if Figure 7 As shown above Figure 6 Based on the application communication device, it also includes:

[0102] The second determination module 40 is used to determine a candidate forwarding interface according to the target system identifier.

[0103] The third determination module 50 is used to determine the target forwarding interface according to the message content and the interface performance parameters of each candidate forwarding interface.

[0104] In one embodiment, the Figure 7 The third determining module 50 further comprises:

[0105] A second determining unit, configured to determine a preliminary forwarding interface from among the candidate forwarding interfaces according to the message content and the application version number of the target application program;

[0106] The third determining unit is used to determine a target forwarding interface from each of the preliminary forwarding interfaces according to the interface performance parameters of each of the preliminary forwarding interfaces and the system version number of the terminal system.

[0107] Each module in the above application communication device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0108] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store application communication information. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an application communication method is implemented.

[0109] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0110] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0111] Receive a request message sent by a target application; wherein the request message carries message content and a system type identifier for characterizing a terminal system type corresponding to the target application;

[0112] Determine the forwarding message according to the message content and system type identifier;

[0113] The forwarding message is forwarded to the terminal system through the target forwarding interface to realize the communication between the target application and the terminal system.

[0114] In one embodiment, when the processor executes the computer program, the following steps are further implemented: determining to forward the message according to the message content and the system type identifier, including:

[0115] Matching the system type identifier with the target system identifier;

[0116] Determine the forwarding message based on the matching result and the message content.

[0117] In one embodiment, when the processor executes the computer program, the following steps are further implemented: determining to forward the message according to the matching result and the message content, including:

[0118] If the matching result is successful, the message content is used as the forwarding message.

[0119] In one embodiment, when the processor executes the computer program, the following steps are further implemented: determining to forward the message according to the matching result and the message content, including:

[0120] If the matching result is failure, the message forwarding is determined based on the message content and system type identifier.

[0121] In one embodiment, when the processor executes the computer program, the following steps are also implemented: the method further includes:

[0122] Determine candidate forwarding interfaces according to the target system identifier;

[0123] The target forwarding interface is determined according to the message content and the interface performance parameters of each candidate forwarding interface.

[0124] In one embodiment, when the processor executes the computer program, the following steps are further implemented: determining the target forwarding interface according to the message content and the interface performance parameters of each candidate forwarding interface, including:

[0125] Determine a preliminary forwarding interface from among the candidate forwarding interfaces according to the message content and the application version number of the target application;

[0126] According to the interface performance parameters of each preliminary forwarding interface and the system version number of the terminal system, a target forwarding interface is determined from each preliminary forwarding interface.

[0127] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0128] Receive a request message sent by a target application; wherein the request message carries message content and a system type identifier for characterizing a terminal system type corresponding to the target application;

[0129] Determine the forwarding message according to the message content and system type identifier;

[0130] The forwarding message is forwarded to the terminal system through the target forwarding interface to realize the communication between the target application and the terminal system.

[0131] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining to forward the message according to the message content and the system type identifier, including:

[0132] Matching the system type identifier with the target system identifier;

[0133] Determine the forwarding message based on the matching result and the message content.

[0134] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining to forward the message according to the matching result and the message content, including:

[0135] If the matching result is successful, the message content is used as the forwarding message.

[0136] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining to forward the message according to the matching result and the message content, including:

[0137] If the matching result is failure, the message forwarding is determined based on the message content and system type identifier.

[0138] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the method further includes:

[0139] Determine candidate forwarding interfaces according to the target system identifier;

[0140] The target forwarding interface is determined according to the message content and the interface performance parameters of each candidate forwarding interface.

[0141] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining the target forwarding interface according to the message content and the interface performance parameters of each candidate forwarding interface, including:

[0142] Determine a preliminary forwarding interface from among the candidate forwarding interfaces according to the message content and the application version number of the target application;

[0143] According to the interface performance parameters of each preliminary forwarding interface and the system version number of the terminal system, a target forwarding interface is determined from each preliminary forwarding interface.

[0144] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0145] Receive a request message sent by a target application; wherein the request message carries message content and a system type identifier for characterizing a terminal system type corresponding to the target application;

[0146] Determine the forwarding message according to the message content and system type identifier;

[0147] The forwarding message is forwarded to the terminal system through the target forwarding interface to realize the communication between the target application and the terminal system.

[0148] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining to forward the message according to the message content and the system type identifier, including:

[0149] Matching the system type identifier with the target system identifier;

[0150] Determine the forwarding message based on the matching result and the message content.

[0151] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining to forward the message according to the matching result and the message content, including:

[0152] If the matching result is successful, the message content is used as the forwarding message.

[0153] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining to forward the message according to the matching result and the message content, including:

[0154] If the matching result is failure, the message forwarding is determined based on the message content and system type identifier.

[0155] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the method further includes:

[0156] Determine candidate forwarding interfaces according to the target system identifier;

[0157] The target forwarding interface is determined according to the message content and the interface performance parameters of each candidate forwarding interface.

[0158] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining the target forwarding interface according to the message content and the interface performance parameters of each candidate forwarding interface, including:

[0159] Determine a preliminary forwarding interface from among the candidate forwarding interfaces according to the message content and the application version number of the target application;

[0160] According to the interface performance parameters of each preliminary forwarding interface and the system version number of the terminal system, a target forwarding interface is determined from each preliminary forwarding interface.

[0161] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0162] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0163] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An application communication method, characterized in that: The method comprises: Receive a request message sent by a target application; wherein the request message carries a message content and a system type identifier for characterizing a terminal system type corresponding to the target application; Determine, according to the message content and the system type identifier, to forward the message; The forwarding message is forwarded to the terminal system through the target forwarding interface to achieve communication between the target application and the terminal system.

2. The method according to claim 1, characterized in that The step of determining, according to the message content and the system type identifier, to forward the message includes: Matching the system type identifier with the target system identifier; Determine the forwarding message according to the matching result and the message content.

3. The method according to claim 2, characterized in that The step of determining the forwarding message according to the matching result and the message content includes: If the matching result is successful, the message content is used as the forwarding message.

4. The method according to claim 2, characterized in that: The step of determining the forwarding message according to the matching result and the message content includes: If the matching result is failure, the message is forwarded according to the message content and the system type identifier.

5. The method according to claim 1, characterized in that The method further comprises: Determine candidate forwarding interfaces according to the target system identifier; The target forwarding interface is determined according to the message content and the interface performance parameters of each candidate forwarding interface.

6. The method according to claim 5, characterized in that The step of determining the target forwarding interface according to the message content and the interface performance parameters of each candidate forwarding interface includes: Determine a preliminary forwarding interface from among the candidate forwarding interfaces according to the message content and the application version number of the target application; According to the interface performance parameters of each preliminary forwarding interface and the system version number of the terminal system, a target forwarding interface is determined from each preliminary forwarding interface.

7. An application communication device, characterized in that: include: A receiving module, used to receive a request message sent by a target application; wherein the request message carries a message content and a system type identifier for characterizing a terminal system type corresponding to the target application; A first determination module, configured to determine, based on the message content and the system type identifier, whether to forward the message; The forwarding module is used to forward the forwarding message to the terminal system through the target forwarding interface to realize the communication between the target application and the terminal system.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the application communication method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the application communication method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the application communication method described in any one of claims 1 to 6 are implemented.