Method for realizing internal jump of mobile App based on URL-Scheme

By adopting a URL-Scheme-based method in mobile applications, the problem of lack of unified standards for internal module jumps is solved, standardization, simplification of development and improvement of stability, and improvement of user experience and scalability.

CN119248380APending Publication Date: 2025-01-03NANJING HOGE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411313149.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

In mobile application development, there is a lack of unified standards or specifications to implement jumps between modules within the application, resulting in code confusion, instability and development and maintenance difficulties.

Method used

Using the URL-Scheme-based method, the mapping relationship between modules and URL-Scheme is established by pre-calibrating URL-Scheme specifications, module registration and parsing, parameter transfer and status maintenance, and the mapping relationship between modules within the application is established to achieve unified jump between modules within the application. .

Benefits of technology

It has achieved standardization, simplified development processes, improved code maintainability and stability, ensured the accuracy and security of jumps, reduced development costs and potential error risks, and improved user experience and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248380A_ABST
    Figure CN119248380A_ABST
Patent Text Reader

Abstract

The invention discloses a method for realizing internal jump of a mobile App based on URL-Scheme, which relates to the technical field of mobile applications and comprises the following steps of: pre-calibrating URL-Scheme specifications which are used for identifying unique identifiers of different modules and pages in the mobile applications; module registration and analysis are conducted, the mapping relation between the module and the URL-Scheme is established, and when jump operation is triggered externally or internally, the application program is located to a target module or page according to the mapping relation between the module and the URL-Scheme; and triggering and processing the jump action, triggering the URL-Scheme of the target module or the page, and executing the corresponding jump action by the application program according to the URL-Scheme. The method has the advantages of standardization and uniformity, high efficiency and flexibility, stability and safety, good expansibility and applicability and the like, and remarkable benefits are brought to development of mobile application programs and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of mobile application programs, and in particular to a method for implementing internal jumps in a mobile App based on URL-Scheme. Background Art

[0002] The development of mobile applications (Apps) has become an important part of today's digital society. With the rapid development of mobile technology and the popularity of smart phones, people's demand for mobile applications continues to grow, which prompts developers to continuously explore and innovate the functions and user experience of mobile applications.

[0003] In mobile application development, modular design and component-based development frameworks have become a common development model. This model allows developers to split applications into various independent components and modules, each of which can be independently developed, tested, and maintained, thereby improving development efficiency and code reusability.

[0004] However, when using a componentized development framework, a problem often arises, namely, jumping between components within an application. Although external URL-Scheme (Uniform Resource Locator Scheme) has been widely used to pull up mobile applications from browsers or other applications, there is no unified standard or specification for jumping between modules within an application.

[0005] Currently, jumping between modules within mobile applications is usually achieved through various customized methods and technologies, which may not be standardized enough, resulting in confusing and unstable codes. In addition, this also makes the development, maintenance and expansion of mobile applications more difficult.

[0006] Currently, no effective solution has been proposed for the problems in the related technologies. Summary of the invention

[0007] In response to the problems in the related technology, the present invention proposes a method for implementing internal jumps in mobile Apps based on URL-Scheme, aiming to unify the jumps between the inside and outside of mobile applications. Through this method, developers can use a unified URL-Scheme specification to implement jumps between modules within the application, thereby simplifying the development process and unifying the implementation methods and methods of pulling up a page of the application from the outside and jumping to a page within the application, thereby improving the maintainability and stability of the code.

[0008] The technical solution of the present invention is achieved in this way:

[0009] A method for implementing internal redirection of a mobile App based on URL-Scheme, comprising the following steps:

[0010] Pre-marking URL-Scheme specifications, which are used to identify unique identifiers for different modules and pages in mobile applications;

[0011] Register and parse the module, establish the mapping relationship between the module and the URL-Scheme, and when the jump operation is triggered externally or internally, the application locates the target module or page based on the mapping relationship between the module and the URL-Scheme;

[0012] The jump action is triggered and processed, the URL-Scheme of the target module or page is triggered, and the application will perform the corresponding jump action according to the URL-Scheme.

[0013] Furthermore, the method further comprises the following steps:

[0014] Perform parameter transfer and state retention, pass necessary parameters during the jump process, and retain the application state before the jump.

[0015] Furthermore, the URL-Scheme specification consists of a specific protocol header, path, and parameters, and is used to invoke a specific module or page within an application.

[0016] Furthermore, the mapping relationship between the modules and the URL-Scheme is a routing table.

[0017] Furthermore, the application can locate the target module or page according to the mapping relationship between the module and the URL-Scheme, including the following steps:

[0018] The application locates the target module or page according to the routing table.

[0019] Furthermore, the application in the step will perform a corresponding jump action according to the URL-Scheme, including the following steps:

[0020] If it is triggered by an external URL-Scheme, the application will be launched and located at the corresponding module or page;

[0021] If it is an internal jump, the application will switch directly to the target module or page without reloading the application.

[0022] Beneficial effects of the present invention:

[0023] 1. The present invention is standardized and unified: Compared with the existing technical solutions, the present invention defines a unified URL-Scheme specification so that the jumps between modules within the mobile application can follow a unified standard. This standardization and uniformity helps to simplify the development process, reduce the learning cost of developers, and improve the maintainability and readability of the code. At the same time, through the customized module registration and parsing mechanism, the relationship between modules can be managed and maintained more flexibly to ensure the accuracy and consistency of the jump.

[0024] 2. The present invention is efficient and flexible: The present invention adopts a customized jump manager and parameter transfer mechanism, making the jump action more efficient and flexible. Developers can implement complex jump operations through simple configuration and calling without writing a lot of jump logic. At the same time, the parameter transfer and state retention mechanism can ensure the correct transfer of parameters and the retention of page status during the jump process, improving the accuracy and reliability of the jump.

[0025] 3. The present invention is stable and secure: The present invention ensures the stability and security of the jump action through a customized jump manager and parameter transfer mechanism. Whether it is an external link pulling up an application or a jump between internal pages, it can be processed in a unified way, reducing the complexity of the code and the potential risk of errors. At the same time, through reasonable permission control and parameter verification, security issues such as malicious jumps and data leakage can be effectively prevented.

[0026] 4. Good scalability and applicability of the present invention: The present invention provides a universal solution that is applicable to various types of mobile applications and has good scalability. Developers can customize and expand the technical solution of the present invention according to specific needs to meet the jump requirements in different scenarios. For example, a specific URL-Scheme specification can be customized according to the functions and business requirements of the application, or other third-party services and platforms can be integrated, thereby enhancing the flexibility and applicability of the application.

[0027] 5. The present invention improves user experience: Through the present invention, users can more smoothly jump between modules inside and outside the mobile application. Not only can external links easily open specific pages of the application, but jumping between internal pages can also achieve a unified user experience. This consistent design greatly reduces the cost of code maintenance and improves development efficiency.

[0028] In summary, the advantages of the present invention include standardization and uniformity, high efficiency and flexibility, stability and security, good scalability and applicability, etc., which bring significant benefits to the development of mobile applications and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0030] Figure 1 This is a flow diagram of a method for implementing internal redirection of a mobile App based on URL-Scheme according to an embodiment of the present invention. Figure 1 ;

[0031] Figure 2 This is a flow diagram of a method for implementing internal redirection of a mobile App based on URL-Scheme according to an embodiment of the present invention. Figure 2 . DETAILED DESCRIPTION

[0032] The following will be combined with the accompanying 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 belong to the scope of protection of the present invention.

[0033] According to an embodiment of the present invention, a method for implementing internal jump of a mobile App based on URL-Scheme is provided.

[0034] like Figure 1 As shown, according to an embodiment of the present invention, a method for implementing internal redirection of a mobile App based on URL-Scheme includes the following steps:

[0035] The URL-Scheme specification is pre-calibrated to identify the unique identifiers of different modules and pages in the mobile application, wherein the URL-Scheme specification consists of a specific protocol header, path, and parameters, and is used to evoke a specific module or page within the application.

[0036] Register and parse the module, and establish a mapping relationship between the module and the URL-Scheme. When a jump operation is triggered externally or internally, the application can quickly locate the target module or page based on the routing table.

[0037] When the technical solution is applied, in the initialization stage of the application program, the present invention registers and parses the URL-Scheme of all modules and pages, and establishes a mapping relationship between the modules and the URL-Scheme, i.e., a routing table. When a jump operation is triggered externally or internally, the application program can quickly locate the target module or page according to the routing table.

[0038] The jump action is triggered and processed. The URL-Scheme of the target module or page is triggered, and the application will perform the corresponding jump action according to the URL-Scheme. If it is triggered by an external URL-Scheme, the application will be pulled up and located at the corresponding module or page; if it is an internal jump, the application will directly switch to the target module or page without reloading the application.

[0039] Perform parameter transfer and state retention, pass necessary parameters during the jump process, and retain the application state before the jump.

[0040] The present invention provides a parameter transfer and state retention mechanism, ensuring that necessary parameters can be transferred during the jump process and the application state before the jump is maintained. The application can correctly display the target module or page after the jump and maintain the user's operation process.

[0041] In addition, if Figure 2 As shown, when applied, the following steps are included:

[0042] Predefine page routing: pre-configure the page to be redirected in the routing registry in the form of Key / Value according to the business scenario;

[0043] Route registration: When the App starts, the route information is added to the runtime environment;

[0044] When the route discovery jump is triggered, the route to be jumped is parsed, and the target module / page is found according to the runtime route registry information;

[0045] Parameter parsing and transmission: parsing the parameters of the jump route and converting them into page jump information, and bringing them to the target module / page;

[0046] Target page rendering: Jump to the target page, the page accepts and parses the passed parameters according to the business, and performs UI rendering.

[0047] In summary, with the help of the above technical solution of the present invention, the following effects can be achieved:

[0048] 1. The present invention is standardized and unified: Compared with the existing technical solutions, the present invention defines a unified URL-Scheme specification so that the jumps between modules within the mobile application can follow a unified standard. This standardization and uniformity helps to simplify the development process, reduce the learning cost of developers, and improve the maintainability and readability of the code. At the same time, through the customized module registration and parsing mechanism, the relationship between modules can be managed and maintained more flexibly to ensure the accuracy and consistency of the jump.

[0049] 2. The present invention is efficient and flexible: The present invention adopts a customized jump manager and parameter transfer mechanism, making the jump action more efficient and flexible. Developers can implement complex jump operations through simple configuration and calling without writing a lot of jump logic. At the same time, the parameter transfer and state retention mechanism can ensure the correct transfer of parameters and the retention of page status during the jump process, improving the accuracy and reliability of the jump.

[0050] 3. The present invention is stable and secure: The present invention ensures the stability and security of the jump action through a customized jump manager and parameter transfer mechanism. Whether it is an external link pulling up an application or a jump between internal pages, it can be processed in a unified way, reducing the complexity of the code and the potential risk of errors. At the same time, through reasonable permission control and parameter verification, security issues such as malicious jumps and data leakage can be effectively prevented.

[0051] 4. The present invention has good scalability and applicability: The present invention provides a general solution that is applicable to various types of mobile applications and has good scalability. Developers can customize and expand the technical solution of the present invention according to specific needs to meet the jump requirements in different scenarios. For example, a specific URL-Scheme specification can be customized according to the functions and business requirements of the application, or other third-party services and platforms can be integrated, thereby enhancing the flexibility and applicability of the application.

[0052] 5. The present invention improves user experience: Through the present invention, users can more smoothly jump between modules inside and outside the mobile application. Not only can external links easily open specific pages of the application, but jumping between internal pages can also achieve a unified user experience. This consistent design greatly reduces the cost of code maintenance and improves development efficiency.

[0053] In summary, the advantages of the present invention include standardization and uniformity, high efficiency and flexibility, stability and security, good scalability and applicability, etc., which bring significant benefits to the development of mobile applications and user experience.

[0054] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. After considering the disclosure of the specification and the examples, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and the examples are only regarded as exemplary, and the true scope and spirit of the present disclosure are indicated by the claims.

[0055] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for implementing internal redirection in a mobile App based on URL-Scheme, characterized in that: The following steps are involved: Pre-marking URL-Scheme specifications, which are used to identify unique identifiers for different modules and pages in mobile applications; Register and parse the module, establish the mapping relationship between the module and the URL-Scheme, and when the jump operation is triggered externally or internally, the application locates the target module or page based on the mapping relationship between the module and the URL-Scheme; The jump action is triggered and processed, the URL-Scheme of the target module or page is triggered, and the application will perform the corresponding jump action according to the URL-Scheme.

2. The method for implementing internal redirection of mobile App based on URL-Scheme according to claim 1, characterized in that: The following steps are also included: Perform parameter transfer and state retention, pass necessary parameters during the jump process, and retain the application state before the jump.

3. The method for realizing internal redirection of mobile App based on URL-Scheme according to claim 1, characterized in that: The URL-Scheme specification consists of a specific protocol header, path, and parameters, and is used to invoke a specific module or page within an application.

4. The method for realizing internal redirection of mobile App based on URL-Scheme according to claim 1, characterized in that: The mapping relationship between the modules and the URL-Scheme is a routing table.

5. The method for realizing internal redirection of mobile App based on URL-Scheme according to claim 4 is characterized in that: The application can locate the target module or page according to the mapping relationship between the module and the URL-Scheme, including the following steps: The application locates the target module or page according to the routing table.

6. The method for realizing internal redirection of mobile App based on URL-Scheme according to claim 1, characterized in that: The application described in the step will perform the corresponding jump action according to the URL-Scheme. The following steps are involved: If it is triggered by an external URL-Scheme, the application will be launched and located at the corresponding module or page; If it is an internal jump, the application will switch directly to the target module or page without reloading the application.