Search

CN-121984963-A - Dynamic updating and loading method and device for function package of mobile application

CN121984963ACN 121984963 ACN121984963 ACN 121984963ACN-121984963-A

Abstract

The application discloses a dynamic updating and loading method of a function package of a mobile application, which comprises the steps of obtaining an identity of a current user and sending a request carrying the identity to a server, returning a corresponding target deployment key to a client by the server based on a preset gray level strategy after confirming the identity, obtaining the corresponding function package by the client by using the target deployment key, storing the obtained function package on the client, and determining and loading the current required function package from the function package stored by the client according to a preset loading strategy or by combining with the running environment information of the current client by the client. According to the application, the target deployment key is determined by combining the user identity mark with the gray level strategy of the server side, and the client side intelligently selects the loaded functional package according to the loading strategy and the real-time running environment, so that the mobile application updating and loading personalized requirements of different users are met.

Inventors

  • Gong Fanfan
  • XIAO RONG
  • Lin Dahuang
  • Lai Qiongting
  • CHEN KEWEI
  • FANG BIN
  • Nong Zhongliang
  • Shi shengguang
  • XIE HAILI
  • ZHANG LI

Assignees

  • 深圳市首航新能源股份有限公司

Dates

Publication Date
20260505
Application Date
20251231

Claims (10)

  1. 1. A method for dynamically updating and loading a function package of a mobile application, comprising: Acquiring the identity of a current user and sending a request carrying the identity to a server; Based on a preset gray level strategy, the server returns a corresponding target deployment key to the client after confirming the identity; the client acquires a corresponding function package by utilizing the target deployment key, and stores the acquired function package on the client; And the client determines and loads the currently required function package from the function packages stored by the client according to a preset loading strategy or a loading strategy acquired from the server and in combination with the current running environment information of the client.
  2. 2. The method of claim 1, wherein the gray scale policy is preset based on at least one of account attribute information associated with a user identity, registration information of a user, client device information, user geographic location information, allocation proportion information of the deployment key within a preset user range, and time period information allowing an update operation.
  3. 3. The method according to claim 2, wherein the method further comprises: And the server side feeds back data according to the state of each functional package so as to adjust the distribution proportion of each deployment key in the gray level strategy in a preset user range.
  4. 4. The method according to claim 1, wherein the method further comprises: And configuring a function package list in the client, wherein the function package list is used for recording identification information and attribute information of each function package stored in the client.
  5. 5. The method of claim 4, wherein the client allows a user to manually select and load a feature package from the feature package manifest.
  6. 6. The method of claim 1, wherein the operating environment information comprises a network type of a client connection or a context switch event for triggering a feature packet switch.
  7. 7. The method of claim 1, wherein the identity comprises at least one of an account identification obtained after the user logs into the mobile application, a token issued by the server and bound to the user account.
  8. 8. The method of claim 1, wherein the client utilizing the target deployment key to obtain the corresponding feature pack comprises: and inquiring and downloading the updated content by the client according to the target deployment key, and storing the downloaded updated content on the client in a complete loadable function package file form.
  9. 9. The method according to claim 1, wherein the method further comprises: When the client loads a function package stored on the client and runs; If the running state of the mobile application is detected to be abnormal, the client reloads a function packet which normally runs before the running state is abnormal, and sends an abnormal report to the server.
  10. 10. A device for dynamically updating and loading a function package of a mobile application, for implementing the method of any one of claims 1 to 9, the device comprising: The strategy service module is deployed at the server side and is used for configuring and managing the gray strategy and returning a target deployment key according to the identity mark carried in the request of the client side; The identity and request management module is used for acquiring the identity of the current user, sending a request carrying the identity to the policy service module and receiving the returned target deployment key; the function package storage management module is used for acquiring a corresponding function package from the updating end according to the target deployment key, and storing and managing the acquired function package; And the runtime loading engine module is used for determining a currently required function package from the stored function packages and executing loading operation according to a preset loading strategy or a loading strategy acquired from a server and combining the running environment information of the client.

Description

Dynamic updating and loading method and device for function package of mobile application Technical Field The application relates to the technical field of mobile application updating, in particular to a method and a device for dynamically updating and loading a function package of a mobile application. Background With the rapid development of the mobile internet, function iteration and version update of mobile applications are increasingly frequent. In order to optimize user experience, repair defects in time and rapidly release new functions, the hot update technology has become the standard practice in modern mobile application development, and currently, the commonly adopted scheme in the industry mainly depends on full-scale update or hot update technology based on a single channel (for example, services such as CodePush by utilizing microsoft). However, the prior art scheme has the following limitations: The traditional hot update generally pushes the same update package to all users in a unified way, the method cannot carry out accurate differentiated distribution according to specific attributes (such as the region, the equipment model and the member class) of the users, the use behaviors or the service demands, and the method can lead all the users to be forced to accept the same version, cannot support the fine operation of thousands of people and thousands of sides, and cannot carry out gray level test or experience optimization of new functions for specific user groups. Disclosure of Invention The application provides a dynamic updating and loading method of a functional package of a mobile application, which is characterized in that a target deployment key is determined by combining a user identity and a gray level strategy of a server side, and a client side intelligently selects the loaded functional package according to the loading strategy and a real-time running environment, so that different functional packages are intelligently distributed according to different users and different user groups to meet the mobile application updating and loading personalized requirements of different users, and the technical problems are solved. The technical scheme of the application for solving the problems is that the method for dynamically updating and loading the function package of the mobile application comprises the steps of obtaining an identity of a current user and sending a request carrying the identity to a server, returning a corresponding target deployment key to a client based on a preset gray level strategy, obtaining the corresponding function package by the client by using the target deployment key and storing the obtained function package on the client, and determining and loading the current required function package from the function package stored by the client according to a preset or loading strategy obtained from the server and combining with the running environment information of the current client by the client. The application determines the target deployment key by combining the user identity mark with the gray level strategy of the server side, and intelligently selects the loaded functional package by the client side according to the loading strategy and the real-time running environment, thereby realizing the intelligent distribution of different functional packages according to different users and different user groups, meeting the mobile application updating and loading individuation requirements of different users, and realizing the transition from 'application version' as the center to 'user and scene' as the center. In some embodiments, the gray scale policy is preset based on at least one of account attribute information associated with a user identity, registration information of a user, client device information, user geographical location information, allocation proportion information of the deployment key in a preset user range, and time period information allowing an update operation. According to the application, account attributes, equipment information, geographic positions, distribution ratios, time periods and other multidimensional information are used as strategy input, so that version distribution can take account of user portraits, equipment adaptation, regional operation, controllable gray scale rhythm and update aging management, highly complex and fine business release rules can be supported, and the update process can be closely attached to diversified business requirements and operation and maintenance targets. In some embodiments, the method further includes the step that the server side adjusts the distribution proportion of each deployment key in the gray scale policy in a preset user range according to the state feedback data of each function packet. According to the application, the distribution proportion of each deployment key is dynamically adjusted according to the actual running state data of the functional package, and the release range