Both iOS and Android platforms provide APIs to request the updated information of all offline packages at once, with the following process:
- 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:
- The server returns information about all offline packages that conform to the requirement (offline packages beyond the range of client versions are not returned).
- The client takes the initiative to download the full or incremental amr files based on the returned information content.
Request offline package information.
The returned information about offline packages that conform to the requirement.
The client downloads all amr files according to the URL information obtained in the previous step.
A example of update logs of all offine packages: 2-offline-package-update-all-example.chls.zip