Observe offline package behavior at the HTTP level (3): update all offline packages

更新时间:
复制 MD 格式

Both iOS and Android provide an API to fetch update information for all offline packages in a single request.

The basic procedure is as follows:

  1. The client sends a request to the MDS server. The request includes the IDs and local version numbers of all locally installed HTML5 apps, and a special App ID: nebula-*-all.

  2. The server returns information for all matching offline packages. Information for packages outside the client's version range is not returned.

  3. The client uses the returned information to download the full or incremental amr files.

Procedure

  1. The client requests information about the offline packages.修改1.jpg

  2. The server returns information for all matching offline packages.修改2.jpg

  3. The client uses the URL from the previous step to download all amr files.amr文件

Note

Sample update log for all offline packages: 2-offline-package-update-example.chls.zip