Sub-application startup method, device, computer equipment and storage medium

The method of generating customizable startup pages for sub-applications during loading, addressing the inefficiency of idle waiting times, enhances user interaction and resource utilization by displaying sub-application information, and reduces the risk of a blank screen.

CN113934465BActive Publication Date: 2025-07-15TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010597799.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-28
Publication Date
2025-07-15
Estimated Expiration
2040-06-28

AI Technical Summary

Technical Problem

The resource utilization rate of the sub-app is low during the loading time between launching to the homepage page, and users can only wait, resulting in waste of resources.

Method used

Get the custom configuration information of the child application through the parent application and download the code package, generate a custom startup page, display the startup page during the loading process of the child application, and hide the startup page after the code package is downloaded.

Benefits of technology

This improves resource utilization, and users can obtain more sub-application information during the loading time, enhances human-computer interaction, and reduces the probability of screen black caused by the startup page being hidden but the sub-application is not loaded.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113934465B_ABST
    Figure CN113934465B_ABST
Patent Text Reader

Abstract

The present application relates to a method, apparatus, computer device, and storage medium for starting a sub-application. The method includes: when triggering the start operation of the sub-application through the parent application, obtaining the custom configuration information of the sub-application and downloading the code package of the sub-application; generating a custom start page for the sub-application based on the custom configuration information; displaying the custom start page during the process of the parent application starting the sub-application; and hiding the custom start page when the code package is downloaded and the sub-application runs on the parent application based on the code package. Adopting this solution can improve resource utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular, to a method and device for starting a sub-application, a computer device, and a storage medium. Background Art

[0002] With the development of computer technology, more and more application programs have emerged. Application programs include native applications that run independently on an operating system, as well as web applications, etc. With the development of technology and the improvement of user requirements, sub-applications, also known as mini-programs, have emerged. A sub-application is an application that can run in the operating environment provided by a parent application, and the parent application is a native application that runs on the operating system and provides an operating environment for the sub-application.

[0003] Currently, there is a loading time between the start of a sub-application and the first screen page. During this loading time, users can only wait, resulting in a waste of resources, that is, low resource utilization. Summary of the Invention

[0004] Based on this, in view of the above technical problems, it is necessary to provide a method and device for starting a sub-application, a computer device, and a storage medium that can improve resource utilization.

[0005] A method for starting a sub-application, the method comprising:

[0006] When triggering the start operation of the sub-application through the parent application, obtaining the custom configuration information of the sub-application, and downloading the code package of the sub-application;

[0007] Generating a custom start page for the sub-application based on the custom configuration information;

[0008] During the process of the parent application starting the sub-application, displaying the custom start page;

[0009] When the code package is downloaded and the sub-application is run on the parent application based on the code package, hiding the custom start page.

[0010] A device for starting a sub-application, the device comprising:

[0011] A custom start page generation module, configured to obtain the custom configuration information of the sub-application and download the code package of the sub-application when triggering the start operation of the sub-application through the parent application; generating a custom start page for the sub-application based on the custom configuration information;

[0012] A display module, configured to display the custom start page during the process of the parent application starting the sub-application;

[0013] A hidden module for hiding the custom splash screen when the code package is downloaded and the sub-application is run on the parent application based on the code package.

[0014] In one embodiment, the custom splash screen generation module is further configured to send a custom configuration information acquisition request for the sub-application to the sub-application common service platform corresponding to the parent application according to the start operation of the triggered sub-application; and receive the custom configuration information associated with the sub-application fed back in response to the custom configuration information acquisition request from the sub-application common service platform.

[0015] In one embodiment, the custom splash screen generation module further includes a cover image acquisition module for downloading a cover image based on the cover image download address.

[0016] In one embodiment, the cover image acquisition module is further configured to obtain the custom configuration information of the sub-application from the sub-application common service platform corresponding to the parent application; and download the cover image from the content delivery network based on the cover image download address.

[0017] In one embodiment, the start device of the sub-application further includes a storage module for obtaining the code compilation file of the sub-application; parsing the code compilation file to obtain a code package, start page custom configuration content, and a cover image; storing the code package and the start page custom configuration content in the sub-application common service platform; storing the cover image in the content delivery network, and storing the cover image download address of the cover image in the content delivery network in the sub-application common service platform.

[0018] In one embodiment, the storage module is further configured to store the start page custom configuration content and the cover image download address in the configuration storage space of the sub-application common service platform; and store the code package in the code package storage space of the sub-application common service platform.

[0019] In one embodiment, the custom splash screen generation module is further configured to perform the step of downloading the cover image based on the cover image download address when the cover image of the sub-application does not exist locally; and directly generate the custom splash screen of the sub-application according to the local cover image and the start page custom configuration content when the cover image of the sub-application exists locally.

[0020] In one embodiment, the custom splash screen generation module further includes an adjustment module for obtaining a splash screen template; adding the cover image to the splash screen template, and adjusting the content in the splash screen template according to the start page custom configuration content to obtain the custom splash screen of the sub-application.

[0021] In one embodiment, the adjustment module is further configured to, when the startup page custom configuration content includes a progress bar configuration item, adjust the display style of the progress bar located in the startup page template according to the progress bar configuration item; when the startup page custom configuration content includes a text configuration item, adjust the text content and text display style in the startup page template according to the text configuration item; and when the startup page custom configuration content includes a cover image scaling configuration item, adjust the display scaling ratio of the cover image according to the image scaling configuration item.

[0022] In one embodiment, the hiding module further includes an interface calling module, configured to, when it is determined based on the startup page hiding configuration item that the hiding method of the custom startup page is a custom hiding method, monitor a specified event corresponding to the custom hiding method configuration; and when the specified event is monitored to occur, hide the custom startup page.

[0023] In one embodiment, the interface calling module is further configured to, when the specified event is monitored to occur, call the startup page hiding interface provided by the parent application or the public service platform of the sub-application corresponding to the parent application to hide the custom startup page.

[0024] A computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0025] When triggering the startup operation of a sub-application through a parent application, obtain the custom configuration information of the sub-application and download the code package of the sub-application;

[0026] Generate a custom startup page for the sub-application based on the custom configuration information;

[0027] During the process of the parent application starting the sub-application, display the custom startup page;

[0028] When the code package is downloaded and the sub-application is run on the parent application based on the code package, hide the custom startup page.

[0029] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0030] When triggering the startup operation of a sub-application through a parent application, obtain the custom configuration information of the sub-application and download the code package of the sub-application;

[0031] Generate a custom startup page for the sub-application based on the custom configuration information;

[0032] During the process of the parent application starting the sub-application, display the custom startup page;

[0033] After the code package is downloaded and the sub-application is run on the parent application based on the code package, hide the custom startup page.

[0034] In the above-mentioned sub-application startup method, device, computer device, and storage medium, in the startup method of the above-mentioned sub-application, when triggering the startup operation of the sub-application through the parent application, by downloading the custom configuration information and code package of the sub-application in parallel, network resources such as network bandwidth can be fully utilized; based on the custom configuration information, a custom startup page is generated and displayed, so that the startup pages of different sub-applications can be different. In this way, not only the personalized setting of the startup page is realized, but also the quality of the application is improved; after the code package is downloaded and the sub-application is run on the parent application based on the code package, then hide the custom startup page, which can reduce the probability of the custom startup page being hidden while the sub-application has not been loaded completely, resulting in a black screen. Since the present application displays a custom startup page during the startup process of the sub-application, the user can not only wait during the loading time, but also obtain more information about the sub-application based on the custom startup page, thereby enhancing the interaction between humans and machines and improving the resource utilization rate. Description of the Drawings

[0035] Figure 1 It is an application environment diagram of the startup method of the sub-application in one embodiment;

[0036] Figure 2 It is a flow schematic diagram of the startup method of the sub-application in one embodiment;

[0037] Figure 3 It is a schematic diagram of the custom startup page in one embodiment;

[0038] Figure 4A It is a page schematic diagram of generating a custom startup page based on the custom configuration content of the startup page in one embodiment;

[0039] Figure 4B It is a page schematic diagram of generating a custom startup page based on the cover image in one embodiment;

[0040] Figure 5 It is a storage schematic diagram of the code compilation file in one embodiment;

[0041] Figure 6 It is a schematic diagram of the default startup page in one embodiment;

[0042] Figure 7 It is a specific flow schematic diagram of starting the sub-application in one embodiment;

[0043] Figure 8 It is a flow schematic diagram of the startup method of the sub-application in a specific embodiment;

[0044] Figure 9 Schematic flowchart of the startup method of a sub - application in another specific embodiment;

[0045] Figure 10 Structural block diagram of the startup device of a sub - application in an embodiment;

[0046] Figure 11 Structural block diagram of the startup device of a sub - application in another embodiment;

[0047] Figure 12 Internal structure diagram of a computer device in an embodiment. Specific implementation manners

[0048] In order to make the purpose, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0049] The startup method of the sub - application provided by the present application can be applied to an application environment as Figure 1 shown. Among them, the terminal 102 communicates with the server 104 through the network. A client of the parent application runs in the terminal 102, which is used to trigger the startup operation of the sub - application. A sub - application public service platform corresponding to the parent application runs in the server 104, which is used to return the custom configuration information of the sub - application to the client of the parent application when the startup operation of the sub - application is triggered, so that the client of the parent application can generate a custom startup page based on the custom configuration information. The terminal 102 can be but is not limited to various personal computers, laptop computers, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.

[0050] In one embodiment, as Figure 2 shown, a startup method of a sub - application is provided. Taking the method applied to the Figure 1 terminal 102 as an example, the method includes the following steps:

[0051] S202, when triggering the startup operation of the sub - application through the parent application, obtain the custom configuration information of the sub - application and download the code package of the sub - application.

[0052] Among them, a sub-application is an application that can run in the operating environment provided by the parent application, and the parent application is a native application that runs on the operating system and provides an operating environment for the sub-application. The parent application provides an environment for the operation of the sub-application, and creates a logic layer processing unit and a view layer processing unit for implementing the sub-application. The view layer processing unit is used to process the views of the sub-application program; the logic layer processing unit is used to process the interaction logic of the sub-application. The processing unit can specifically be a process or a thread, such as a logic layer thread and a corresponding view layer thread. The logic layer processing unit can run in a virtual machine, such as a JavaScript virtual machine, etc.

[0053] The startup operation refers to the operation where the user starts the sub-application through the parent application. For example, the startup operation of the sub-application can be: the user's click operation on the icon of the sub-application displayed in the parent application, or the user's click operation on the link of the sub-application in the parent application, etc.

[0054] The custom configuration information refers to the information used to configure the display elements in the custom startup page. The custom configuration information can include one or more configuration items, and different configuration items can be configured for different display elements. The custom startup page refers to the page displayed on the client screen from the moment the startup operation of the sub-application is triggered until the first screen page of the sub-application is truly displayed, which is customized by the developer. The custom startup page can include one or more display elements, and based on different display elements, different sub-application information can be conveyed to the user. The display element refers to the object that constitutes the content of the custom startup page. The content of the custom startup page refers to the content that needs to be displayed. The display elements that make up the custom startup page can be, but are not limited to, at least one of a progress bar, a cover image, the name of the sub-application, the version number of the sub-application, and the prompt information of the sub-application. For example, referring to Figure 3 , assuming the sub-application is the "A Card Game", the custom startup page is as Figure 3 shown, then the display elements included in the content of this custom startup page include a progress bar 302, a cover image 304, the name of the sub-application 306, the prompt information 308 of the sub-application, and the version number 310 of the sub-application. The cover image 306 refers to the background image in the custom startup page. Figure 3 Shows a schematic diagram of the custom startup page in an embodiment.

[0055] Specifically, when the startup operation of the sub-application is triggered through the parent application, the client of the parent application generates a sub-application download request according to the triggered startup operation, and pulls the custom configuration information of the sub-application and the code package of the sub-application from the sub-application public service platform corresponding to the parent application. Among them, the code package refers to a collection of codes that can be combined with the public resources provided by the parent application to implement different functions of the sub-application. The public resources are, for example, at least one of the public components for building the sub-application, the logic code for implementing common functions, and the style code for implementing common styles, etc.

[0056] In one embodiment, before pulling the custom configuration information and code package of the sub-application from the sub-application public service platform corresponding to the parent application, the startup method of the sub-application further includes: the custom configuration information and the code package are sent by the sub-application public service platform corresponding to the parent application after authenticating the download request and the authentication is successful.

[0057] After the sub-application public service platform corresponding to the parent application receives the sub-application download request sent by the client of the parent application, it authenticates the sub-application download request. When the authentication is successful, it returns the custom configuration information and the code package to the client of the parent application; when the authentication fails, it sends a verification failure prompt message to the client of the parent application. Sending the custom configuration information and the code package after successful verification can improve the security of the sub-application.

[0058] In one embodiment, the client of the parent application can determine to trigger the startup operation of the sub-application by detecting the user's click on the sub-application icon on the screen; or by recognizing the user's voice information to determine to trigger the startup operation of the sub-application; or by detecting the user's gesture, when the gesture matches the preset gesture, it is determined to trigger the startup operation of the sub-application, and this is not limited to this.

[0059] S204, generate a custom startup page for the sub-application based on the custom configuration information.

[0060] Among them, the custom configuration information specifically includes at least one of the cover image of the custom startup page, the download address of the cover image, and the custom configuration content of the startup page, etc. Among them, the custom configuration content of the startup page includes at least one configuration item, such as a progress bar configuration item, a text configuration item, and a cover image scaling configuration item, etc. Based on different configuration items, different display elements in the custom startup page can be configured. For example, based on the progress bar configuration item, the color of the progress bar displayed in the custom startup page can be configured, and based on the text configuration item, the text content displayed in the custom startup page can be configured, such as configuring the sub-application prompt information.

[0061] Specifically, when the custom configuration information is obtained, the client of the parent application determines the specific configuration content included in the custom configuration information, and generates a custom startup page for the sub-application based on the specific configuration content. For example, referring to Figure 4A , assuming that the sub-application is the "A Chess and Card Game", when the custom configuration information only includes the custom configuration content of the startup page, the client of the parent application generates a custom startup page as shown in Figure 4A ; Figure 4A FIG. is a schematic diagram of a page for generating a custom startup page based on the custom configuration content of the startup page in one embodiment. Referring to Figure 4B, assuming the sub - application is "A Chess and Card Game", when the custom configuration information only includes a cover image, the client of the parent application generates a custom startup page as shown in Figure 4B ; Figure 4B Figure 150 is a schematic diagram of a page for generating a custom startup page based on a cover image in an embodiment. Assuming that the custom configuration information includes both a cover image and custom startup page configuration content, the client of the parent application generates a custom startup page as shown in Figure 3 ;

[0062] In one embodiment, the startup method of the above - mentioned sub - application further includes: downloading the cover image based on the cover image download address; generating a custom startup page of the sub - application based on the custom configuration information, including: when the cover image is successfully downloaded, generating a custom startup page of the sub - application based on the cover image and the custom startup page configuration content.

[0063] Specifically, when the custom configuration information includes a cover image download address and custom startup page configuration content, the client of the parent application downloads the cover image based on the cover image download address, and after the cover image is successfully downloaded, calls a preset startup page generation interface to generate a custom startup page as shown in Figure 3 ; where the startup page generation interface is used to generate a custom startup page according to the cover image or the custom startup page configuration content. It is easy to understand that the cover image can also be a video or an animation, etc.

[0064] In one embodiment, when the cover image is successfully downloaded, the client of the parent application counts the number of images of the downloaded cover image and determines the image format of the cover image, and generates a custom startup page based on the number of images and the image format.

[0065] According to different display styles, custom startup pages can be divided into static pages, dynamic pages, and scrolling pages. A static page refers to a startup page that displays the cover image in a static form. When the image format of the downloaded cover image is a static format such as jpg (Joint Photographic Experts Group) or png (Portable Network Graphics), the client of the parent application generates a static page based on the cover image and custom configuration information; a dynamic page refers to a startup page that displays the cover image in a dynamic form. When the image format of the downloaded cover image is a dynamic format such as gif (Graphics Interchange Format), the client of the parent application generates a dynamic page; a scrolling page refers to a startup page that displays the cover image in turn. When the number of downloaded cover images is more than 1, the client of the parent application generates a scrolling page. By generating custom startup pages in various styles, the display effect of the custom startup page is greatly enriched.

[0066] In one embodiment, before starting the sub-application, the sub-application developer can configure the custom configuration information by modifying the sub-application configuration file. Taking WeChat mini-games as an example, the WeChat public platform corresponding to "WeChat" can provide WeChat mini-game developers with a configuration file "game.json" for customizing the startup page, so that WeChat mini-game developers only need to modify "game.json" to customize the startup page. For example, the configuration file can be:

[0067] "loadingImageInfo":{

[0068] "path":"res / loading.jpeg",

[0069] "progressBarColor":"#9FD524"

[0070] }

[0071] Among them, the configuration items include the configuration name and configuration parameters. "path" represents the configuration name of the configuration item for the storage path of the cover image, and "res / loading.jpeg" represents the configuration parameter of the configuration item for the storage path of the cover image, specifically representing the storage path of the cover image configured by the WeChat mini-program developer relative to the root directory of the WeChat mini-program code. When the cover image needs to be customized, the WeChat mini-program developer uploads the cover image to the WeChat mini-program development tool and configures the cover image based on the storage path of the uploaded cover image relative to the root directory of the WeChat mini-program code; "progressBarColor" represents the configuration name of the progress bar configuration item, and "#9FD524" represents the configuration parameter of the progress bar configuration item, specifically representing the display color of the progress bar configured by the WeChat mini-program developer. Based on this configuration file, the WeChat mini-program developer can customize the cover image and the display color of the progress bar on the splash screen.

[0072] S206. During the process of the parent application starting the child application, display the customized splash screen.

[0073] Specifically, when it is determined that the customized splash screen has been generated, the client of the parent application displays the customized splash screen on the screen. By displaying the customized splash screen, the user can obtain more information about the child application during the loading time of the child application. For example, through the progress bar on the customized splash screen, the user can know the loading progress of the child application; through the cover image on the customized splash screen, the user can learn about the usage interface of the child application in advance; through the prompt information on the customized splash screen, the user can learn about the precautions, etc.

[0074] In one embodiment, when generating the customized splash screen, the client of the parent application determines whether a splash screen is already displayed on the current screen. If a splash screen is already displayed, the client of the parent application replaces the displayed splash screen with the customized splash screen.

[0075] S208. When the code package is downloaded and the child application is run on the parent application based on the code package, hide the customized splash screen.

[0076] Specifically, when the code package of the child application is downloaded, the client of the parent application performs a loading operation based on the downloaded code package. After confirming that the loading is complete and running the child application on the parent application through the code package, the customized splash screen is hidden. For example, when the user launches the WeChat mini-game "A Card Game" through WeChat, to increase the user's patience during waiting, during the process of downloading and loading the code package of "A Card Game", WeChat generates and displays a customized splash screen based on the customized configuration information, so that the user can learn more information related to "A Card Game" in advance during the waiting process. When it is determined that "A Card Game" is loaded, WeChat hides the customized splash screen and switches to display the game's first screen page of "A Card Game".

[0077] In the above method for starting a sub-application, when triggering the start operation of the sub-application through the parent application, by downloading the custom configuration information and code package of the sub-application in parallel, network resources such as network bandwidth can be fully utilized; based on the custom configuration information, a custom start page is generated and displayed, so that the start pages of different sub-applications can be different. In this way, not only the personalized setting of the start page is realized, but also the quality of the application is improved; after the code package is downloaded and the sub-application is run on the parent application based on the code package, the custom start page is hidden, which can reduce the probability of the custom start page being hidden while the sub-application has not been fully loaded, resulting in a black screen of the picture. Since the present application displays a custom start page during the startup process of the sub-application, the user can not only wait during the loading time, but also obtain more information about the sub-application based on the custom start page, thereby enhancing the interaction between humans and machines and improving the resource utilization rate.

[0078] In one embodiment, obtaining the custom configuration information of the sub-application includes: according to the trigger of the start operation of the sub-application, sending a request for obtaining the custom configuration information of the sub-application to the sub-application public service platform corresponding to the parent application; receiving, from the sub-application public service platform, the custom configuration information associated with the sub-application feedback in response to the request for obtaining the custom configuration information.

[0079] Specifically, when triggering the start operation of the sub-application through the parent application, the client of the parent application generates a request for obtaining the custom configuration information based on the application identifier of the sub-application, and determines the sub-application public service platform corresponding to the parent application according to the application identifier of the sub-application or the application identifier of the parent application. Among them, the sub-application public service platform refers to the background management system of the sub-application, which is used to manage the sub-application code package and the custom configuration information associated with the sub-application, such as the WeChat Mini Program public service platform; the parent application public service platform refers to the background management system of the parent application, which is used to manage the parent application code package and the custom configuration information associated with the parent application, such as the WeChat public platform.

[0080] Optionally, developers can deploy corresponding sub-application public service platforms for multiple sub-applications that depend on the parent application to run respectively, or deploy multiple sub-applications in the same sub-application public server platform; when developers deploy corresponding sub-application public service platforms for multiple sub-applications that depend on the parent application to run respectively, the client of the parent application determines the sub-application public service platform corresponding to the parent application based on the application identifier of the sub-application and the application identifier of the parent application; when developers deploy multiple sub-applications in the same sub-application public server platform, the client of the parent application determines the sub-application public service platform corresponding to the parent application based on the application identifier of the parent application.

[0081] Further, the client of the parent application sends a request for obtaining custom configuration information for a child application to the child application public service platform corresponding to the parent application, so that the child application public service platform queries the corresponding custom configuration information according to the application identifier of the child application in the custom configuration information obtaining request, and returns the queried custom configuration information to the client of the parent application.

[0082] In another embodiment, when generating the custom configuration information obtaining request, the client of the parent application determines the parent application public service platform based on the application identifier of the parent application, sends the custom configuration information obtaining request to the parent application public service platform, and the parent application public service platform forwards the custom configuration information obtaining request to the child application public service platform. For example, when the user launches the child application "A Card Game" based on WeChat, the client of the parent application determines that the parent application public service platform corresponding to WeChat is the WeChat public platform based on the application identifier of WeChat, sends the custom configuration information obtaining request to the WeChat public platform, and the WeChat public platform forwards the custom configuration information obtaining request to the child application public service platform of "A Card Game" according to the application identifier of "A Card Game".

[0083] In another embodiment, the custom configuration information obtaining request may also carry the interface address of the custom information download interface, and this interface address is used to instruct the child application public service platform to call the custom information download interface. When generating the custom configuration information obtaining request, the client of the parent application calls the custom information download interface provided by the child application public service platform according to the interface address to download the custom information.

[0084] In this embodiment, the client of the parent application only needs to generate the custom configuration information obtaining request, and can pull the custom configuration information from the child application public service platform corresponding to the parent application based on the custom configuration information obtaining request. In this way, the efficiency of obtaining the custom configuration information is improved.

[0085] In one embodiment, obtaining the custom configuration information of the child application includes: obtaining the custom configuration information of the child application from the child application public service platform corresponding to the parent application; downloading the cover image based on the cover image download address includes: downloading the cover image from the content delivery network based on the cover image download address.

[0086] Among them, the Content Delivery Network (CDN) technology is a method of distributing content from a central server to edge servers close to users, so as to achieve distributed and nearby access to content. The CDN technology effectively improves the service quality of content access and supports large-scale concurrent access capabilities.

[0087] Specifically, the client of the parent application determines the sub-application common service platform corresponding to the parent application, and obtains the custom configuration information of the sub-application based on the sub-application common service platform. When the custom configuration information includes the download address of the cover image, the client of the parent application finds the nearest CDN node and downloads the cover image from the nearest CDN node through the cover image download address. Among them, the nearest CDN node refers to the node with the shortest logical distance and / or physical distance between the CDN node and the client of the parent application. In practical applications, by resolving the IP (Internet Protocol Address) address of the CDN node, the geographical location information and operator information corresponding to the IP address can be obtained. Based on the obtained geographical location information and operator information, the CDN node with the same operator (short logical distance) as the client of the parent application is preferentially selected, and then the CDN node in the same region (short physical distance) among the same operators is selected.

[0088] In another embodiment, when the nearest CDN node does not cache the cover image, the client of the parent application switches to obtaining the cover image from the CDN data source server. Among them, the CDN data source server refers to a server that stores static resources such as cover images and distributes the static resources to each CDN node.

[0089] In another embodiment, when the nearest CDN node does not cache the cover image, the nearest CDN node obtains the cover image from the CDN data source server based on the cover image download address, sends the cover image to the client, and caches the cover image.

[0090] In this embodiment, by downloading the cover image from the nearest CDN node, the download speed of the cover image can be effectively improved, thereby improving the generation efficiency of the custom startup page.

[0091] In one embodiment, the sub-application common service platform executes the sub-application startup page configuration steps; the sub-application startup page configuration steps include: obtaining the code compilation file of the sub-application; parsing the code compilation file to obtain the code package, startup page custom configuration content, and cover image; storing the code package and startup page custom configuration content in the sub-application common service platform; storing the cover image in the content distribution network, and storing the cover image download address in the content distribution network in the sub-application common service platform.

[0092] Specifically, developers of sub-applications can develop sub-applications based on sub-application development software. For example, they can write the code package of a WeChat mini-game based on the WeChat mini-game development tool, select the cover image of the startup page and set the custom configuration content of the startup page based on the configuration file, etc. When the development is completed, they compile the code package and the configuration file containing the selected cover image and the custom configuration content of the startup page to obtain a code compilation file. Here, the code compilation file refers to the file obtained after compiling the development code and the configuration file. The configuration file refers to the file storing the cover image configuration items and the custom configuration content of the startup page. For example, in the above example, the configuration file can be "game.json" provided by the WeChat public platform.

[0093] Further, when the code compilation file is obtained, the developers of the sub-application upload the code compilation file to the sub-application public service platform through the sub-application development software. For example, the developers upload the compiled code compilation file corresponding to the WeChat mini-game to the WeChat public platform through the WeChat mini-game development tool, so that the WeChat public platform forwards the code compilation file to the sub-application public service platform of the WeChat mini-game. In one embodiment, the code compilation file can also be uploaded to the parent application public service platform, and the parent application public service platform parses and stores the code compilation file, which is not limited here.

[0094] Further, when the sub-application public service platform obtains the code compilation file, the sub-application public service platform parses the code compilation file, such as decompressing the code compilation file to obtain the code package and the configuration file, and stores the startup page configuration content in the code package and the configuration file correspondingly.

[0095] At the same time, the sub-application public service platform reads the cover image configuration items in the configuration file and extracts the cover image from the code compilation file according to the cover image configuration items. For example, when the cover image configuration item is "path": "res / loading.jpeg", the sub-application public service platform extracts the cover image from the code compilation file according to the relative path "res / loading.jpeg".

[0096] The sub-application public service platform determines a preset CDN data source server associated with itself, stores the cover image separately on the CDN data source server, and the CDN data source server distributes the cover image to each CDN node. The sub-application public service platform determines the domain name corresponding to the CDN data source server and the storage path of the cover image on the CDN data source server, generates a cover image download address based on the domain name and the storage path, and stores the cover image download address when the generation of the cover image download address is successful. For example, when the domain name corresponding to the CDN data source server is "www.aa.com" and the storage path is "loading.jpeg", the cover image download address is "www.aa.com / loading.jpeg".

[0097] In another embodiment, when the sub-application public service platform determines the cover image download address of the cover image in the content delivery network, the sub-application public service platform modifies the cover image configuration item, modifies the configuration parameter in the cover image configuration item to the cover image download address, and stores the modified cover image configuration item. For example, in the above example, when the download address of the cover image is www.aa.com / loading.jpeg and the cover image configuration item is "path": "res / loading.jpeg", the sub-application public service platform modifies the cover image configuration item to "path": "www.aa.com / loading.jpeg". By correspondingly modifying the cover image configuration item, the subsequent client of the parent application can directly download the cover image based on the configuration parameter in the cover image configuration item.

[0098] In another embodiment, the code compilation file, the code package, the startup page custom configuration content, and the cover image all contain the version information of the sub-application and the application identifier of the sub-application. The version information of the sub-application can be the version number of the sub-application, such as "V1", "V2", etc.; the application identifier of the sub-application is the information that uniquely identifies a sub-application. For example, the application identifier of the sub-application can be the application ID of the sub-application, etc. It is easy to understand that when the code compilation file, the code package, the startup page custom configuration content, and the cover image all belong to the same sub-application, the version information and the application identifier carried by the code compilation file, the code package, the startup page custom configuration content, and the cover image are the same.

[0099] When receiving the code compilation file of the sub - application, the sub - application public service platform determines whether there is a code package, or a custom configuration content of the startup page, or a cover image with the same application identifier stored in its own storage space and the associated content delivery network. When there is no code package, custom configuration content of the startup page, and cover image with the same application identifier as the code compilation file in its own storage space or the content delivery network, the sub - application public service platform stores the code compilation file correspondingly based on the above - mentioned method. When there is a code package, or a custom configuration content of the startup page, or a cover image with the same application identifier as the code compilation file in its own storage space or the content delivery network, it means that the sub - application public service platform has stored the code package, custom configuration content of the startup page, and cover image associated with the application identifier of the sub - application. At this time, the sub - application public service platform further detects whether the version information of the code package, custom configuration content of the startup page, and cover image with the same application identifier is the same as the version information of the code compilation file.

[0100] When there is a code package, or a custom configuration content of the startup page, or a cover image with the same version information as the code compilation file, it means that the code compilation file received by the sub - application public service platform is a repeatedly received file. At this time, the sub - application public service platform suspends storing the received code compilation file; when there is no code package, or a custom configuration content of the startup page, or a cover image with the same version information as the code compilation file, it means that the code compilation file received by the sub - application public service platform is the code compilation file of the sub - application after version update. At this time, the sub - application public service platform stores the received code compilation file based on the above - mentioned method, and when the code compilation file is stored, it sends a version update prompt to the client corresponding to the sub - application, so that the client can download the latest version of the code package, custom configuration information, and cover image based on the version update prompt.

[0101] When the code compilation file received by the sub - application public service platform is a repeatedly received file, suspending storing the received code compilation file can reduce the occupation of the storage space of the sub - application public service platform; when the code compilation file received by the sub - application public service platform is the code compilation file of the sub - application after version update, sending a version update prompt to the client corresponding to the sub - application enables the client corresponding to the sub - application to update the sub - application in time based on the version update prompt, that is, update the custom startup page in time.

[0102] In another embodiment, when the user restarts the sub - application through the parent application again, the parent application client asynchronously updates the sub - application by sending an update query to the sub - application public service platform.

[0103] In another embodiment, when receiving the code compilation file after version update, the sub-application public service platform deletes the code compilation file of the historical version to improve the utilization rate of the storage space.

[0104] In this embodiment, by separately storing the cover image that occupies a large amount of storage space in the content delivery network, the sub-application public service platform can improve the utilization rate of the storage space and leave more storage space for storing the custom configuration content of the startup page and the cover image.

[0105] In one embodiment, the custom configuration content of the startup page and the download address of the cover image are stored in the configuration storage space of the sub-application public service platform; the code package is stored in the code package storage space of the sub-application public service platform.

[0106] Specifically, to facilitate the management of the custom configuration content, the download address of the cover image, and the code package, the storage area of the sub-application public service platform can be divided into a configuration storage space and a code package storage space. Refer to Figure 5 , as Figure 5 shown, when parsing the code compilation file to obtain the code package, the custom configuration content of the startup page, and the cover image, the sub-application public service platform stores the code package in the code package storage space and stores the custom configuration content of the startup page in the configuration storage space. When storing the cover image in the content delivery network and generating the download address of the cover image based on the storage path of the cover image in the content delivery network, the sub-application public service platform stores the download address of the cover image in the configuration storage space. Figure 5 Shows a storage schematic diagram of the code compilation file in one embodiment.

[0107] In another embodiment, the configuration storage space can be divided into multiple configuration storage sub-spaces, and different configuration storage sub-spaces are used to store the custom configuration content of the startup page and the download address of the cover image of different sub-applications.

[0108] In this embodiment, by dividing the configuration storage space and the code package storage space, the custom configuration content of the startup page and the download address of the cover image can be stored separately from the code package, which is convenient for the sub-application public service platform to store and manage the custom configuration content, the download address of the cover image, and the code package.

[0109] In one embodiment, the above-mentioned startup method of the sub-application further includes: when the cover image of the sub-application does not exist locally, performing the step of downloading the cover image based on the download address of the cover image; when the cover image of the sub-application exists locally, directly generating the custom startup page of the sub-application according to the local cover image and the custom configuration content of the startup page.

[0110] Specifically, when downloading the cover image based on the cover image download address, the client of the parent application determines whether the cover image of the child application is already stored locally. For example, the client of the parent application determines whether the cover image corresponding to the application identifier is already stored locally according to the application identifier of the child application. If so, the client of the parent application generates a customized startup page for the child application based on the local cover image and the startup page custom configuration content; if not, the client of the parent application extracts the cover image download address from the custom configuration information and downloads the cover image based on the cover image download address.

[0111] In another embodiment, the image name of the cover image carries the application identifier of the child application; finding out whether the cover image of the child application is stored locally according to the application identifier of the child application includes: the client of the parent application matches the application identifier of the child application with the image names of each local cover image one by one. When there is an image name of a cover image that matches the application identifier of the child application locally, it means that the cover image of the child application exists locally; when there is no image name of a cover image that matches the application identifier of the child application locally, it means that the cover image of the child application does not exist locally.

[0112] In another embodiment, when the cover image of the child application exists locally, it means that the child application is not started for the first time. At this time, the client of the parent application generates a customized startup page based on the local cover image and the startup page custom configuration content and displays it. When the cover image of the child application does not exist locally, it means that the child application is started for the first time. At this time, while downloading the cover image, the client of the parent application displays the default startup page provided by the public service platform of the child application, and after generating the customized startup page, replaces the default startup page based on the customized startup page. Among them, the default startup page refers to a startup page provided by the public service platform of the child application that has not been customized. For example, Figure 6 , when the child application is "A Card and Board Game", the default startup page is as Figure 6 shown. Figure 6 FIG. shows a schematic diagram of the default startup page in an embodiment.

[0113] In this embodiment, when the cover image of the child application exists locally, by reusing the local cover image, it is possible to avoid repeatedly downloading the cover image of the child application, thereby reducing the network bandwidth cost.

[0114] In one embodiment, generating a customized startup page for the child application based on the cover image and the startup page custom configuration content includes: obtaining a startup page template; adding the cover image to the startup page template and adjusting the content in the startup page template according to the startup page custom configuration content to obtain the customized startup page of the child application.

[0115] Among them, the startup page template refers to the startup page code written based on formal parameters by replacing specific configuration parameters with formal parameters. Formal parameters are also known as virtual parameters, which are used to receive specific configuration parameters passed in when the startup page template is called.

[0116] Specifically, when the cover image and the custom configuration content of the startup page are obtained, the client of the parent application obtains the pre-stored startup page template, determines the local storage path of the cover image, and adds the local storage path of the cover image to the startup page template.

[0117] Meanwhile, the client of the parent application traverses the configuration items in the custom configuration content, determines the formal parameter to be replaced in the startup page template based on the configuration name of the configuration item in the current traversal order, and replaces the formal parameter to be replaced with the configuration parameter of the configuration item in the current traversal order. For example, if the startup page template has a formal parameter to be replaced "A" with the name "progressBarColor", and the configuration name of the configuration item in the current traversal order is "progressBarColor" and the configuration parameter is "#9FD524", the client replaces "A" with "#9FD524".

[0118] When the cover image is added to the startup page template and the formal parameters in the startup page template are replaced according to the custom configuration content of the startup page, the client of the parent application obtains the custom startup page of the child application.

[0119] In another embodiment, after traversing the configuration items in the custom configuration content, when the startup page template still contains formal parameters that have not been replaced, it indicates that the developer of the child application has not configured all configurable configuration items. At this time, the client obtains the pre-stored default configuration content and replaces the formal parameters based on the configuration parameters in the default configuration content.

[0120] In this embodiment, the client only needs to add the cover image to the startup page template and adjust the content in the startup page template according to the custom configuration content of the startup page to obtain the custom startup page of the child application. Compared with rewriting a completely new custom startup page, this embodiment can effectively improve the generation efficiency of the custom startup page.

[0121] In one embodiment, adjusting the content in the startup page template according to the custom configuration content of the startup page includes: when the custom configuration content of the startup page includes a progress bar configuration item, adjusting the display style of the progress bar located in the startup page template according to the progress bar configuration item; when the custom configuration content of the startup page includes a text configuration item, adjusting the text content and text display style in the startup page template according to the text configuration item; when the custom configuration content of the startup page includes a cover image scaling configuration item, adjusting the display scaling ratio of the cover image according to the image scaling configuration item.

[0122] Specifically, when the client of the parent application determines that the startup page custom configuration content includes a progress bar configuration item based on the configuration name, the client of the parent application replaces the configuration parameters in the progress bar configuration item with the formal parameters corresponding to the progress bar configuration item in the startup page template, so as to adjust the display style of the progress bar located in the startup page template; similarly, when the client of the parent application determines that the startup page custom configuration content includes a text configuration item based on the configuration name, the client of the parent application replaces the configuration parameters of the text content in the text configuration item with the formal parameters corresponding to the text content in the startup page template, and replaces the configuration parameters of the text display style in the text configuration item with the formal parameters corresponding to the text display style in the startup page template, so as to adjust the display style of the progress bar located in the startup page template; when the client of the parent application determines that the startup page custom configuration content includes a cover image scaling configuration item based on the configuration name, the client of the parent application replaces the configuration parameters in the cover image scaling configuration item with the formal parameters corresponding to the cover image scaling configuration item in the startup page template, so as to adjust the display scaling ratio of the cover image according to the image scaling configuration item.

[0123] In this embodiment, since the content in the startup page template can be adjusted according to the startup page custom configuration content, the startup page generated according to the custom configuration content has multiple display styles. Thus, not only the display effect of the startup page is greatly improved, but also the user experience is enhanced.

[0124] In one embodiment, the startup page custom configuration content includes a startup page hiding configuration item; after running the sub-application on the parent application based on the code package, hiding the custom startup page includes: when it is determined that the hiding method of the custom startup page is a custom hiding method based on the startup page hiding configuration item, monitoring a specified event configured corresponding to the custom hiding method; when the specified event is monitored to occur, hiding the custom startup page.

[0125] Specifically, to give the developers of the sub - applications the greatest degree of freedom and ensure that the custom splash screen is hidden only when the first - screen page of the sub - application can be normally displayed, a splash - screen hiding configuration item is provided in the custom splash - screen configuration content. Based on this splash - screen hiding configuration item, the developers of the sub - applications can freely choose the hiding method of the custom splash screen. For example, when the splash - screen hiding configuration item is "manualHideSplashScreen", the developers of the sub - applications can select the hiding method of the custom splash screen as the custom hiding method by configuring "manualHideSplashScreen": true, that is, at this time, the developers of the sub - applications can freely set the hiding timing of the custom splash screen; by configuring "manualHideSplashScreen": false, or not filling in the splash - screen hiding configuration item, the hiding method of the custom splash screen is selected as the default hiding method, that is, at this time, the hiding timing of the custom splash screen is the default timing. Among them, the default timing refers to a unified hiding timing provided by the parent - application service platform for multiple sub - applications running based on the parent application. For example, the default timing can be when the client of the parent application first calls the rendering interface to render the first - screen page of the sub - application, the custom splash screen is hidden.

[0126] When the hiding method of the custom splash screen is selected as the custom hiding method, the developers of the sub - applications can configure a specified event for the custom hiding method, and when the client of the parent application detects that the specified event occurs, the custom splash screen is hidden. Among them, the specified event is an event representing the completion of the sub - application loading. In practical applications, the specified event can be freely set according to requirements. For example, for a WeChat mini - game, when the game interface drawing function first successfully draws the game interface, it represents that the WeChat mini - game has been loaded and the running logic is ready. At this time, the specified event is set as the game - interface drawing event. Another example is that for a WeChat mini - program, the average loading time of the WeChat mini - program can be determined by the way of screen - recording timing, and then the specified event is set as the waiting event based on the average loading time, that is, when the client of the parent application starts from the user starting the WeChat mini - program and waits for the average loading time, the custom splash screen is hidden.

[0127] In this embodiment, by freely selecting the hiding timing of the custom splash screen, it can be ensured that the custom splash screen is hidden only when the sub - application has been loaded and the first - screen page and the running logic of the sub - application are ready, thus greatly reducing the probability that the custom splash screen is hidden but the sub - application has not been loaded yet, resulting in a black screen.

[0128] In one embodiment, when it is detected that the specified event occurs, hiding the custom splash screen includes: when it is detected that the specified event occurs, calling the splash - screen hiding interface provided by the parent application or the sub - application public service platform corresponding to the parent application to hide the custom splash screen.

[0129] Specifically, in the sub-application development environment, in order to reduce the workload of sub-application developers and improve the convenience of sub-application development, the sub-application public service platform corresponding to the parent application provides a large number of interfaces for sub-application developers to call, including the startup page hiding interface. When it is detected that a specified event occurs, the client of the parent application calls the startup page hiding interface provided by the sub-application public service platform corresponding to the parent application to hide the custom startup page. For example, when it is detected that a specified event occurs, the client of the parent application calls the hideSplashScreen interface provided by the sub-application public service platform corresponding to the WeChat public platform to hide the custom startup page. Among them, the client of the parent application calls the hideSplashScreen interface by executing the following code:

[0130] wx.hideSplashScreen({

[0131] complete:console.log})

[0132] Among them, "wx.hideSplashScreen" means calling the startup page hiding interface.

[0133] In another embodiment, in addition to the sub-application public service platform corresponding to the parent application, the parent application can also provide a startup page hiding interface. When it is detected that a specified event occurs, the client of the parent application calls the startup page hiding interface provided by the parent application to hide the custom startup page.

[0134] In this embodiment, by directly calling the startup page hiding interface provided by the parent application or the sub-application public service platform corresponding to the parent application to hide the custom startup page, not only can the reuse rate of the startup page hiding function corresponding to the startup page hiding interface be improved, but also the workload of sub-application developers can be reduced.

[0135] For the convenience of understanding by those skilled in the art, as Figure 7 shown, a specific flowchart of sub-application startup is provided. When the user triggers the startup operation of the sub-application through the parent application, the client of the parent application determines whether the cover image of the sub-application has been stored locally. When the cover image of the sub-application has not been stored locally, it indicates that the sub-application is started for the first time. At this time, the client of the parent application displays the default startup page provided by the sub-application public service platform. At the same time, the client of the parent application obtains the custom configuration information of the sub-application and downloads the code package of the sub-application. When the cover image of the sub-application is obtained through the custom configuration information, the client of the parent application generates the custom startup page of the sub-application according to the cover image and the startup page custom configuration content, and replaces the default startup page with the custom startup page.

[0136] If the sub-application is not launched for the first time, that is, when there is a cover image of the sub-application locally, the client of the parent application directly generates a custom launch page for the sub-application based on the local cover image and the custom configuration content of the launch page and displays it.

[0137] Furthermore, when the hiding method of the custom launch page is determined to be a custom hiding method based on the launch page hiding configuration item, the client of the parent application monitors a specified event configured corresponding to the custom hiding method. When it is detected that the specified event occurs, it indicates that the sub-application has been loaded, the first screen page and the running logic are ready. At this time, the client of the parent application calls the launch page hiding interface to hide the custom launch page.

[0138] In a specific embodiment, as Figure 8 shown, the method for launching a sub-application provided by this application includes the following steps:

[0139] S802, when triggering the launch operation of the sub-application through the parent application, download the code package of the sub-application.

[0140] S804, according to the trigger of the launch operation of the sub-application, send a request for obtaining custom configuration information for the sub-application to the sub-application public service platform corresponding to the parent application.

[0141] S806, receive, from the sub-application public service platform, the custom configuration information associated with the sub-application feedback in response to the custom configuration information acquisition request; the custom configuration information includes the cover image download address and the custom configuration content of the launch page.

[0142] S808, when there is no cover image of the sub-application locally, download the cover image from the content delivery network based on the cover image download address.

[0143] S810, when there is a cover image of the sub-application locally, obtain the local cover image.

[0144] S812, obtain the launch page template.

[0145] S814, when the custom configuration content of the launch page includes a progress bar configuration item, adjust the display style of the progress bar in the launch page template according to the progress bar configuration item to obtain the custom launch page of the sub-application.

[0146] S816, when the custom configuration content of the launch page includes a text configuration item, adjust the text content and the text display style in the launch page template according to the text configuration item to obtain the custom launch page of the sub-application.

[0147] S818, when the custom configuration content of the launch page includes a cover image scaling configuration item, adjust the display scaling ratio of the cover image according to the image scaling configuration item to obtain the custom launch page of the sub-application.

[0148] S820. During the process of the parent application starting the child application, display a custom splash screen.

[0149] S822. When it is determined that the hiding method of the custom splash screen is a custom hiding method based on the splash screen hiding configuration item, monitor the specified event configured corresponding to the custom hiding method; when the specified event is monitored to occur, call the splash screen hiding interface provided by the parent application or the public service platform of the corresponding child application of the parent application to hide the custom splash screen.

[0150] In the above method, device, computer device, and storage medium for starting a child application, in the method for starting the above child application, when triggering the start operation of the child application through the parent application, by parallelly downloading the custom configuration information and code package of the child application, network resources such as network bandwidth can be fully utilized; based on the custom configuration information, generate and display a custom splash screen, so that the splash screens of different child applications can be different. In this way, not only the personalized setting of the splash screen is realized, but also the quality of the application is improved; when the code package is downloaded and the child application is run on the parent application based on the code package, then hide the custom splash screen, which can reduce the probability of the custom splash screen being hidden while the child application has not been fully loaded, resulting in a black screen. Since the present application displays a custom splash screen during the start process of the child application, the user can not only wait during the loading time, but also obtain more information about the child application based on the custom splash screen, thereby enhancing the interaction between humans and machines and improving the resource utilization rate.

[0151] In another specific embodiment, as Figure 9 shown, the method for starting a child application provided by the present application includes the following steps:

[0152] S902. Obtain the code compilation file of the child application.

[0153] S904. Parse the code compilation file to obtain a code package, custom configuration content for the splash screen, and a cover image.

[0154] S906. Store the code package in the code package storage space of the public service platform of the child application, and store the custom configuration content for the splash screen in the configuration storage space of the public service platform of the child application.

[0155] S908. Store the cover image in the content delivery network, and store the cover image download address in the content delivery network in the configuration storage space of the public service platform of the child application.

[0156] S910. When triggering the start operation of the child application through the parent application, obtain the custom configuration information of the child application and download the code package of the child application.

[0157] S912. Generate a custom startup page for the sub-application based on the custom configuration information.

[0158] S914. During the process of the parent application starting the sub-application, display the custom startup page.

[0159] S916. When the code package is downloaded and the sub-application runs on the parent application based on the code package, hide the custom startup page.

[0160] This application also provides an application scenario that applies the above-mentioned startup method for the sub-application.

[0161] Specifically, the application of the startup method for the sub-application in this application scenario is as follows:

[0162] When the user triggers the startup operation of the WeChat mini-game "A Card Game" through WeChat, WeChat determines whether "A Card Game" is started for the first time by checking whether the cover image corresponding to "A Card Game" is stored locally. If it is the first start, WeChat displays the default startup page provided by the WeChat public platform side as shown in Figure 6 Meanwhile, WeChat obtains the custom configuration information of "A Card Game" and downloads the code package of "A Card Game". When the cover image is downloaded from the content delivery network based on the custom configuration information, WeChat generates a custom startup page according to the cover image and the startup page custom configuration content of "A Card Game", and replaces the default startup page with the custom startup page. If "A Card Game" is not started for the first time, that is, the cover image of "A Card Game" already exists locally, WeChat directly generates and displays a custom startup page according to the local cover image and the startup page custom configuration content of "A Card Game".

[0163] Furthermore, when it is determined based on the startup page hiding configuration item that the hiding method of the custom startup page is a custom hiding method, WeChat monitors the specified event configured corresponding to the custom hiding method. When the specified event is monitored to occur, it indicates that "A Card Game" has been loaded, the first-screen page and the running logic are ready. At this time, WeChat calls the startup page hiding interface to hide the custom startup page.

[0164] It should be understood that although Figure 2 、 8 and the steps in the flowcharts of 9 are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, Figure 2 、 8At least some of the steps in 9 may include multiple steps or multiple stages. These steps or stages do not necessarily need to be executed and completed at the same moment, but can be executed at different moments. The execution order of these steps or stages does not necessarily need to be sequential, but can be executed alternately or in turns with at least some of the steps or stages in other steps or other steps.

[0165] In one embodiment, as Figure 10 shown, a startup device 1000 for a sub-application is provided. This device can be a software module, a hardware module, or a combination of both to form a part of a computer device. Specifically, the device includes: a custom startup page generation module 1002, a display module 1004, and a hiding module 1006, where:

[0166] The custom startup page generation module 1002 is configured to, when triggering the startup operation of the sub-application through the parent application, obtain the custom configuration information of the sub-application and download the code package of the sub-application; based on the custom configuration information, generate a custom startup page for the sub-application.

[0167] The display module 1004 is configured to display the custom startup page during the process of the parent application starting the sub-application.

[0168] The hiding module 1006 is configured to hide the custom startup page after the code package is downloaded and the sub-application is run on the parent application based on the code package.

[0169] In one embodiment, as Figure 11 shown, the custom startup page generation module 1002 is further configured to send a custom configuration information acquisition request for the sub-application to the sub-application common service platform corresponding to the parent application according to the triggered startup operation of the sub-application; receive, from the sub-application common service platform, the custom configuration information associated with the sub-application feedback in response to the custom configuration information acquisition request.

[0170] In one embodiment, the custom startup page generation module 1002 further includes a cover image acquisition module 1021, configured to download the cover image based on the cover image download address.

[0171] In one embodiment, the cover image acquisition module 1021 is further configured to obtain the custom configuration information of the sub-application from the sub-application common service platform corresponding to the parent application; download the cover image from the content delivery network based on the cover image download address.

[0172] In one embodiment, the startup device 1000 of the sub-application further includes a storage module 1008, which is used to obtain the code compilation file of the sub-application; parse the code compilation file to obtain a code package, startup page custom configuration content, and a cover image; store the code package and the startup page custom configuration content in the sub-application public service platform; store the cover image in the content delivery network, and store the cover image download address in the content delivery network in the sub-application public service platform.

[0173] In one embodiment, the storage module 1008 is further used to store the startup page custom configuration content and the cover image download address in the configuration storage space of the sub-application public service platform; store the code package in the code package storage space of the sub-application public service platform.

[0174] In one embodiment, the custom startup page generation module 1002 is further used to, when the cover image of the sub-application does not exist locally, execute the step of downloading the cover image based on the cover image download address; when the cover image of the sub-application exists locally, directly generate the custom startup page of the sub-application according to the local cover image and the startup page custom configuration content.

[0175] In one embodiment, the custom startup page generation module 1002 further includes an adjustment module 1022, which is used to obtain the startup page template; add the cover image to the startup page template, and adjust the content in the startup page template according to the startup page custom configuration content to obtain the custom startup page of the sub-application.

[0176] In one embodiment, the adjustment module 1022 is further used to, when the startup page custom configuration content includes a progress bar configuration item, adjust the display style of the progress bar located in the startup page template according to the progress bar configuration item; when the startup page custom configuration content includes a text configuration item, adjust the text content and the text display style in the startup page template according to the text configuration item; when the startup page custom configuration content includes a cover image scaling configuration item, adjust the display scaling ratio of the cover image according to the image scaling configuration item.

[0177] In one embodiment, the hiding module 1006 further includes an interface call module 1061, which is used to, when the hiding method of the custom startup page is determined to be a custom hiding method based on the startup page hiding configuration item, monitor a specified event corresponding to the custom hiding method configuration; when the specified event is monitored to occur, hide the custom startup page.

[0178] In one embodiment, the interface call module 1061 is further used to, when the specified event is monitored to occur, call the startup page hiding interface provided by the parent application or the sub-application public service platform corresponding to the parent application to hide the custom startup page.

[0179] For the specific limitations of the sub - application startup device, reference can be made to the limitations on the sub - application startup method in the foregoing text, which will not be elaborated here. Each module in the above - mentioned sub - application startup device can be implemented in whole or in part by software, hardware, and their combination. Each of the above modules can be embedded in the processor of the computer device in hardware form or be independent of it, or be stored in the memory of the computer device in software form, so as to facilitate the processor to call and execute the operations corresponding to each of the above modules.

[0180] In one embodiment, a computer device is provided. The computer device can be a terminal, and its internal structure diagram can be as Figure 12 shown. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non - volatile storage medium and an internal memory. The non - volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non - volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner. The wireless manner can be achieved through WIFI, a carrier network, NFC (Near Field Communication), or other technologies. The computer program, when executed by the processor, implements a sub - application startup method. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, etc.

[0181] Those skilled in the art can understand that Figure 12 the structure shown in

[0182] In one embodiment, the sub - application startup device provided by the present application can be implemented in the form of a computer program, and the computer program can run on a computer device as Figure 12 shown. In the memory of the computer device, each program module that constitutes the sub - application startup device can be stored. For example, Figure 10 the custom startup page generation module, the display module, and the hiding module shown in

[0183] For example, Figure 12 the computer device shown can pass through such asFigure 10 The custom startup page generation module in the startup device of the sub-application shown performs steps S202 and S204. The computer device can perform step S206 through the display module. The computer device can perform step S208 through the hiding module.

[0184] In one embodiment, a computer device is also provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the steps in the above method embodiments are implemented.

[0185] In one embodiment, a computer-readable storage medium is provided, storing a computer program. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0186] In one embodiment, a computer program product or a computer program is provided. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in the above method embodiments.

[0187] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above method embodiments. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0188] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered to be within the scope described in this specification.

[0189] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation to the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several variations and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the appended claims.

Claims

1. A method for starting a sub-application, characterized in that, The method includes: When triggering the startup operation of a child application through a parent application, generating a custom configuration information acquisition request based on the application identifier of the child application, and determining a child application common service platform corresponding to the parent application based on the application identifier of the child application and the application identifier of the parent application; Sending the custom configuration information acquisition request to the child application common service platform, so that the child application common service platform queries the corresponding custom configuration information according to the application identifier of the child application in the custom configuration information acquisition request; Obtaining the custom configuration information of the child application from the child application common service platform, and downloading the code package of the child application; Generating a custom startup page for the child application based on the custom configuration information; Displaying the custom startup page during the process of the parent application starting the child application; When determining that the hiding method of the custom startup page is a custom hiding method based on the startup page hiding configuration item in the custom configuration information, monitoring a specified event configured corresponding to the custom hiding method; When it is monitored that the specified event occurs, calling a startup page hiding interface provided by the parent application or the child application common service platform corresponding to the parent application to hide the custom startup page.

2. The method according to claim 1, characterized in that, The obtaining the custom configuration information of the child application from the child application common service platform includes: Receiving, from the child application common service platform, the custom configuration information associated with the child application feedback in response to the custom configuration information acquisition request.

3. The method according to claim 1, wherein The custom configuration information includes a cover image download address and startup page custom configuration content; the method further includes: Downloading a cover image based on the cover image download address; The generating the custom startup page for the child application based on the custom configuration information includes: After the cover image is successfully downloaded, generating the custom startup page for the child application based on the cover image and the startup page custom configuration content.

4. The method according to claim 3, wherein The obtaining the custom configuration information of the child application includes: Obtaining the custom configuration information of the child application from the child application common service platform corresponding to the parent application; The downloading the cover image based on the cover image download address includes: Downloading the cover image from a content delivery network based on the cover image download address.

5. The method according to claim 4, wherein The child application common service platform executes child application startup page configuration steps; the child application startup page configuration steps include: Obtaining a code compilation file of the child application; Parsing the code compilation file to obtain a code package, startup page custom configuration content, and a cover image; Storing the code package and the startup page custom configuration content in the child application common service platform; Storing the cover image in a content delivery network, and storing the cover image download address of the cover image in the content delivery network in the child application common service platform.

6. The method according to claim 5, wherein The startup page custom configuration content and the cover image download address are stored in a configuration storage space of the child application common service platform; the code package is stored in a code package storage space of the child application common service platform.

7. The method according to claim 3, wherein The method further includes: When the cover image of the sub-application does not exist locally, execute the step of downloading the cover image based on the cover image download address; When the cover image of the sub-application exists locally, directly generate the custom startup page of the sub-application according to the cover image and the startup page custom configuration content locally.

8. The method according to claim 3, wherein The generating the custom startup page of the sub-application based on the cover image and the startup page custom configuration content includes: Obtain a startup page template; Add the cover image to the startup page template, and adjust the content in the startup page template according to the startup page custom configuration content to obtain the custom startup page of the sub-application.

9. The method according to claim 8, wherein The adjusting the content in the startup page template according to the startup page custom configuration content includes: When the startup page custom configuration content includes a progress bar configuration item, adjust the display style of the progress bar located in the startup page template according to the progress bar configuration item; When the startup page custom configuration content includes a text configuration item, adjust the text content and text display style in the startup page template according to the text configuration item; When the startup page custom configuration content includes a cover image scaling configuration item, adjust the display scaling ratio of the cover image according to the image scaling configuration item.

10. A starting device for a sub-application, characterized in that, The device includes: A custom startup page generation module, configured to, when triggering a startup operation of a sub-application through a parent application, generate a custom configuration information acquisition request based on the application identifier of the sub-application, and determine a sub-application common service platform corresponding to the parent application based on the application identifier of the sub-application and the application identifier of the parent application; send the custom configuration information acquisition request to the sub-application common service platform, so that the sub-application common service platform queries the corresponding custom configuration information according to the application identifier of the sub-application in the custom configuration information acquisition request; obtain the custom configuration information of the sub-application from the sub-application common service platform, and download the code package of the sub-application; generate the custom startup page of the sub-application based on the custom configuration information; A display module, configured to display the custom startup page during the process of the parent application starting the sub-application; A hiding module, configured to, when determining that the hiding method of the custom startup page is a custom hiding method based on the startup page hiding configuration item in the custom configuration information, monitor a specified event corresponding to the custom hiding method configuration; when monitoring that the specified event occurs, call a startup page hiding interface provided by the parent application or the sub-application common service platform corresponding to the parent application to hide the custom startup page.

11. The device according to claim 10, wherein, The custom startup page generation module is further configured to receive, from the sub-application common service platform, the custom configuration information associated with the sub-application fed back in response to the custom configuration information acquisition request.

12. The device according to claim 10, characterized in that, The custom configuration information includes the cover image download address and the custom configuration content of the splash screen; the custom splash screen generation module is further configured to download the cover image based on the cover image download address; after the cover image is successfully downloaded, a custom splash screen of the sub-application is generated based on the cover image and the custom configuration content of the splash screen.

13. The device according to claim 12, characterized in that, The custom splash screen generation module is further configured to obtain the custom configuration information of the sub-application from the sub-application public service platform corresponding to the parent application; and download the cover image from the content delivery network based on the cover image download address.

14. The device according to claim 13, characterized in that, The startup device of the sub-application further includes a storage module, configured to obtain the code compilation file of the sub-application; parse the code compilation file to obtain a code package, the custom configuration content of the splash screen, and the cover image; store the code package and the custom configuration content of the splash screen to the sub-application public service platform; store the cover image to the content delivery network, and store the cover image download address of the cover image in the content delivery network to the sub-application public service platform.

15. The device according to claim 14, wherein, The custom configuration content of the splash screen and the cover image download address are stored in the configuration storage space of the sub-application public service platform; the code package is stored in the code package storage space of the sub-application public service platform.

16. The device according to claim 12, characterized in that, The custom splash screen generation module is further configured to execute the step of downloading the cover image based on the cover image download address when the cover image of the sub-application does not exist locally; when the cover image of the sub-application exists locally, directly generate a custom splash screen of the sub-application according to the cover image and the custom configuration content of the splash screen locally.

17. The device according to claim 12, wherein, The custom splash screen generation module is further configured to obtain a splash screen template; add the cover image to the splash screen template, and adjust the content in the splash screen template according to the custom configuration content of the splash screen to obtain a custom splash screen of the sub-application.

18. The device according to claim 17, characterized in that, When the custom configuration content of the splash screen includes a progress bar configuration item, the custom splash screen generation module adjusts the display style of the progress bar located in the splash screen template according to the progress bar configuration item; when the custom configuration content of the splash screen includes a text configuration item, the text content and the text display style in the splash screen template are adjusted according to the text configuration item; when the custom configuration content of the splash screen includes a cover image scaling configuration item, the display scaling ratio of the cover image is adjusted according to the image scaling configuration item.

19. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.

20. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 9 are implemented.

21. A computer program product comprising computer instructions, characterized in that, The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that when the computer device executes, the steps of the method according to any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Application program processing method and device, storage medium and computer equipment

    CN107357644A

  • Method, device and terminal equipment for playing start page

    CN108319481A

  • Application starting method, terminal and computer readable storage medium

    CN109814941A