All Products
Search
Document Center

Observe the behavior of offline packages from the HTTP level: download the offline packge (2): update sepcified offline package

Last Updated: Mar 10, 2021

The client fetches the latest offline package after developers release a new version on the offline package platform. The procedure is as follows:

  1. The client sends a request to the MDS server with the ID and local version number of the target H5 app that needs to be updated.
  2. The server returns the relevant update information for this offline package, if it exists.
  3. The client actively downloads the amr file of the updated package according to the incremental package address in the returned message and in combination with the download configuration parameters in the return message. (If there is no incremental package address, the full package is downloaded according to the Package URL).

Procedures

  1. Request offline package information.
    Request offline package update information

  2. The returned offline package update information.
    Return offline package information

  3. The client downloads the corresponding amr file according to the URL of the incremental packet obtained in the previous step.
    Existing amr file

Update log example of an offline package: 2-offline-package-update-example.chls.zip