Cross-language platform communication system

By designing a cross-language platform communication system and using the OC message center module to realize message subscription and forwarding, the problem of frequent changes in communication APIs during the use of cross-platform technology is solved, and efficient cross-platform communication and simplified development process is achieved.

CN119988060APending Publication Date: 2025-05-13HAINAN CHEZHIYITONG INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510088439.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-20
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In iOS APP page development, the use of cross-platform technology leads to changes in the development language of communication pages, and requires frequent changes or addition of communication APIs, resulting in high communication costs and low development efficiency among teams.

Method used

Design a cross-language platform communication system, including Flutter environment module, OC message center module, RN environment module and OC environment module, and realize message subscription and forwarding through the OC message center module to simplify the cross-platform communication process.

Benefits of technology

It realizes seamless connection of pages of different language platforms, simplifies the development process, improves development efficiency, and reduces communication costs and time costs between teams.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119988060A_ABST
    Figure CN119988060A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of languages, and discloses a cross-language platform communication system which is composed of a Flutter environment module, an OC message center module, an RN environment module and an OC environment module. And the OC message center module sends subscription messages to the Flutter environment module, the RN environment module and the OC environment module. Other cross-platform language processing schemes are introduced, so that the development process is remarkably simplified, the framework design is simple, the implementation difficulty is low, maintenance is easy, efficient and stable operation is ensured, more importantly, pages on different language platforms can be seamlessly connected, free circulation of information is achieved, language and technical barriers are broken, and the development efficiency is improved. The working efficiency of business developers is greatly improved, the communication cost, the labor cost and the time cost among teams are greatly reduced, and through the innovative scheme, enterprises are assisted to quickly respond to market requirements and accelerate product iteration, so that a precedent is occupied in fierce market competition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of language technology, and in particular relates to a cross-language platform communication system. Background Art

[0002] With the rapid development of mobile Internet, in order to respond to rapid iterations, more than one cross-platform technology has been deeply integrated into daily project development, such as Flutter, React Native, H5, etc.

[0003] In the actual development of iOS APP pages, there are often scenarios where business pages need to be added, modified, or even deleted, and even the development language of the page needs to be changed (Flutter, RN, H5, etc.). If the communicating pages are developed by different teams, it is also necessary to promptly notify the user or receiver, add or change the communication API, agree on the interaction plan, schedule the development, and even build different development environments for development and testing, which is labor-intensive and time-consuming and inefficient.

[0004] RN pages and Flutter pages can use react natview and Dart API to communicate in the language environment; however, when sending from RN pages to Flutter pages, due to the isolation of the environment, they need to be sent to the OC layer first and then passed to the page through the Flutter bridge class. Then both parties agree on the communication content format before sending and receiving messages, so they need to be modified and optimized. Summary of the invention

[0005] The purpose of the present invention is to provide a cross-language platform communication system to solve the problems raised in the above background technology.

[0006] In order to achieve the above-mentioned object, the present invention provides the following technical solutions: a cross-language platform communication system, the system comprising: a Flutter environment module, an OC message center module, an RN environment module and an OC environment module;

[0007] The OC message center module sends subscription messages to the Flutter environment module, RN environment module, and OC environment module.

[0008] Preferably, the operating steps of the system are:

[0009] A1, initialization message and monitoring. When the APP is initialized, the OC platform message center is initialized and monitored at the same time;

[0010] A2, initialization module and interface registration, initialization of RN environment components and message components, and registration of RN message components;

[0011] A3, message sending, the RN page sends information to the RN message component;

[0012] A4, message forwarding, the RN message component sends the ID of the message sent and the message sent by the ID to the OC message center;

[0013] A5, message formatting: OC message center formats the received message, sorts the message IDs, and puts them into the message queue;

[0014] A6, the platform calls to send messages, and the message queue sends messages through the subscription interface of the message components of various language platforms;

[0015] A7, message processing, the message component filters and forwards the message;

[0016] A8, close the RN page, release the RN environment after closing the RN page, and log out of the two interfaces at the same time.

[0017] Preferably, A1 is divided into two steps, namely:

[0018] B1, message initialization, when the APP is initialized, the OC platform message center is initialized;

[0019] B2, monitoring, the OC platform message center monitors the OC environment message component.

[0020] Preferably, A2 is divided into two steps, namely:

[0021] C1, module initialization, initialization of RN environment component and RN message component at the same time, and then opening the RN page;

[0022] C2, interface registration, registers the sending interface and subscription interface in the message component to the message center.

[0023] Preferably, the A7 is divided into two steps:

[0024] D1, message filtering, according to the subscription conditions, the message component filters the messages;

[0025] D2, message forwarding, the message component forwards the message to the corresponding business page.

[0026] Preferably, the two interfaces are a sending structure and a subscription interface respectively.

[0027] Preferably, the APP refers to: an application program on the iOS terminal;

[0028] Flutter: Flutter is an open source user interface (UI) toolkit developed by Google that helps developers efficiently build beautiful multi-platform applications through a set of code bases, supporting mobile, Web, desktop, and embedded platforms.

[0029] Preferably, the RN is the abbreviation of React Native, which is an open source application framework React Native developed by Meta based on React.js, and aims to allow developers to use JavaScript and React.js's declarative programming model to develop programs that run on multiple platforms.

[0030] The beneficial effects of the present invention are as follows:

[0031] The present invention creates a unified framework that is compatible with both iOS developers and Android developers by introducing other cross-platform language processing solutions. This solution does not require each business team to design a communication solution or write additional code, which significantly simplifies the development process. The framework design is streamlined, easy to implement, and easy to maintain, ensuring efficient and stable operation. More importantly, it can seamlessly connect pages on different language platforms, realize the free flow of information, and break down language and technical barriers. This not only greatly improves the work efficiency of business developers, but also greatly reduces the communication cost, labor cost and time cost between teams. Through this innovative solution, it helps companies to quickly respond to market demand and accelerate product iteration, thereby gaining an advantage in the fierce market competition. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is the overall framework diagram of the present invention;

[0033] Figure 2 This is the internal flow chart of the Fflutter environment module of the present invention;

[0034] Figure 3 This is an internal flow chart of the OC layer message center environment module of the present invention;

[0035] Figure 4 This is the internal flow chart of the RN environment module of the present invention;

[0036] Figure 5 This is the internal flow chart of the OC environment module of the present invention;

[0037] Figure 6 It is a schematic diagram of the overall process of the present invention;

[0038] Figure 7 Initialization message and monitoring flow chart of the present invention;

[0039] Figure 8This is a flowchart of the initialization module and interface registration of the present invention;

[0040] Fig. 9 This is a message processing flow chart of the present invention. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] like Figures 1 to 9 As shown, an embodiment of the present invention provides a cross-language platform communication system, characterized in that: the system consists of: a Flutter environment module, an OC message center module, an RN environment module and an OC environment module;

[0043] The OC message center module sends subscription messages to the Flutter environment module, RN environment module, and OC environment module.

[0044] By introducing other cross-platform language processing solutions, a unified framework has been created that is compatible with both iOS developers and Android developers. This solution does not require each business team to design a communication solution or write additional code, which significantly simplifies the development process. The framework is streamlined in design, easy to implement, and easy to maintain, ensuring efficient and stable operation. More importantly, it can seamlessly connect pages on different language platforms, achieve the free flow of information, and break down language and technical barriers. This not only greatly improves the work efficiency of business developers, but also greatly reduces the communication cost, labor cost and time cost between teams. Through this innovative solution, it helps companies quickly respond to market demand and accelerate product iteration, thereby gaining an advantage in the fierce market competition.

[0045] The operating steps of the system are:

[0046] A1, initialization message and monitoring. When the APP is initialized, the OC platform message center is initialized and monitored at the same time;

[0047] A2, initialization module and interface registration, initialization of RN environment components and message components, and registration of RN message components;

[0048] A3, message sending, the RN page sends information to the RN message component;

[0049] A4, message forwarding, the RN message component sends the ID of the message sent and the message sent by the ID to the OC message center;

[0050] A5, message formatting: OC message center formats the received message, sorts the message IDs, and puts them into the message queue;

[0051] A6, the platform calls to send messages, and the message queue sends messages through the subscription interface of the message components of various language platforms;

[0052] A7, message processing, the message component filters and forwards the message;

[0053] A8, close the RN page, release the RN environment after closing the RN page, and log out of the two interfaces at the same time.

[0054] Through a series of carefully designed operation steps, efficient information transmission and processing are achieved. In the APP initialization phase, the system initializes and monitors the OC platform message center to ensure real-time reception of information. Subsequently, the system initializes two key components of RN and registers the RN message component to lay the foundation for subsequent message sending. The RN page can easily send information to the RN message component, which is responsible for forwarding the message to the OC message center. The OC message center formats the received messages and arranges them in order in the message queue. After that, the message queue accurately sends messages to the target platform through the subscription interface of the message component of each language platform. After receiving the message, the message component will perform detailed filtering and forwarding to ensure accurate transmission of the information. When the RN page is closed, the system will release the RN environment and deregister the relevant interfaces to optimize resource utilization. This series of processes not only improves the efficiency of message transmission, but also significantly reduces development and maintenance costs.

[0055] Wherein, the A1 is divided into two steps, namely:

[0056] B1, message initialization, when the APP is initialized, the OC platform message center is initialized;

[0057] B2, monitoring, the OC platform message center monitors the OC environment message component.

[0058] By executing the message initialization steps, the message center of the OC platform is fully configured and started. Then, the message center of the OC platform will start the monitoring function to closely monitor the dynamics of message components in the OC environment to ensure that any message activities can be captured and responded to in real time. This series of operations is designed to lay a solid foundation for subsequent message transmission and processing and improve the efficiency and reliability of information flow.

[0059] Wherein, the A2 is divided into two steps, namely:

[0060] C1, module initialization, initialization of RN environment component and RN message component at the same time, and then opening the RN page;

[0061] C2, interface registration, registers the sending interface and subscription interface in the message component to the message center.

[0062] By initializing the module, which includes starting and configuring the RN environment and RN message components, we are ready for the smooth opening of the RN page. Subsequently, the system enters the interface registration phase, connecting the sending and subscription interfaces in the message component with the message center to ensure the smooth flow and efficient processing of information. This series of operations aims to optimize the system structure, improve information processing capabilities, and lay a solid foundation for subsequent message delivery.

[0063] Wherein, the A7 is divided into two steps:

[0064] D1, message filtering, according to the subscription conditions, the message component filters the messages;

[0065] D2, message forwarding, the message component forwards the message to the corresponding business page.

[0066] By carefully filtering the received messages according to the preset subscription conditions, we ensure that only messages that meet the requirements can enter the next step of processing. Subsequently, the filtered messages will be accurately forwarded to the corresponding business page for further processing or display. This series of operations aims to improve the accuracy and efficiency of message processing and ensure the effective transmission and utilization of information.

[0067] The two interfaces are respectively a sending structure and a subscription interface.

[0068] The send interface is used to send messages from the message component to the specified target, while the subscription interface allows business pages or components to subscribe to the messages they are interested in. These two interfaces together ensure the effective transmission and reception of information, providing a solid foundation for cross-platform communication.

[0069] The APP refers to: an application on iOS;

[0070] Flutter: Flutter is an open source user interface (UI) toolkit developed by Google that helps developers efficiently build beautiful multi-platform applications through a set of code bases, supporting mobile, Web, desktop, and embedded platforms.

[0071] iOS applications use Flutter, Google's open source UI toolkit, to efficiently create beautiful multi-platform applications suitable for mobile, Web, desktop and embedded platforms with only one set of code base, thereby significantly improving development efficiency and cross-platform compatibility of applications.

[0072] Among them, RN is the abbreviation of React Native, which is an open source application framework React Native developed by Meta based on React.js. The purpose is to allow developers to use JavaScript and React.js's declarative programming model to develop programs that run on multiple platforms.

[0073] React Native (RN for short) is an open source application framework developed by Meta, based on React.js. It enables developers to use the declarative programming model of JavaScript and React.js to easily develop applications that can run on multiple platforms, greatly improving the efficiency and flexibility of cross-platform development.

[0074] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0075] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A cross-language platform communication system, characterized by: The system consists of: Flutter environment module, OC message center module, RN environment module and OC environment module; The OC message center module sends subscription messages to the Flutter environment module, RN environment module, and OC environment module. At the same time, the Flutter environment module, RN environment module, and OC environment module provide messages to the OC message center module.

2. A cross-language platform communication system according to claim 1, characterized in that: The operating steps of the system are: A1, initialization message and monitoring. When the APP is initialized, the OC platform message center is initialized and monitored at the same time; A2, initialization module and interface registration, initialization of RN environment components and message components, and registration of RN message components; A3, message sending, the RN page sends information to the RN message component; A4, message forwarding, the RN message component sends the ID of the message sent and the message sent by the ID to the OC message center; A5, message formatting: OC message center formats the received message, sorts the message IDs, and puts them into the message queue; A6, the platform calls to send messages, and the message queue sends messages through the subscription interface of the message components of various language platforms; A7, message processing, the message component filters and forwards the message; A8, close the RN page, release the RN environment after closing the RN page, and log out of the two interfaces at the same time.

3. A cross-language platform communication system according to claim 1, characterized in that: A1 is divided into two steps, namely: B1, message initialization, when the APP is initialized, the OC platform message center is initialized; B2, monitoring, the OC platform message center monitors the OC environment message component.

4. A cross-language platform communication system according to claim 1, characterized in that: The A2 is divided into two steps, namely: C1, module initialization, initialization of RN environment component and RN message component at the same time, and then opening the RN page; C2, interface registration, registers the sending interface and subscription interface in the message component to the message center.

5. A cross-language platform communication system according to claim 1, characterized in that: The A7 is divided into two steps: D1, message filtering, according to the subscription conditions, the message component filters the messages; D2, message forwarding, the message component forwards the message to the corresponding business page.

6. A cross-language platform communication system according to claim 1, characterized in that: The two interfaces are the sending structure and the subscription interface.

7. A cross-language platform communication system according to claim 2, characterized in that: Subscription criteria are message type matching, sender and receiver identities, message content, priority and urgency, time and date.

8. A cross-language platform communication system according to claim 1, characterized in that: The steps for the Flutter environment page, the OC environment page, and the RN environment page are the same.