Application software evoking methods and apparatus, storage media and electronic devices

By dynamically parsing and reassembling page redirection protocols within the application software and utilizing the server's updated local protocol information database, the development challenges of application software when page redirection requirements change are resolved, improving user experience and saving resources.

CN115185603BActive Publication Date: 2026-03-10BEIJING SOUFUN SCI & TECH DEV
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-11
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

In existing technologies, application software needs to be redeveloped when page navigation requirements change, which consumes a lot of time and resources and affects user experience.

Method used

By obtaining the redirection instructions from the webpage in the application software, parsing the page redirection protocol, and dynamically parsing and reorganizing it using the server's updated local protocol information database, a new page redirection protocol can be generated without redeveloping the application software.

Benefits of technology

It reduces maintenance time and development resources, improves user experience, and saves a lot of manpower and development costs when page navigation requirements change.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115185603B_ABST
    Figure CN115185603B_ABST
Patent Text Reader

Abstract

The application provides an application software awakening method and device, a storage medium and an electronic device. The method comprises the following steps: an APP obtains a first page jump protocol from a jump instruction, and obtains a target protocol identifier and target protocol information by analyzing the first page jump protocol; if a preset protocol identifier matched with the target protocol identifier exists in a local protocol information library, the preset protocol identifier is taken as a jump protocol identifier; if the target protocol information does not match target protocol configuration information corresponding to the jump protocol identifier, the target protocol information is modified to obtain jump protocol information; and a second page jump protocol is generated according to the jump protocol information and a native page identifier corresponding to the jump protocol identifier, and page jump is performed based on the second page jump protocol. According to the method, the APP can dynamically recombine the page jump protocol based on the local protocol information library, and page jump is realized. The protocol data can be changed by updating the local protocol information library, and the APP does not need to be developed and put online again.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of information processing technology, and in particular to an application software activation method and apparatus, a storage medium, and an electronic device. Background Technology

[0002] With the development of computer technology, smartphones, tablets, and other mobile devices have become common tools in people's daily lives. In mobile device usage scenarios, there is an increasing trend of launching local applications (APPs) through web pages (such as H5 pages) and opening specific pages within those APPs, such as sharing web page content via an APP.

[0003] Currently, launching an app from a webpage typically relies on a fixed page redirection protocol (URI scheme) between the app and the webpage. This means that when a webpage needs to launch an app page, a corresponding page redirection protocol can be set to redirect to the specified page within the app. With both the webpage and the app configured according to this protocol, when the webpage responds to a user action requiring the launch of a specific page within the app, the page redirection is achieved through interaction with the app based on this protocol.

[0004] Based on existing app launch methods, apps rely on pre-configured protocol content to parse the page navigation protocol of web page interactions to open the corresponding app pages. However, in real-world applications, app page navigation requirements often change. When it's necessary to expand or modify the pages opened when launching the app, the app needs to be redeveloped, and a new version needs to be released to implement the changes. This consumes a significant amount of time and development resources and negatively impacts the user experience. Summary of the Invention

[0005] In view of this, embodiments of the present invention provide an application software invocation method to solve the problem that when page jumps are implemented through fixed protocol content in the APP, the APP needs to be redeveloped, which consumes a lot of time and development resources.

[0006] This invention also provides an application software activation device to ensure the practical implementation and application of the above method.

[0007] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0008] An application software initiation method, comprising:

[0009] When the application software starts in response to a redirection command sent by the web page, the first page redirection protocol contained in the redirection command is obtained, and the first page redirection protocol is the page redirection protocol configured in the web page.

[0010] The first page redirection protocol is parsed to obtain the target protocol identifier and target protocol information corresponding to the first page redirection protocol;

[0011] Determine the local protocol information library corresponding to the current application software. The local protocol information library is updated based on the latest configured redirection protocol data in the server of the application software. The local protocol information library contains multiple preset protocol identifiers, a native page identifier corresponding to each preset protocol identifier, and protocol configuration information corresponding to each preset protocol identifier.

[0012] Determine whether a preset protocol identifier that matches the target protocol identifier exists in the local protocol information database;

[0013] If a preset protocol identifier that matches the target protocol identifier exists in the local protocol information database, then the preset protocol identifier that matches the target protocol identifier will be used as the jump protocol identifier.

[0014] Determine whether the target protocol information matches the target protocol configuration information; the target protocol configuration information is the protocol configuration information corresponding to the jump protocol identifier.

[0015] If the target protocol information does not match the target protocol configuration information, the target protocol information is modified according to the target protocol configuration information to obtain the jump protocol information corresponding to the target protocol information;

[0016] Based on the redirection protocol information and the native page identifier corresponding to the redirection protocol identifier, a second page redirection protocol corresponding to the application software is generated;

[0017] After the application software is launched, it will redirect to the native page corresponding to the second page redirection protocol to activate the application software.

[0018] Optionally, in the above method, determining the local protocol information database corresponding to the current application software includes:

[0019] Determine whether a local protocol file exists in the application software's cache location;

[0020] If the local protocol file exists in the application software's cache location, a preset interface is used to determine whether the local protocol file needs to be updated.

[0021] If the local protocol file needs to be updated, the currently configured jump protocol data in the server is obtained through the preset interface, and the local protocol file is updated according to the currently configured jump protocol data in the server to obtain the updated local protocol file.

[0022] The updated local protocol file is used as the local protocol information repository.

[0023] The above methods may also include:

[0024] If the local protocol file does not need to be updated at present, then the local protocol file is used as the local protocol information database.

[0025] Optionally, in the above method, determining whether the target protocol information matches the target protocol configuration information includes:

[0026] Identify the multiple protocol configuration items contained in the target protocol configuration information;

[0027] For each of the protocol configuration items, determine whether the target protocol configuration information contains the configuration value corresponding to that protocol configuration item;

[0028] If the target protocol configuration information contains at least one configuration value corresponding to the protocol configuration item, then it is determined that the target protocol information does not match the target protocol configuration information.

[0029] If the target protocol configuration information does not contain any configuration value corresponding to any of the protocol configuration items, then it is determined that the target protocol information matches the target protocol configuration information.

[0030] Optionally, in the above method, modifying the target protocol information based on the target protocol configuration information includes:

[0031] For each of the protocol configuration items, if the target protocol configuration information contains the configuration value corresponding to that protocol configuration item, then that protocol configuration item shall be used as the target configuration item.

[0032] Identify each protocol data item in the target protocol information;

[0033] Among the various protocol data items, determine the target protocol data item corresponding to each target configuration item;

[0034] For each target protocol data item in the target protocol information, the data value of the target protocol data item is modified according to the configuration value corresponding to the target configuration item, so as to modify the target protocol information.

[0035] The above methods may also include:

[0036] If no preset protocol identifier matching the target protocol identifier is found in the local protocol information database, the application will be redirected to its homepage after startup to activate the application.

[0037] The above methods may also include:

[0038] If the target protocol information matches the target protocol configuration information, then a third page redirection protocol corresponding to the application software is generated based on the target protocol information and the native page identifier corresponding to the redirection protocol identifier.

[0039] After the application software is launched, it will redirect to the native page corresponding to the third page redirection protocol to activate the application software.

[0040] An application software activation device includes:

[0041] The acquisition unit is used to acquire a first page redirection protocol contained in the redirection instruction when the application software starts in response to a redirection instruction sent by the web page. The first page redirection protocol is a page redirection protocol configured in the web page.

[0042] The parsing unit is used to parse the first page redirection protocol to obtain the target protocol identifier and target protocol information corresponding to the first page redirection protocol;

[0043] The first determining unit is used to determine the local protocol information library corresponding to the current application software. The local protocol information library is updated based on the latest configured jump protocol data in the server of the application software. The local protocol information library contains multiple preset protocol identifiers, a native page identifier corresponding to each preset protocol identifier, and protocol configuration information corresponding to each preset protocol identifier.

[0044] The first judgment unit is used to determine whether there is a preset protocol identifier in the local protocol information database that matches the target protocol identifier;

[0045] The second determining unit is used to use the preset protocol identifier that matches the target protocol identifier as the jump protocol identifier if there is a preset protocol identifier in the local protocol information database that matches the target protocol identifier.

[0046] The second judgment unit is used to determine whether the target protocol information matches the target protocol configuration information; the target protocol configuration information is the protocol configuration information corresponding to the jump protocol identifier.

[0047] The modification unit is used to modify the target protocol information according to the target protocol configuration information if the target protocol information does not match the target protocol configuration information, so as to obtain the jump protocol information corresponding to the target protocol information;

[0048] The first generation unit is used to generate a second page jump protocol corresponding to the application software based on the jump protocol information and the native page identifier corresponding to the jump protocol identifier;

[0049] The first redirection unit is used to redirect to the native page corresponding to the second page redirection protocol after the application software is launched, so as to wake up the application software.

[0050] A storage medium comprising stored instructions, wherein, when the instructions are executed, the device in which the storage medium resides executes the application software wake-up method described above.

[0051] An electronic device includes a memory and one or more instructions, wherein one or more instructions are stored in the memory and configured to be executed by one or more processors using the application software invocation method described above.

[0052] An application software initiation method based on the above embodiments of the present invention includes: when the application software starts in response to a jump instruction sent by a webpage, obtaining a first page jump protocol contained in the jump instruction, parsing the first page jump protocol to obtain its corresponding target protocol identifier and target protocol information; determining a local protocol information library corresponding to the current application software, wherein the local protocol information library is updated based on the latest configured jump protocol data in the server, and the local protocol information library contains multiple preset protocol identifiers and a native page identifier and protocol configuration information corresponding to each preset protocol identifier; determining whether there is a preset protocol identifier in the local protocol information library that matches the target protocol identifier, and if so, using the preset protocol identifier that matches the target protocol identifier as the jump protocol identifier; determining whether the target protocol information matches the target protocol configuration information (the protocol configuration information corresponding to the jump protocol identifier), and if not, modifying the target protocol information according to the target protocol configuration information to obtain jump protocol information; generating a second page jump protocol based on the jump protocol information and the native page identifier corresponding to the jump protocol identifier; and jumping to the native page corresponding to the second page jump protocol after the application software starts to initiate the application software. Using the method provided in this invention, when a webpage needs to redirect an application to a specified page, the application can parse and reassemble the page redirection protocol transmitted by the webpage based on a local protocol information database updated through the latest protocol data configured on the server, thus obtaining the actual page redirection protocol used by the application. When changes to the application's redirection settings are required, maintenance personnel can update the redirection protocol data through the server. The application can dynamically update the protocol data, performing protocol parsing and reassembly based on the latest protocol data during the next redirection. This eliminates the need for redeveloping and redeploying the application, saving significant human and development resources, reducing the time spent updating protocol data, and helping to avoid adverse effects on application users. Attached Figure Description

[0053] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0054] Figure 1 A flowchart of an application software invocation method provided in an embodiment of the present invention;

[0055] Figure 2 A flowchart illustrating a process for obtaining a local protocol information database, provided as an embodiment of the present invention;

[0056] Figure 3 An example diagram illustrating an application software activation process provided in an embodiment of the present invention;

[0057] Figure 4 This is a schematic diagram of the structure of an application software activation device provided in an embodiment of the present invention;

[0058] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0059] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0060] In this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0061] As the background technology indicates, scenarios where a local app is launched from an H5 page (front-end webpage) (i.e., Wap to App) are very common. Currently, this is usually achieved through a page redirection protocol agreed upon by both the app and the front-end page. When the app's page redirection requirements change, the page redirection protocol needs to be re-agreed, requiring re-registration and configuration within the app. This necessitates redeveloping the app, modifying the protocol configuration, and then deploying a new version. This requires significant time and development resources from operations and maintenance personnel to update the protocol configuration. Furthermore, app users need to reinstall the new app, resulting in a poor user experience.

[0062] Therefore, this invention provides an application software invocation method. The APP can update its local protocol information database through a server for parsing and reassembling page jump protocols, dynamically constructing the page jump protocol during the jump process. When page jump requirements change, maintenance personnel can simply configure new protocol data in the server without redeveloping the APP, saving significant maintenance time and development resources, and improving the user experience.

[0063] This invention provides an application software invocation method, which can be applied to various types of application software. The executing entity can be the application software's processor. The method flowchart is shown below. Figure 1 As shown, it includes:

[0064] S101: When the application software starts in response to a redirection command sent by the web page, the first page redirection protocol contained in the redirection command is obtained, wherein the first page redirection protocol is the page redirection protocol configured in the web page.

[0065] In the method provided by this embodiment of the invention, the application software (APP) is an APP running on the Android operating system. When a user accesses a webpage through a browser, if the user performs an operation that requires redirection to a local APP, the webpage responds to the user's operation by waking up the corresponding local APP client. The webpage will configure a page redirection protocol accordingly, and initiate a redirection command through the page redirection protocol corresponding to the user's operation, thus launching the local APP. When the APP is awakened in response to the redirection command from the webpage, the APP can parse the redirection command to obtain the page redirection protocol contained in the command, i.e., the first page redirection protocol. The page redirection protocol mentioned in this embodiment of the invention refers to a protocol in the form of a URI scheme, which is an existing form of page redirection protocol and will not be described in detail here.

[0066] S102: Parse the first page redirection protocol to obtain the target protocol identifier and target protocol information corresponding to the first page redirection protocol;

[0067] In the method provided by this invention, the APP parses the page jump protocol contained in the jump instruction according to a preset protocol parsing strategy, and can obtain the target protocol identifier and target protocol information. The target protocol identifier is a pre-agreed identifier used to represent the protocol, which can be understood as the protocol name. The target protocol information includes the protocol data in the page jump protocol, that is, the specific parameters in the protocol.

[0068] S103: Determine the local protocol information library corresponding to the current application software. The local protocol information library is updated based on the latest configured jump protocol data in the server of the application software. The local protocol information library contains multiple preset protocol identifiers, a native page identifier corresponding to each preset protocol identifier, and protocol configuration information corresponding to each preset protocol identifier.

[0069] In the method provided by this invention, the APP can determine the current local protocol information database based on the storage status of local information and the data update status with the server. The local protocol information database records multiple preset protocol identifiers and the corresponding native page identifier and protocol configuration information for each preset protocol identifier. The information recorded in the local protocol information database corresponds to the latest configured redirection protocol data in the server. When the redirection protocol data in the server changes, the APP can dynamically connect to the server to update and obtain the current local protocol information database. The redirection protocol data in the server is configured by maintenance personnel according to actual page redirection needs and can change in real time. The preset protocol identifiers in the local protocol information database are pre-defined identifiers used to represent their corresponding protocols. The native page identifier refers to the identifier of the native page of the APP to which the corresponding protocol is to be redirected, which can be the name or path of the native page, etc. The protocol configuration information refers to the configuration of the protocol parameters of the corresponding protocol.

[0070] S104: Determine whether there is a preset protocol identifier in the local protocol information database that matches the target protocol identifier;

[0071] In the method provided by this embodiment of the invention, the target protocol identifier can be compared with each preset protocol identifier in the local protocol information database to determine whether there is a preset protocol identifier in the local protocol information database that matches the target protocol identifier. If a preset protocol identifier is the same as the target protocol identifier, then the preset protocol identifier matches the target protocol identifier.

[0072] It should be noted that each preset protocol identifier in the local protocol information database is different from the others, so at most one preset protocol identifier can match the target protocol identifier.

[0073] S105: If a preset protocol identifier that matches the target protocol identifier exists in the local protocol information database, then the preset protocol identifier that matches the target protocol identifier shall be used as the jump protocol identifier.

[0074] In the method provided by this embodiment of the invention, if there is a preset protocol identifier in the local protocol information database that matches the target protocol identifier, then the matching preset protocol identifier is determined as the jump protocol identifier.

[0075] S106: Determine whether the target protocol information matches the target protocol configuration information; the target protocol configuration information is the protocol configuration information corresponding to the jump protocol identifier;

[0076] In the method provided by this embodiment of the invention, the protocol configuration information corresponding to the redirection protocol identifier is obtained from the local protocol information database as the target protocol configuration information. It is then determined whether the target protocol information matches the target protocol configuration information, that is, whether the target protocol configuration information indicates that the target protocol information needs to be modified. If they match, it indicates that no modification is needed; if they do not match, it indicates that the protocol parameters need to be modified. Each configuration item in the target protocol configuration information represents the configuration status of the protocol parameters in the page redirection protocol. For example, a configuration item indicates that a certain protocol parameter should be a certain data. If the configuration item has a configuration value, it means that the corresponding protocol parameter should be that configuration value; if the configuration item has no configuration value, it means that the corresponding protocol parameter can use the corresponding parameter value from the page redirection protocol transmitted by the web page.

[0077] S107: If the target protocol information does not match the target protocol configuration information, the target protocol information is modified according to the target protocol configuration information to obtain the jump protocol information corresponding to the target protocol information;

[0078] In the method provided by this embodiment of the invention, if the target protocol information does not match the target protocol configuration information, the corresponding protocol parameters in the target protocol information are modified according to the configuration content in the target protocol configuration information to obtain the jump protocol information. The jump protocol information includes the protocol parameters in the target protocol information that do not need to be modified, as well as the protocol parameters modified according to the target protocol configuration information.

[0079] S108: Generate a second page redirection protocol corresponding to the application software based on the redirection protocol information and the native page identifier corresponding to the redirection protocol identifier;

[0080] In the method provided by this embodiment of the invention, the native page identifier corresponding to the jump protocol identifier can be obtained from the local protocol information database, and a second page jump protocol can be generated based on the native page identifier and the protocol parameters in the jump protocol information.

[0081] S109: After the application software is launched, it is redirected to the native page corresponding to the second page redirection protocol to wake up the application software.

[0082] In the method provided by the embodiments of the present invention, the corresponding page of the application software is opened according to the second page jump protocol to wake up the application software and realize the jump from the web page to the native page of the application software.

[0083] Based on the method provided in this embodiment of the invention, when application software starts in response to a redirection command sent by a webpage, a first page redirection protocol contained in the redirection command can be obtained and parsed to obtain a target protocol identifier and target protocol information. The current local protocol information database, updated based on the latest configured redirection protocol data in the server, is determined. It is then determined whether a preset protocol identifier matching the target protocol identifier exists in the local protocol information database. If it exists, the preset protocol identifier matching the target protocol identifier is used as the redirection protocol identifier. If the target protocol information does not match the target protocol configuration information (the protocol configuration information corresponding to the redirection protocol identifier), the target protocol information is modified according to the target protocol configuration information to obtain the redirection protocol information. A second page redirection protocol is generated based on the redirection protocol information and the native page identifier corresponding to the redirection protocol identifier. After the application software starts, it redirects to the native page corresponding to the second page redirection protocol to invoke the application software. Using the method provided in this invention, when a webpage needs to redirect an application to a specified page, the application can parse and reassemble the page redirection protocol transmitted by the webpage based on its local protocol information database updated through the latest protocol data in the server, thus obtaining the actual page redirection protocol used by the application. When changes to the application's redirection settings are required, maintenance personnel can update the redirection protocol data through the server. The application can dynamically update the protocol data and parse and reassemble the protocol based on the latest data during the next redirection. This eliminates the need for redeveloping and redeploying the application, saving significant human and development resources, reducing the time spent updating protocol data, and helping to avoid adverse effects on application users, thereby improving the user experience.

[0084] exist Figure 1 Based on the method shown, the process of determining the local protocol information database corresponding to the current application software mentioned in step S103 of the method provided in this embodiment of the invention includes:

[0085] Determine whether a local protocol file exists in the application software's cache location;

[0086] In the method provided by this embodiment of the invention, during the operation of the application software, the cache is read first from the cache location. When the application software responds to the jump instruction and starts to start, it can scan the cache location to determine whether a local protocol file exists.

[0087] A local protocol file is a file used to record relevant data about the redirection protocol. Specifically, it can be a file that records data in tabular form. The initial local protocol file can be configured by operations and maintenance personnel in the application software. Each time the application software is subsequently launched by the web client, it can connect to the server to determine if the local protocol file needs updating. When operations and maintenance personnel modify the redirection protocol data on the server, the application software can connect to the server the next time it is launched to obtain the latest redirection protocol data and update the local protocol file.

[0088] If the local protocol file exists in the application software's cache location, a preset interface is used to determine whether the local protocol file needs to be updated.

[0089] In the method provided by this embodiment of the invention, if the local protocol file has already been written to the cache, a pre-set interface is used to determine whether the local protocol file needs to be updated. The pre-set interface is used to obtain the latest configured redirection protocol data from the server. When the configured redirection protocol data in the server changes, the server can configure the pre-set interface accordingly so that when the application software calls the interface, it is notified that data needs to be updated. If the application software receives feedback from calling the pre-set interface that data needs to be updated, it is determined that the local protocol file needs to be updated; otherwise, no update is required.

[0090] If the local protocol file needs to be updated, the currently configured jump protocol data in the server is obtained through the preset interface, and the local protocol file is updated according to the currently configured jump protocol data in the server to obtain the updated local protocol file.

[0091] In the method provided by this embodiment of the invention, if it is necessary to update the local protocol file, the application software can call a preset interface to access the server and request the server to return the currently configured redirection protocol data in order to obtain the latest configured redirection protocol data. After receiving the currently configured redirection protocol data from the server, the application software can update the local protocol file based on the redirection protocol data.

[0092] The updated local protocol file is used as the local protocol information repository.

[0093] In the method provided by this embodiment of the invention, after the local protocol file is updated, the updated local protocol file is used as the current local protocol information database.

[0094] Based on the methods provided in the above embodiments, the methods provided in the embodiments of the present invention further include:

[0095] If the local protocol file does not need to be updated at present, then the local protocol file is used as the local protocol information database.

[0096] In the method provided by this embodiment of the invention, if the application software receives feedback from calling the preset interface that no data needs to be updated at present, it means that the local protocol file records the latest configured jump protocol data in the server, and the current local protocol file can be used as the local protocol information database.

[0097] Furthermore, in the method provided by this embodiment of the invention, if the local protocol file does not exist in the cache location of the application software, the local protocol file is read from a preset storage location and written into the cache.

[0098] To better illustrate the method provided in the embodiments of the present invention, please refer to... Figure 2 The flowchart shown illustrates the process of obtaining the local protocol information database in the method provided by this embodiment of the invention. Figure 2 As shown, it includes:

[0099] S201: Is there a caching protocol?

[0100] In the method provided by this embodiment of the invention, after the application software starts, it can be determined whether there is cached local protocol data in the cache location. If there is, proceed to step S203; otherwise, proceed to step S202.

[0101] S202: Read local protocol;

[0102] In the method provided by this embodiment of the invention, if there is no cached local protocol data in the cache location, the local protocol data is read from the storage location and written into the cache, and then the process proceeds to step S203.

[0103] S203: Is an update required?

[0104] In the method provided by the embodiments of the present invention, it can be determined through a preset interface whether the local protocol data in the cache needs to be updated. If it needs to be updated, the process proceeds to step S204. If it does not need to be updated, the caching process of the local protocol data is completed, and the local protocol data in the cache is used for subsequent processing.

[0105] S204: Update Protocol.

[0106] In the method provided by this embodiment of the invention, if it is necessary to update the local protocol data in the cache, the latest local protocol data is obtained through a preset interface to update the local protocol data in the cache. After the update is completed, the updated local protocol data in the cache is used for subsequent processing.

[0107] In the method provided by this embodiment of the invention, after the operation and maintenance personnel complete the data configuration through the backend, they package the data and return it to the APP through the server interface. The APP requests the interface to obtain the latest protocol data according to business needs and makes a local backup. The backed-up data becomes the local protocol information library. In order to prevent interface request abnormalities or data abnormalities, a latest protocol file can be entered as the default data when updating the Apk.

[0108] exist Figure 1 Based on the method shown, the process of determining whether the target protocol information matches the target protocol configuration information mentioned in step S106 of the method provided in this embodiment of the invention includes:

[0109] Identify the multiple protocol configuration items contained in the target protocol configuration information;

[0110] In the method provided by this embodiment of the invention, the target protocol configuration information records multiple protocol configuration items, each protocol configuration item corresponding to the configuration status of a protocol parameter, such as whether the key parameter needs to be adjusted, whether special parameters need to be encrypted or decrypted, etc.

[0111] For each of the protocol configuration items, determine whether the target protocol configuration information contains the configuration value corresponding to that protocol configuration item;

[0112] In the method provided by this invention, the existence of a corresponding configuration value for a protocol configuration item indicates whether the corresponding protocol parameter needs to be reconfigured. If a protocol configuration item has a corresponding configuration value, it means that the corresponding protocol parameter needs to be modified according to that configuration value. If a protocol configuration item does not have a corresponding configuration value, it means that the content corresponding to that protocol configuration item does not need to be reconfigured. It can be determined whether each protocol configuration item has a corresponding configuration value by reading the data recorded in the target protocol configuration information.

[0113] If the target protocol configuration information contains at least one configuration value corresponding to the protocol configuration item, then it is determined that the target protocol information does not match the target protocol configuration information.

[0114] In the method provided by this embodiment of the invention, if there is a configuration value corresponding to a protocol configuration item in the target protocol configuration information, that is, if there is related protocol content that needs to be reconfigured, then it is determined that the target protocol information does not match the target protocol configuration information.

[0115] If the target protocol configuration information does not contain any configuration value corresponding to any of the protocol configuration items, then it is determined that the target protocol information matches the target protocol configuration information.

[0116] In the method provided by this embodiment of the invention, if the target protocol configuration information does not contain the configuration value of any protocol configuration item, that is, all protocol configuration items do not have corresponding configuration values, and the protocol content does not need to be reconfigured, then the target protocol information is considered to match the target protocol configuration information.

[0117] Furthermore, based on the method provided in the above embodiments, the process of modifying the target protocol information according to the target protocol configuration information mentioned in step S107 of the method provided in this embodiment includes:

[0118] For each of the protocol configuration items, if the target protocol configuration information contains the configuration value corresponding to that protocol configuration item, then that protocol configuration item shall be used as the target configuration item.

[0119] In the method provided by this embodiment of the invention, the protocol configuration item that has a corresponding configuration value is used as the target configuration item.

[0120] Identify each protocol data item in the target protocol information;

[0121] In the method provided by the embodiments of the present invention, the target protocol information also records each protocol data item of its corresponding page jump protocol, namely each protocol parameter and specific parameter value.

[0122] Among the various protocol data items, determine the target protocol data item corresponding to each target configuration item;

[0123] In the method provided by the embodiments of the present invention, the target protocol data item corresponding to each target configuration item can be determined in each protocol data item of the target protocol information based on the matching of project attributes. That is, the protocol data item associated with the target configuration item, i.e., the target configuration item represents the reconfiguration of the protocol data item.

[0124] For each target protocol data item in the target protocol information, the data value of the target protocol data item is modified according to the configuration value corresponding to the target configuration item, so as to modify the target protocol information.

[0125] In the method provided by this embodiment of the invention, the data value of the target protocol data item corresponding to each target configuration item can be modified according to the configuration value corresponding to each target configuration item. For example, if the target configuration item is a configuration item for adjusting and adapting the key parameter, and its corresponding configuration value is A, then the target protocol data item corresponding to this target configuration item is the data item of the key parameter in the target protocol information, and the data value corresponding to this protocol data item is modified to A.

[0126] It should be noted that in the specific implementation process, the target configuration item is not only a configuration item that modifies the parameter value. For example, it can also be a configuration item that encrypts or decrypts special parameters, or adds additional parameters. Therefore, the specific modification process is not limited to modifying the parameter value. It can also be a processing method such as encrypting or decrypting the parameter value or adding parameters.

[0127] exist Figure 1 Based on the method shown, the method provided in this embodiment of the invention further includes:

[0128] If no preset protocol identifier matching the target protocol identifier is found in the local protocol information database, the application will be redirected to its homepage after startup to activate the application.

[0129] In the method provided by this embodiment of the invention, if there is no preset protocol identifier matching the target protocol identifier in the local protocol information database, the application software homepage will be redirected by default after startup.

[0130] Furthermore, in Figure 1 Based on the method shown, the method provided in this embodiment of the invention further includes:

[0131] If the target protocol information matches the target protocol configuration information, then a third page redirection protocol corresponding to the application software is generated based on the target protocol information and the native page identifier corresponding to the redirection protocol identifier.

[0132] After the application software is launched, it will redirect to the native page corresponding to the third page redirection protocol to activate the application software.

[0133] In the method provided by this embodiment of the invention, if the target protocol information matches the target protocol configuration information during the judgment process in step S106, it means that the protocol parameters in the target protocol information do not need to be modified and can be used. Then, based on the protocol parameters in the target protocol information and the native page identifier corresponding to the jump protocol identifier, a third page jump protocol is generated. The corresponding page of the application software is opened according to the third page jump protocol, thereby realizing the jump from the web page to the native page of the application software.

[0134] To better illustrate the method provided in the embodiments of the present invention, and in conjunction with actual application scenarios, the embodiments of the present invention provide another application software invocation method. In the method provided in the embodiments of the present invention, the page redirection protocol consists of scheme, host, port, path, and query, and its structure is as follows:

[0135] <scheme> : / / <host> : <port> / <path> ? <query>;

[0136] The protocol data corresponding to each preset protocol identifier recorded in the local protocol information database (that is, each jump protocol data configured by the operation and maintenance personnel through the server) is in JSON key-value pair format, and its main contents include:

[0137] Supported app version numbers (corresponding App versionName);

[0138] Protocol name;

[0139] Page address (corresponding to the complete package path of the Activity);

[0140] Adjust the configuration content for the key parameter to adapt to the new configuration.

[0141] Adjust the configuration content for the value parameter to adapt to the new configuration.

[0142] Configuration content for encrypting and decrypting special parameters;

[0143] Additional configuration parameters;

[0144] Configuration settings for whether login requirements are required.

[0145] The backend information should be entered according to a unified protocol format, and the interface can be provided to application software.

[0146] The method provided in this embodiment of the invention supports two modes for the process of redirecting to the native page of an application software on a web page:

[0147] Browsers access specific protocol addresses, including external browsers and browsers embedded in apps;

[0148] The app's native page navigation uses a specified click event to redirect to another page via a protocol.

[0149] All of the above methods of redirection use the same type of protocol data. Page redirection is achieved by parsing and processing the protocol. The core functionality is encapsulated in the Wap To App core class.

[0150] refer to Figure 3 The example diagram shown illustrates the application software activation process provided in this embodiment of the invention, which mainly includes:

[0151] When a page redirect is triggered on the webpage, an event can be triggered in the application software to request the server to return the latest redirect protocol data. At the same time, the page redirect protocol (i.e., WAP page protocol) transmitted by the webpage can be obtained.

[0152] The protocol parsing and reorganization of page redirection are performed by encapsulating the processing logic in the peer-to-peer core class.

[0153] First, the current protocol name in the WAP page protocol is parsed out. Based on the protocol name, the backed-up protocol data is searched in the protocol library to determine if a match is found. If the protocol corresponding to the current protocol name does not exist in the protocol library, a return statement is made, and the application's homepage is opened. If the protocol is found, the protocol transmitted from the web page is parsed to obtain the redirect page address, which is the protocol data. Then, using the protocol data backed up in the protocol library corresponding to the current protocol name, it is checked whether it contains "key" parameter adaptation data, i.e., whether the key parameter needs to be adapted. If so, the corresponding parameter in the protocol data of the web page is modified to obtain a new protocol address. Otherwise, the next step, the adaptation judgment of the Value parameter, is directly performed.

[0154] Similarly, the process then checks if the "Value" parameter is included in the data, then checks if there are any encrypted or decrypted parameters (encryption rules are standardized beforehand), and finally determines if additional parameters are needed. When parameter adaptation, encryption / decryption, or parameter addition is required, further processing is performed based on the latest protocol address. Finally, a new protocol that conforms to the app's page navigation logic is constructed by combining this with the page address corresponding to the current protocol name backed up in the protocol library. The app then redirects to the corresponding page based on the reassembled protocol address, which could specifically redirect to the corresponding class. If parameter adaptation is not required during the process, the protocol address can be assembled using the parsed protocol parameters.

[0155] In the method provided by this invention, the backend uniformly configures custom protocol data, the server dynamically sends protocol data, and when an external browser opens the APP's native page, the APP can reorganize the page jump protocol in real time according to the latest protocol data to achieve dynamic page jump.

[0156] Based on the method provided in this invention, a webpage can invoke the app and navigate to a specified native page by calling the webpage-to-app native page protocol. If a new requirement for a webpage-to-app native page redirection is needed, simply configure the new protocol data in the management backend and update the interface. The protocol content is then communicated to the app via the interface, allowing for online synchronization of the webpage-to-app native page redirection logic with the app. The page redirection protocol data can be modified at any time, and parameters can be added or removed in real-time, facilitating online fault tolerance.

[0157] and Figure 1 Corresponding to the application software activation method shown, this embodiment of the invention also provides an application software activation device for activating software. Figure 1 The specific implementation of the method shown is illustrated in the following diagram. Figure 4 As shown, it includes:

[0158] The acquisition unit 301 is used to acquire a first page jump protocol contained in the jump instruction when the application software starts in response to the jump instruction sent by the web page. The first page jump protocol is the page jump protocol configured in the web page.

[0159] The parsing unit 302 is used to parse the first page jump protocol to obtain the target protocol identifier and target protocol information corresponding to the first page jump protocol;

[0160] The first determining unit 303 is used to determine the local protocol information library corresponding to the current application software. The local protocol information library is updated based on the latest configured jump protocol data in the server of the application software. The local protocol information library contains multiple preset protocol identifiers, a native page identifier corresponding to each preset protocol identifier, and protocol configuration information corresponding to each preset protocol identifier.

[0161] The first judgment unit 304 is used to determine whether there is a preset protocol identifier in the local protocol information database that matches the target protocol identifier;

[0162] The second determining unit 305 is used to use the preset protocol identifier that matches the target protocol identifier as the jump protocol identifier if there is a preset protocol identifier in the local protocol information database that matches the target protocol identifier.

[0163] The second judgment unit 306 is used to determine whether the target protocol information matches the target protocol configuration information; the target protocol configuration information is the protocol configuration information corresponding to the jump protocol identifier.

[0164] Modification unit 307 is used to modify the target protocol information according to the target protocol configuration information if the target protocol information does not match the target protocol configuration information, so as to obtain the jump protocol information corresponding to the target protocol information;

[0165] The first generation unit 308 is used to generate a second page jump protocol corresponding to the application software based on the jump protocol information and the native page identifier corresponding to the jump protocol identifier.

[0166] The first redirection unit 309 is used to redirect to the native page corresponding to the second page redirection protocol after the application software is started, so as to wake up the application software.

[0167] Using the apparatus provided in this embodiment of the invention, when a webpage needs to redirect an application to a specified page, the application can parse and reassemble the page redirection protocol transmitted by the webpage based on a local protocol information database updated with the latest protocol data from the server, thus obtaining the actual page redirection protocol used by the application. When changes to the application's redirection settings are required, maintenance personnel can update the redirection protocol data through the server. The application can dynamically update the protocol data, performing protocol parsing and reassembly based on the latest protocol data during the next redirection. This eliminates the need for redeveloping and redeploying the application, saving significant human and development resources, reducing the time spent updating protocol data, and helping to avoid adverse effects on application users, thereby improving the user experience.

[0168] Based on the apparatus provided in the above embodiments, in the apparatus provided in the embodiments of the present invention, the first determining unit 303 includes:

[0169] The first judgment subunit is used to determine whether a local protocol file exists in the cache location of the application software;

[0170] The second judgment subunit is used to determine whether the local protocol file needs to be updated through a preset interface if the local protocol file exists in the cache location of the application software.

[0171] The update subunit is used to obtain the currently configured jump protocol data in the server through the preset interface if the local protocol file needs to be updated, and update the local protocol file according to the currently configured jump protocol data in the server to obtain the updated local protocol file.

[0172] The first determining subunit is used to use the updated local protocol file as the local protocol information database.

[0173] Based on the apparatus provided in the above embodiments, the apparatus provided in the embodiments of the present invention further includes:

[0174] The second determining subunit is used to use the local protocol file as the local protocol information database if there is no need to update the local protocol file at present.

[0175] Based on the apparatus provided in the above embodiments, in the apparatus provided in the embodiments of the present invention, the second determining unit 306 includes:

[0176] The third determining subunit is used to determine multiple protocol configuration items included in the target protocol configuration information;

[0177] The third judgment subunit is used to determine, for each of the protocol configuration items, whether the target protocol configuration information contains the configuration value corresponding to that protocol configuration item;

[0178] The fourth determining subunit is configured to determine that the target protocol information does not match the target protocol configuration information if the target protocol configuration information contains configuration values ​​corresponding to at least one of the protocol configuration items; and to determine that the target protocol information matches the target protocol configuration information if the target protocol configuration information does not contain configuration values ​​corresponding to any of the protocol configuration items.

[0179] Based on the apparatus provided in the above embodiments, in the apparatus provided in the embodiments of the present invention, the modification unit 307 includes:

[0180] The fifth determining subunit is used to determine, for each of the protocol configuration items, if the target protocol configuration information contains the configuration value corresponding to the protocol configuration item, then the protocol configuration item is taken as the target configuration item;

[0181] The sixth determining subunit is used to determine each protocol data item in the target protocol information;

[0182] The seventh determining subunit is used to determine the target protocol data item corresponding to each target configuration item in the various protocol data items;

[0183] The modification subunit is used to modify the data value of each target protocol data item in the target protocol information according to the configuration value corresponding to the target configuration item, so as to modify the target protocol information.

[0184] Based on the apparatus provided in the above embodiments, the apparatus provided in the embodiments of the present invention further includes:

[0185] The second redirection unit is used to redirect to the homepage of the application software after the application software is started if there is no preset protocol identifier matching the target protocol identifier in the local protocol information database.

[0186] Based on the apparatus provided in the above embodiments, the apparatus provided in the embodiments of the present invention further includes:

[0187] The second generation unit is used to generate a third page redirection protocol corresponding to the application software based on the native page identifier corresponding to the target protocol information and the redirection protocol identifier if the target protocol information matches the target protocol configuration information.

[0188] The third redirection unit is used to redirect to the native page corresponding to the third page redirection protocol after the application software is launched, so as to wake up the application software.

[0189] This invention also provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the application software wake-up method described above.

[0190] This invention also provides an electronic device, the structural schematic of which is shown below. Figure 5 As shown, it specifically includes a memory 401 and one or more instructions 402, wherein one or more instructions 402 are stored in the memory 401 and configured to be executed by one or more processors 403 to perform the following operations:

[0191] When the application software starts in response to a redirection command sent by the web page, the first page redirection protocol contained in the redirection command is obtained, and the first page redirection protocol is the page redirection protocol configured in the web page.

[0192] The first page redirection protocol is parsed to obtain the target protocol identifier and target protocol information corresponding to the first page redirection protocol;

[0193] Determine the local protocol information library corresponding to the current application software. The local protocol information library is updated based on the latest configured redirection protocol data in the server of the application software. The local protocol information library contains multiple preset protocol identifiers, a native page identifier corresponding to each preset protocol identifier, and protocol configuration information corresponding to each preset protocol identifier.

[0194] Determine whether a preset protocol identifier that matches the target protocol identifier exists in the local protocol information database;

[0195] If a preset protocol identifier that matches the target protocol identifier exists in the local protocol information database, then the preset protocol identifier that matches the target protocol identifier will be used as the jump protocol identifier.

[0196] Determine whether the target protocol information matches the target protocol configuration information; the target protocol configuration information is the protocol configuration information corresponding to the jump protocol identifier.

[0197] If the target protocol information does not match the target protocol configuration information, the target protocol information is modified according to the target protocol configuration information to obtain the jump protocol information corresponding to the target protocol information;

[0198] Based on the redirection protocol information and the native page identifier corresponding to the redirection protocol identifier, a second page redirection protocol corresponding to the application software is generated;

[0199] After the application software is launched, it will redirect to the native page corresponding to the second page redirection protocol to activate the application software.

[0200] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the descriptions in the method embodiments. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0201] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0202] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.< / query> < / path> < / port> < / host> < / scheme>

Claims

1. An application software arousal method, characterized by, The application comprises the following steps: In the case that the application software is started in response to the jump instruction sent by the webpage end, a first page jump protocol contained in the jump instruction is acquired, and the first page jump protocol is a page jump protocol configured in the webpage end; The first page jump protocol is parsed to obtain a target protocol identifier and target protocol information corresponding to the first page jump protocol; A local protocol information library corresponding to the application software is determined, the local protocol information library is obtained by updating based on the latest jump protocol data configured in the server of the application software, and the local protocol information library contains a plurality of preset protocol identifiers, a native page identifier corresponding to each preset protocol identifier, and protocol configuration information corresponding to each preset protocol identifier; The preset protocol identifier refers to an identifier agreed in advance for representing a corresponding protocol; the native page identifier refers to a name or path identifier of an APP to be jumped represented by a corresponding protocol; and the protocol configuration information refers to a configuration of protocol parameters of a corresponding protocol; It is judged whether a preset protocol identifier matched with the target protocol identifier exists in the local protocol information library; If a preset protocol identifier matched with the target protocol identifier exists in the local protocol information library, the preset protocol identifier matched with the target protocol identifier is taken as a jump protocol identifier; It is judged whether the target protocol information and target protocol configuration information are matched; The target protocol configuration information is protocol configuration information corresponding to the jump protocol identifier; If the target protocol information and the target protocol configuration information are not matched, the target protocol information is modified according to the target protocol configuration information to obtain jump protocol information corresponding to the target protocol information; According to the jump protocol information and the native page identifier corresponding to the jump protocol identifier, a second page jump protocol corresponding to the application software is generated; After the application software is started, the application software is jumped to a native page corresponding to the second page jump protocol to call the application software.

2. The method of claim 1, wherein, The determination of the local protocol information library corresponding to the application software comprises the following steps: It is judged whether a local protocol file exists in a cache position of the application software; If the local protocol file exists in the cache position of the application software, it is judged through a preset interface whether the local protocol file needs to be updated at present; If the local protocol file needs to be updated at present, jump protocol data currently configured in the server is acquired through the preset interface, and the local protocol file is updated according to the jump protocol data currently configured in the server to obtain an updated local protocol file; The updated local protocol file is taken as the local protocol information library.

3. The method of claim 2, wherein, Further comprising: If the local protocol file does not need to be updated at present, the local protocol file is taken as the local protocol information library.

4. The method of claim 1, wherein, The judgment of whether the target protocol information and target protocol configuration information are matched comprises the following steps: A plurality of protocol configuration items contained in the target protocol configuration information are determined; For each of the protocol configuration items, it is judged whether the target protocol configuration information contains the configuration value corresponding to the protocol configuration item; If the target protocol configuration information contains the configuration value corresponding to at least one of the protocol configuration items, it is determined that the target protocol information does not match the target protocol configuration information; If the target protocol configuration information does not contain the configuration value corresponding to any of the protocol configuration items, it is determined that the target protocol information matches the target protocol configuration information.

5. The method of claim 4, wherein, The modification of the target protocol information according to the target protocol configuration information comprises: For each of the protocol configuration items, if the target protocol configuration information contains the configuration value corresponding to the protocol configuration item, the protocol configuration item is taken as a target configuration item; Each protocol data item in the target protocol information is determined; In the protocol data items, the target protocol data item corresponding to each target configuration item is determined; For each target protocol data item in the target protocol information, the data value of the target protocol data item is modified according to the configuration value corresponding to the target configuration item corresponding to the target protocol data item, so as to modify the target protocol information.

6. The method of claim 1, wherein, Further comprising: If the preset protocol identifier matching the target protocol identifier does not exist in the local protocol information library, the application software is jumped to the home page after the application software is started, so as to arouse the application software.

7. The method of claim 1, wherein, Further comprising: If the target protocol information matches the target protocol configuration information, a third page jump protocol corresponding to the application software is generated according to the target protocol information and the native page identifier corresponding to the jump protocol identifier; The application software is jumped to the native page corresponding to the third page jump protocol after the application software is started, so as to arouse the application software.

8. An application software arousal apparatus, characterized by comprising: Comprising: An acquisition unit is configured to acquire a first page jump protocol contained in a jump instruction sent by a webpage end, in a case where an application software is started in response to the jump instruction, the first page jump protocol being a page jump protocol configured in the webpage end; An analysis unit is configured to analyze the first page jump protocol to obtain a target protocol identifier and target protocol information corresponding to the first page jump protocol; A first determination unit is configured to determine a local protocol information library corresponding to the current application software, the local protocol information library being obtained by updating a jump protocol data newly configured in a server of the application software, the local protocol information library containing a plurality of preset protocol identifiers, a native page identifier corresponding to each of the preset protocol identifiers, and protocol configuration information corresponding to each of the preset protocol identifiers; The preset protocol identifier refers to an identifier agreed in advance for representing a corresponding protocol; the native page identifier refers to a name or path identifier of an APP to be jumped to represented by a corresponding protocol; and the protocol configuration information refers to a configuration of protocol parameters of a corresponding protocol; A first judgment unit is configured to judge whether a preset protocol identifier matching the target protocol identifier exists in the local protocol information library. The second determining unit is configured to, if the preset protocol identifier matching the target protocol identifier exists in the local protocol information library, take the preset protocol identifier matching the target protocol identifier as a jump protocol identifier; The second judging unit is configured to judge whether the target protocol information matches target protocol configuration information; The target protocol configuration information is protocol configuration information corresponding to the jump protocol identifier; The modifying unit is configured to, if the target protocol information does not match the target protocol configuration information, modify the target protocol information according to the target protocol configuration information to obtain jump protocol information corresponding to the target protocol information; The first generating unit is configured to generate a second page jump protocol corresponding to the application software according to the jump protocol information and a native page identifier corresponding to the jump protocol identifier; The first jump unit is configured to jump to a native page corresponding to the second page jump protocol after the application software is started to arouse the application software.

9. A storage medium, characterized by The storage medium includes stored instructions, wherein the instructions, when executed, control a device in which the storage medium is located to perform the application software arousing method of any one of claims 1-7.

10. An electronic device, comprising: The computer program product includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to perform the application software arousing method of any one of claims 1-7.

Citation Information

Patent Citations

  • Page skipping method and device, electronic equipment and storage medium

    CN110221872A

  • Page jumping method and device, equipment and storage medium

    CN114510666A