Application program switching processing method and hybrid mobile application program switching system
Through the hybrid mobile application switching system, the combination of carrier applications and cloud servers is used to solve the problems of complex and costly development of native mobile application, and achieve fast and efficient mobile application development.
Patent Information
- Application Number
- CN202411508122.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-02-25
AI Technical Summary
In the prior art, the development process of native mobile applications is complex and costly, resulting in excessive time investment by developers.
By providing an application switching processing method and a hybrid mobile application switching system, using the carrier application and the cloud server, users can click the application components on the initial interface of the carrier application, enter the target configuration information, and directly call the target service program in the cloud server without downloading the application.
It reduces the difficulty and development cost of the mobile application development process, and achieves fast and efficient mobile application development.
Smart Images

Figure CN119512526A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of program development technology, and in particular to an application switching processing method and a hybrid mobile application switching system. Background Art
[0002] With the rapid development of mobile Internet, mobile devices such as smartphones and tablets have become indispensable tools for people's daily life and work. People's demand for the convenience of operation, real-time data transmission and interactivity of mobile applications deployed on mobile devices is increasing day by day. However, the development and maintenance of a native mobile application not only takes a lot of time and resources, but also needs to take into account cross-platform compatibility, iterative updates of business functions, and user experience optimization. In addition, the development and update processes of native mobile applications also need to be reviewed by the application platform, which can easily lead to user group loss. Therefore, a fast and efficient mobile application development method is urgently needed.
[0003] Among the related technologies, native mobile applications rely on the professional skills of developers. They not only require developers to have deep knowledge of programming languages, but also require developers to have a deep understanding of the characteristics of mobile platforms. Developers complete the development of native mobile applications through processes such as coding, testing and deployment.
[0004] However, when developing native mobile applications based on related technologies, the developer's time cost is too high and the development process is complicated. Therefore, the solution of the related technology has the problem that the mobile application development process is complicated and the development cost is high. Summary of the invention
[0005] The purpose of this application is to provide an application switching processing method and a hybrid mobile application switching system, which can reduce the difficulty of the mobile application development process and reduce the development cost.
[0006] The embodiment of the present application is implemented as follows:
[0007] In a first aspect of an embodiment of the present application, a method for processing application switching is provided, the method being applied to a hybrid mobile application switching system, the hybrid mobile application switching system comprising: a carrier application and a cloud server, wherein a plurality of application components are deployed in the carrier application;
[0008] The carrier application responds to a trigger operation by the user on the initial interface of the carrier application to display a configuration interface;
[0009] The carrier application obtains the target configuration information input by the user in the configuration interface, the target configuration information including: the cloud server address, the target service program identifier, the communication protocol, the user identifier, and the target application component in the carrier application;
[0010] The carrier application sends a communication connection request to the cloud server according to the target configuration information, and the communication connection request includes a target service program identifier;
[0011] The cloud server determines the target service and the target configuration interface indicated by the target service program identifier according to the communication connection request, and sends access information of the target service corresponding to the target application component to the carrier application through the target configuration interface;
[0012] The carrier application responds to the user's triggering operation on the icon of the target application component on the initial interface, jumps to and displays the interface of the target service according to the access information of the target service corresponding to the target application component, so that the user can use the target service.
[0013] As a possible implementation method, the carrier application sends a communication connection request to the cloud server according to the target configuration information, including:
[0014] The carrier application parses the target configuration information;
[0015] The carrier application obtains the cloud server address and communication protocol based on the parsed results of the target configuration information;
[0016] The carrier application sends a communication connection request to the cloud server using a communication protocol based on the cloud server address.
[0017] As a possible implementation method, the cloud server determines the target service and the target configuration interface according to the communication connection request, including:
[0018] The cloud server parses the communication connection request to obtain the target service program identifier;
[0019] The cloud server searches for the target service to which the target service program identifier belongs and the target configuration interface corresponding to the target service according to the target service program identifier.
[0020] As a possible implementation method, the target service includes: page structure file, page style file, page logic file, business logic file and page configuration file;
[0021] According to the access information of the target service corresponding to the target application component, jump to and display the interface of the target service, including:
[0022] The carrier application sends an access request to the target service based on the access information of the target service;
[0023] The target service generates information to be displayed according to the page structure file, the page style file, the page logic file, the business logic file and the page configuration file, and sends the information to be displayed to the carrier application;
[0024] The carrier application displays the interface of the target service according to the information to be displayed.
[0025] As a possible implementation, the hybrid mobile application switching system further includes: a plurality of communication corridors;
[0026] The above application switching processing method further includes:
[0027] The cloud server calls the native application of the mobile terminal device where the hybrid mobile application switching system is located through various communication channels. The native application includes: camera, positioning system and sensor.
[0028] As a possible implementation method, before the carrier application jumps to and displays the interface of the target service according to the access information of the target service corresponding to the target application component, the carrier application further includes:
[0029] The carrier application starts security verification, and the carrier application parses the target service program identifier and the user identifier from the target configuration information;
[0030] The carrier application determines whether the user has access rights to the target service corresponding to the target service program identifier according to the target service program identifier and the user identifier;
[0031] If so, the carrier application jumps to and displays the interface of the target service according to the access information of the target service corresponding to the target application component.
[0032] As a possible implementation manner, the carrier application determines whether the user has access rights to the target service corresponding to the target service program identifier according to the target service program identifier and the user identifier, and further includes:
[0033] If not, the carrier application sends a verification request to the cloud server based on the target configuration information;
[0034] The cloud server verifies the cloud server address in the target configuration information according to the received verification request;
[0035] The cloud server determines whether the user obtains access rights to the target service corresponding to the target service program identifier according to the verification result of the cloud server address.
[0036] As a possible implementation, the cloud server determines whether the user obtains access rights to the target service corresponding to the target service program identifier according to the verification result of the cloud server address, including:
[0037] If the verification result of the cloud server address is correct, the cloud server sends a verification pass response to the carrier application;
[0038] The carrier application jumps to and displays the interface of the target service according to the verification response and the access information of the target service corresponding to the target application component.
[0039] A second aspect of an embodiment of the present application provides a hybrid mobile application switching system, the hybrid mobile application switching system comprising: a carrier application and a cloud server;
[0040] The carrier application is used to execute the step of switching the target service in the application switching processing method described in the first aspect above;
[0041] The cloud server is used to execute the step of providing the target service in the application switching processing method described in the first aspect above.
[0042] According to a third aspect of the embodiments of the present application, a mobile terminal device is provided, on which the hybrid mobile application switching system according to the second aspect is deployed.
[0043] The beneficial effects of the embodiments of the present application include:
[0044] An application switching processing method provided by an embodiment of the present application is implemented through a hybrid mobile application switching system. The user selects an application component in the initial interface of the carrier application in the hybrid mobile application switching system, and the carrier application pops up a configuration interface based on the trigger action of the user in the initial interface; the user enters the cloud server address, the target service program identifier, the communication protocol, the user identifier, and the icon of the selected target application component on the configuration interface of the carrier application, and the carrier application sends a communication connection request to the cloud server according to the target configuration information entered by the user in the configuration interface, and the communication connection request contains the target service program identifier; the cloud server determines the target service indicated by the target service program and the target configuration interface that provides the target service according to the received communication connection request, and sends the target service corresponding to the target application component to the carrier application through the target configuration port. The access information; the carrier application loads the access information of the target service corresponding to the target application component based on the icon of the target application component selected by the user, and the display interface of the carrier application jumps to the business interface of the target service, and the user performs business operations on the business interface displayed by the carrier application. In this way, the target service program in the cloud server can be directly called through the carrier application, and the target is provided through the target service program of the cloud server without downloading the application. In this way, the difficulty of the mobile application development process can be reduced and the development cost can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 A schematic diagram of the structure of a hybrid mobile application switching system provided in an embodiment of the present application;
[0047] Figure 2 A flowchart of a first application switching processing method provided in an embodiment of the present application;
[0048] Figure 3 A working principle diagram of a hybrid mobile application switching system provided in an embodiment of the present application;
[0049] Figure 4 A flowchart of a second application switching processing method provided in an embodiment of the present application;
[0050] Figure 5A flowchart of a third application switching processing method provided in an embodiment of the present application;
[0051] Figure 6 A system block diagram of a hybrid mobile application switching system provided in an embodiment of the present application;
[0052] Figure 7 A flowchart of a fourth application switching processing method provided in an embodiment of the present application;
[0053] Figure 8 A flowchart of a fifth application switching processing method provided in an embodiment of the present application;
[0054] Fig. 9 A block diagram of a compilation-registration system of a hybrid mobile application switching system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0056] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0057] At present, the development of native mobile applications depends on the professional skills of developers. The development of native mobile applications not only requires developers to have a deep knowledge of programming languages, but also requires developers to have a deep understanding of the characteristics of mobile platforms. Developers need to invest a lot of time in coding, testing and deployment to complete the development of native mobile applications. However, with the update of operating systems and the diversification of device types, developers face huge challenges in developing native mobile applications. Developers not only need to ensure that native mobile applications are compatible with various system versions, but also need to take into account the update needs of users. Therefore, this solution requires developers to invest a lot of time and energy to develop native mobile applications, which results in a complicated mobile application development process and high mobile application development costs.
[0058] To this end, the embodiment of the present application provides an application switching processing method, in which the user triggers each application component of the carrier application interface in the initial interface of the carrier application, and the carrier application displays the configuration interface in response to the user's triggering operation, and the user enters the target configuration information in the configuration interface; the carrier application sends a communication connection request to the cloud server according to the target configuration information entered in the configuration interface, and the cloud server sends the target service access information to the carrier application via the target configuration port according to the received communication connection request; the carrier application responds to the user's touch operation and jumps to display the business service interface of the target service, so that the user can use the target service. In this way, the user does not need to download the corresponding App to use the target service, which can reduce the difficulty of the mobile application development process and reduce the development cost.
[0059] The application switching processing method, hybrid mobile application switching system and mobile terminal device provided in the embodiments of the present application are explained in detail below in conjunction with the accompanying drawings.
[0060] Figure 1 A structural diagram of a hybrid mobile application switching system provided by this application, see Figure 1 This application takes the hybrid mobile application switching system applied to a mobile phone as an example, but it does not mean that the hybrid mobile application switching system can only be applied to the user's mobile phone. It can also be applied to mobile devices such as PDAs, and this application does not make specific limitations on this. Among them, a hybrid mobile application switching system provided by an embodiment of the present application includes: a carrier application and a cloud server, a plurality of application components are arranged in the carrier application, and the carrier application is deployed on the mobile device on the user side. The user requests to access the program in the cloud server through the carrier application to request the cloud server to provide the target service for the user terminal.
[0061] Optionally, the carrier application is presented on the mobile terminal device on the user side in the form of a mobile application or a third-party program (Application, App for short). The carrier application contains multiple application components. Different application components correspond to different business service functions. The user triggers different application components and inputs the configuration information of the App that the user wants to access. The carrier application sends a communication connection request to the cloud server based on the configuration information input by the user. The cloud server sends the link of the business service indicated by the configuration information to the carrier application through the corresponding configuration port based on the configuration information contained in the communication connection request sent by the carrier application. The carrier application performs security verification on the user's identity to determine whether the user has access rights to the link of the business service provided by the cloud server. On the premise that the user has access rights, the content of the App corresponding to the business service is displayed on the interface of the carrier application, and the user can apply the business function of the App without downloading the corresponding App on the mobile terminal device.
[0062] Alternatively, the cloud server can also be regarded as a web server, which stores a variety of web programs. The user can enter the URL of the web server, the identifier of the web program the user wants to access, the communication protocol and other configuration information in the carrier application. The carrier application accesses the cloud server according to the configuration information. The cloud server transmits the link corresponding to the web program indicated by the configuration information to the carrier application via the configuration interface, and the user can directly call the business function of the web program on the carrier application. Among them, a web program can be regarded as an App, and the cloud server can provide users with various App business functions through the configuration interface.
[0063] Optionally, the carrier application does not indicate the business functions of any App. The carrier application is mainly used to carry the services of various web programs provided by the cloud server. The carrier application can serve as a third-party carrier for users to use the business capabilities of various web programs in the cloud server, that is, the services provided by the cloud server are all implemented on the carrier application.
[0064] As an optional implementation, see Figure 1 Traditional App downloads require native code compilation and packaging to form a binary package, which is then put on the App Store. After the App Platform passes the review, users can download and install the App through the App Store, and then perform corresponding services through the installed App.
[0065] However, a mobile phone App provided in an embodiment of the present application does not need to download other Apps, and can be compatible with the business functions of other Apps. Users can download and install the carrier application in the hybrid mobile application switching system provided in an embodiment of the present application on their mobile phones. Users trigger application components in a specific area of the display interface of the carrier application to achieve App switching. The application components in the carrier application can be WMS components, APS components, and MES components, etc. Users can set the web programs associated with each application component. The number of application components in the carrier application is not specifically limited in this application. When a user triggers an application component in the carrier application, a corresponding configuration interface will appear for the application component. Users can enter configuration information and switch application components in the configuration interface. The cloud server provides the user with native App code based on the configuration information set by the user to achieve the App business functions specified by the user.
[0066] As an optional implementation, see Figure 1 In the hybrid mobile application switching system provided in the embodiment of the present application, the cloud server is divided into four modules, namely, performance appraisal application, material warehousing application, production execution application and advanced scheduling application, according to the functions of the web program. However, this does not mean that the cloud server can only support these four types of applications. This application only takes this as an example and does not specifically limit the types of web services provided by the cloud server.
[0067] Figure 2 This is a flowchart of an application switching processing method provided by the present application. The method can be applied to the above hybrid mobile application switching system. The hybrid mobile application switching system can be deployed on the user's mobile phone or on the user's laptop or computer. This application does not make specific restrictions on this. Figure 2 , an embodiment of the present application provides an application switching processing method, including:
[0068] S201. The carrier application responds to a trigger operation of the user on the initial interface of the carrier application and displays a configuration interface.
[0069] Optionally, the carrier application is mainly used to carry the business services provided by the cloud server. The carrier application can be regarded as a third-party transit station for users to access various applications in the cloud server. Users can directly access the App programs in the cloud server through the carrier application and call the App to execute business. The carrier application can serve as an application shell for various applications in the cloud server. The carrier application itself does not provide web services, that is, the cloud server puts the web services in the cloud server into the carrier application according to user needs.
[0070] Optionally, the initial interface of the carrier application is used to indicate the page where each application component is located that the user sees after logging into the carrier application. The application components are arranged in a specific area of the initial interface of the carrier application. The user can choose which application component to trigger on the initial page of the carrier application. When the user triggers any application component, a configuration interface will pop up on the initial interface of the carrier application. The configuration interface is used to enter the configuration information indicated by the user.
[0071] Alternatively, see Figure 1 The configuration interface of the carrier application includes: a cloud server URL input bar, a service program name input bar, and an application component icon reset bar, etc. The configuration interface of the carrier application may also include other configuration toolbars. This application only takes this as an example, and this application does not specifically limit the content of the configuration interface.
[0072] Optionally, the initial interface of the carrier application also includes some user interface elements, such as toolbars, menus, and dialog boxes, so that the carrier application has the appearance and usage experience of a native mobile application.
[0073] S202: The carrier application obtains target configuration information input by the user in the configuration interface, where the target configuration information includes: cloud server address, target service program identifier, communication protocol, user identifier, and target application component in the carrier application.
[0074] Optionally, the user can enter the target configuration information in the configuration interface of the carrier application. The target configuration information is used to indicate the configuration information of the App that the user wants to access. The target configuration information includes: cloud server address, target service program identifier, communication protocol, user identifier, and target application component. Among them, the cloud server address is used to indicate the URL or ID of the cloud server that the user wants to access; the target service program identifier is used to indicate the name or label of the web program corresponding to the App that the user wants to apply; the communication protocol is used to indicate the communication rules that the cloud server and the carrier application need to follow for information exchange; the user identifier is used to indicate the user's identity authority, such as the administrator identifier, etc.; the target application component is used to indicate the application component corresponding to the icon selected by the user in the configuration interface.
[0075] It is worth mentioning that the application component in the carrier application is also a web view component. The application component is mainly used to load and display the content of the web service. The application component supports modern web technologies such as HTML5, CSS3 and JavaScript.
[0076] S203: The carrier application sends a communication connection request to the cloud server according to the target configuration information, where the communication connection request includes a target service program identifier.
[0077] Optionally, the carrier application sends a communication connection request to the cloud server based on the target configuration information input by the user. The communication connection request is used to indicate the request information of the carrier application requesting access to the web program in the cloud server. The communication connection request includes a target service program identifier, and the target service program identifier is used to indicate the name of the web program that the user wants to call.
[0078] S204: The cloud server determines the target service and the target configuration interface indicated by the target service program identifier according to the communication connection request, and sends access information of the target service corresponding to the target application component to the carrier application through the target configuration interface.
[0079] Optionally, the cloud server determines the target service corresponding to the target service program identifier and the target configuration interface for transmitting the target service based on the received communication connection request. The target service corresponding to the target service program identifier is used to indicate the App corresponding to the target program specified by the target service program identifier input by the user. The target service program can be the native code of each App.
[0080] Optionally, the target configuration interface is used to indicate the configuration interface Api adapted when the cloud server provides the target service to the carrier application. The cloud server determines the target configuration interface based on the communication protocol corresponding to the communication connection request transmitted by the carrier application and the target service indicated by the target service program identifier.
[0081] Optionally, the cloud server sends access information of a target service corresponding to the target application component to the carrier application via the target configuration interface, where the access information of the target service is used to indicate a web link or URL of an App that provides the business function indicated by the target service.
[0082] S205. The carrier application responds to the user's triggering operation on the icon of the target application component on the initial interface, and jumps to and displays the interface of the target service according to the access information of the target service corresponding to the target application component, so that the user can use the target service.
[0083] Optionally, after the user triggers the icon of the target application component on the initial interface, the carrier application loads the access information of the target service corresponding to the target application component based on the user's triggering action, and the carrier application jumps to the business function interface of the App corresponding to the target service. The user can use the App corresponding to the target service on the display interface of the carrier application.
[0084] In an embodiment of the present application, an application switching method is implemented through a hybrid mobile application switching system. The user selects an application component in the initial interface of the carrier application in the hybrid mobile application switching system. The carrier application pops up a configuration interface based on the trigger action of the user in the initial interface; the user enters the cloud server address, target service program identifier, communication protocol, user identifier and selects the icon of the target application component on the configuration interface of the carrier application. The carrier application sends a communication connection request to the cloud server according to the target configuration information entered by the user in the configuration interface, and the communication connection request contains the target service program identifier; the cloud server determines the target service indicated by the target service program and the target configuration interface that provides the target service according to the received communication connection request, and sends the target service corresponding to the target application component to the carrier application through the target configuration port. The access information; the carrier application loads the access information of the target service corresponding to the target application component based on the icon of the target application component selected by the user, and the display interface of the carrier application jumps to the business interface of the target service, and the user performs business operations on the business interface displayed by the carrier application. In this way, the target service program in the cloud server can be directly called by the carrier application, and the target is provided by the target service program of the cloud server without downloading the application. In this way, the difficulty of the mobile application development process can be reduced and the development cost can be reduced.
[0085] In an optional embodiment, see Figure 3 The working principle diagram of the hybrid mobile application switching system provided in the embodiment of the present application is mainly to configure the configuration interface of the web server into a web application through the source file of the App, and run the web application through the web technology stack, and mirror the display interface of the carrier application to simulate the page of the App.
[0086] For a possible implementation, see Figure 4 The operation of step S203 may specifically be:
[0087] S401. The carrier application parses target configuration information.
[0088] Optionally, the carrier application performs data analysis on the target configuration information input by the user to determine the content of the target configuration information input by the user.
[0089] S402: The carrier application obtains the cloud server address and communication protocol according to the parsing result of the target configuration information.
[0090] Optionally, the carrier application can determine the URL of the cloud server specified by the user and the communication rules followed by data interaction between the carrier application and the cloud server based on the parsing result of the target configuration information, thereby ensuring the consistency of business data.
[0091] S403: The carrier application sends a communication connection request to the cloud server using a communication protocol according to the cloud server address.
[0092] Optionally, the carrier application sends a communication connection request to the cloud server according to the cloud server address and communication protocol indicated by the target configuration information to request access to the web program stored in the cloud server.
[0093] For a possible implementation, see Figure 5 The operation of step S204 may specifically be:
[0094] S501: The cloud server parses the communication connection request to obtain a target service program identifier.
[0095] Optionally, after receiving the communication connection request sent by the carrier application, the cloud server parses the communication connection request and determines the name of the target service program specified by the user according to the parsed result of the communication connection request.
[0096] S502: The cloud server searches for the target service to which the target service program identifier belongs and the target configuration interface corresponding to the target service according to the target service program identifier.
[0097] Optionally, the cloud server determines the target service to which the target service program indicated by the target service program identifier belongs based on the target service program identifier, the target service program is used to indicate the native code of the App that the user wants to call, and the target service is used to indicate the App that provides business functions for the user.
[0098] Optionally, the cloud server searches for a target service program that matches the name of the target service program in the cloud server's memory according to the name of the target service program, and determines the business services that the target service program can provide according to the App native code contained in the target service program.
[0099] Optionally, the cloud server determines a target configuration interface for sending access information of the target service to the carrier application based on the communication protocol indicated by the carrier application and the transmission characteristics of the target service indicated by the target service program identifier. The target configuration interface is used to indicate a configuration interface for configuring the native code of the App in the cloud server to the carrier application.
[0100] As an optional implementation, see Figure 6In the target service configured by the cloud server to the carrier application in the hybrid mobile application switching system provided in the embodiment of the present application, the web application source files corresponding to the target service include: page structure files, page style files, page logic files, business logic files and page configuration files. Among them, the page structure file is used to indicate the page structure layout of the App corresponding to the target service, the page style file is used to indicate the page format of the App corresponding to the target service, the page logic file is used to indicate the page data layout logic of the App corresponding to the target service, the business logic file is used to indicate the business function execution logic of the App corresponding to the target service, and the page configuration file is used to indicate the basic page configuration information of the App corresponding to the target service. The carrier application displays the loaded target service in the business function module, and the user can call the App corresponding to the target service in the business function module.
[0101] For a possible implementation, see Figure 7 The operation of step S205 may specifically be:
[0102] S701. The carrier application sends an access request to the target service according to the access information of the target service.
[0103] Optionally, the carrier application loads the URL corresponding to the target service and sends an access request to the App represented by the target service in the cloud server, where the access request is used to indicate a request to call the App corresponding to the target service.
[0104] S702: The target service generates information to be displayed according to the page structure file, the page style file, the page logic file, the business logic file and the page configuration file, and sends the information to be displayed to the carrier application.
[0105] Optionally, the target service generates information to be displayed based on the page structure file, page style file, page logic file, business logic file and page configuration file in its corresponding source file, and the information to be displayed is used to indicate page layout information such as page structure, page style, page logic, business logic and page configuration of the App corresponding to the target service, and the information to be displayed corresponding to the target service is sent to the carrier application.
[0106] S703: The carrier application displays the interface of the target service according to the information to be displayed.
[0107] Optionally, the carrier application displays the screen of the App corresponding to the target service according to the page layout corresponding to the target service.
[0108] In an optional implementation, the hybrid mobile application switching system further includes: multiple communication channels.
[0109] Optionally, the communication channel is used to instruct the cloud server to call the communication channel of the native function of the mobile terminal device where the carrier application is located via the carrier application.
[0110] In an optional implementation manner, the above-mentioned application switching processing method further includes:
[0111] The cloud server calls the native application of the mobile terminal device where the hybrid mobile application switching system is located through various communication channels. The native application includes: camera, positioning system and sensor.
[0112] Optionally, the cloud server can call the native application of the mobile terminal device where the carrier application is located through each communication channel. The native application includes: camera, positioning system and sensor, that is, the cloud server can call the camera to scan and take pictures through the communication channel, and can also obtain the satellite positioning data of the positioning system through the communication channel, and can also obtain the temperature, acceleration and other environmental data of the mobile terminal device through the sensor.
[0113] Figure 8 For a flowchart of the fifth application switching processing method provided in this application, see Figure 8 , before the carrier application jumps and displays the interface of the target service according to the access information of the target service corresponding to the target application component, it also includes:
[0114] S801: The carrier application starts security verification. The carrier application parses the target configuration information to obtain the target service program identifier and the user identifier.
[0115] Optionally, the carrier application starts security verification, which is mainly used to verify whether the user has the authority to access the target service indicated by the configuration information input by the user.
[0116] Optionally, after the carrier application starts security verification, the carrier application obtains the target service program identifier and the user identifier from the parsed result of the target configuration information, the target service program identifier is used to indicate the target service, and the user identifier is used to indicate the user's identity and access rights.
[0117] S802: The carrier application determines, based on the target service program identifier and the user identifier, whether the user has access rights to the target service corresponding to the target service program identifier.
[0118] Optionally, the carrier application determines the target service specified by the user according to the target service program identifier, and determines the user's authority according to the user identifier. The carrier application determines whether the user can directly access the App corresponding to the target service based on the user's access rights and the target service specified by the user.
[0119] S8031. If yes, the carrier application jumps to and displays the interface of the target service according to the access information of the target service corresponding to the target application component.
[0120] Optionally, if the carrier application determines that the user has access rights, the carrier application will directly jump to the login interface of the target service according to the URL of the target service corresponding to the target application component, and the user logs in through the login interface.
[0121] S8032. If not, the carrier application sends a verification request to the cloud server based on the target configuration information.
[0122] Optionally, if the carrier application determines that the user does not have access rights, it sends a verification request to the cloud server, where the verification request is used to verify whether the URL of the cloud server input by the user is correct.
[0123] S804: The cloud server verifies the cloud server address in the target configuration information according to the received verification request.
[0124] Optionally, after receiving the verification request sent by the carrier application, the cloud server verifies whether the cloud server address input by the user is consistent with the real address of the cloud server.
[0125] S805: The cloud server determines whether the user has obtained access rights to the target service corresponding to the target service program identifier based on the verification result of the cloud server address.
[0126] Optionally, the cloud server determines whether to grant the user access to the target service based on a comparison result between the cloud server address input by the user and the real address of the cloud server.
[0127] S806: If the verification result of the cloud server address is correct, the cloud server sends a verification success response to the carrier application.
[0128] Optionally, when the cloud server determines that the cloud server address in the target configuration information input by the user is the same as the actual address of the cloud server, that is, the cloud server address input by the user is correct, the user is granted access to the target service. At the same time, the cloud server sends a verification pass response to the carrier application. The verification pass response is used to indicate an instruction to grant the user access to the target service.
[0129] S807: The carrier application program jumps to and displays the interface of the target service according to the verification success response and the access information of the target service corresponding to the target application component.
[0130] Optionally, the carrier application receives a verification success response and jumps to a login interface of the target service according to the received access information of the target service corresponding to the target application component, and the user accesses the App corresponding to the target service through the login interface.
[0131] Optionally, when the cloud server determines that the address of the cloud server in the target configuration information input by the user is wrong, the carrier application exits.
[0132] Fig. 9 A compilation-registration system block diagram of a hybrid mobile application switching system provided by this application, see Fig. 9 , the carrier application App accesses the web application in the cloud server to implement the compilation-service registration process, and the carrier running program runs the web application service based on the web technology stack.
[0133] In an optional implementation, Figure 1 A hybrid mobile application switching system is provided for an embodiment of the present application, and the hybrid mobile application switching system includes: a carrier application and a cloud server; wherein the carrier application is used to execute the step of switching the target service in the application switching processing method described in any of the above method embodiments; the cloud server is used to execute the step of providing the target service in the application switching processing method described in any of the above method embodiments.
[0134] In an optional embodiment, a mobile terminal device is provided, wherein the mobile terminal device is provided with Figure 1 The hybrid mobile application switching system shown.
[0135] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0136] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for processing application switching, characterized in that: Applied to a hybrid mobile application switching system, the hybrid mobile application switching system comprises: a carrier application and a cloud server, wherein a plurality of application components are arranged in the carrier application; The carrier application displays a configuration interface in response to a trigger operation by a user on an initial interface of the carrier application; The carrier application obtains target configuration information input by the user in the configuration interface, the target configuration information including: a cloud server address, a target service program identifier, a communication protocol, a user identifier, and a target application component in the carrier application; The carrier application sends a communication connection request to the cloud server according to the target configuration information, wherein the communication connection request includes the target service program identifier; The cloud server determines the target service and the target configuration interface indicated by the target service program identifier according to the communication connection request, and sends access information of the target service corresponding to the target application component to the carrier application through the target configuration interface; The carrier application responds to the user's triggering operation on the icon of the target application component on the initial interface, and jumps and displays the interface of the target service according to the access information of the target service corresponding to the target application component, so that the user can use the target service.
2. The application switching processing method according to claim 1, characterized in that: The carrier application sends a communication connection request to the cloud server according to the target configuration information, including: The carrier application parses the target configuration information; The carrier application obtains the cloud server address and communication protocol according to the parsing result of the target configuration information; The carrier application sends the communication connection request to the cloud server according to the cloud server address and using the communication protocol.
3. The application switching processing method according to claim 1, characterized in that: The cloud server determines the target service and the target configuration interface according to the communication connection request, including: The cloud server parses the communication connection request to obtain the target service program identifier; The cloud server searches for the target service to which the target service program identifier belongs and the target configuration interface corresponding to the target service according to the target service program identifier.
4. The application switching processing method according to claim 1, characterized in that: The target service includes: page structure files, page style files, page logic files, business logic files and page configuration files; The step of jumping to and displaying the interface of the target service according to the access information of the target service corresponding to the target application component includes: The carrier application sends an access request to the target service according to the access information of the target service; The target service generates information to be displayed according to the page structure file, the page style file, the page logic file, the business logic file and the page configuration file, and sends the information to be displayed to the carrier application; The carrier application displays the interface of the target service according to the information to be displayed.
5. The application switching processing method according to claim 1, characterized in that: The hybrid mobile application switching system further includes: a plurality of communication corridors; The application switching processing method further includes: The cloud server calls the native application of the mobile terminal device where the hybrid mobile application switching system is located through each of the communication channels, and the native application includes: a camera, a positioning system and a sensor.
6. The application switching processing method according to claim 1, characterized in that: Before the carrier application jumps and displays the interface of the target service according to the access information of the target service corresponding to the target application component, the carrier application further includes: The carrier application starts security verification, and the carrier application parses the target configuration information to obtain a target service program identifier and a user identifier; The carrier application determines, based on the target service program identifier and the user identifier, whether the user has access rights to the target service corresponding to the target service program identifier; If so, the carrier application jumps to and displays the interface of the target service according to the access information of the target service corresponding to the target application component.
7. The application switching processing method according to claim 6, characterized in that: The carrier application determines, according to the target service program identifier and the user identifier, whether the user has access rights to the target service corresponding to the target service program identifier, and further includes: If not, the carrier application sends a verification request to the cloud server according to the target configuration information; The cloud server verifies the cloud server address in the target configuration information according to the received verification request; The cloud server determines whether the user obtains access rights to the target service corresponding to the target service program identifier according to the verification result of the cloud server address.
8. The application switching processing method according to claim 7, characterized in that: The cloud server determines, according to the verification result of the cloud server address, whether the user obtains access rights to the target service corresponding to the target service program identifier, including: If the verification result of the cloud server address is correct, the cloud server sends a verification pass response to the carrier application; The carrier application jumps to and displays the interface of the target service according to the verification success response and the access information of the target service corresponding to the target application component.
9. A hybrid mobile application switching system, characterized in that: The hybrid mobile application switching system includes: a carrier application and a cloud server; The carrier application is used to perform the step of switching the target service in the method according to any one of claims 1 to 8; The cloud server is used to execute the step of providing the target service in the method described in any one of claims 1-8.
10. A mobile terminal device, characterized in that: The hybrid mobile application switching system according to claim 9 is deployed on the mobile terminal device.