All Products
Search
Document Center

Observe the behavior of offline packages from the HTTP level (3): update all offline packages

Last Updated: Mar 10, 2021

Both iOS and Android platforms provide APIs to request the updated information of all offline packages at once, with the following process:

  1. The client sends a request to the MDS server with IDs and local version numbers of all H5 apps that have been locally installed, and a special app ID: nebula-*-all.
  2. The server returns information about all offline packages that conform to the requirement (offline packages beyond the range of client versions are not returned).
  3. The client takes the initiative to download the full or incremental amr files based on the returned information content.

Procedures

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

  2. The returned information about offline packages that conform to the requirement.
    Return offline package information

  3. The client downloads all amr files according to the URL information obtained in the previous step.
    amr files

A example of update logs of all offine packages: 2-offline-package-update-all-example.chls.zip