All Products
Search
Document Center

Mobile Platform as a Service:Observe the behavior of offline packages from the HTTP level (3): update all offline packages

Last Updated:Jul 24, 2023

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.

    修改1.jpg
  2. The returned information about offline packages that conform to the requirement.

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

    amr files
Note

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