Monitor the behavior of offline packages at the HTTP layer (1): Download an offline package

更新时间:
复制 MD 格式

The mPaaS client framework encapsulates the download process for offline packages. This means developers do not directly control the download behavior. The download process for an offline package is as follows:

  1. The client sends a request to the Mobile Delivery Service (MDS) server at cn-hangzhou-component-gw.cloud.alipay.com. The request includes the ID of the target H5 app.

  2. The server returns information about the offline package, if it exists.

  3. The client uses the Package URL and the download configuration parameters from the response to download the .amr file of the offline package.

Procedure

  1. The client requests offline package information.请求离线包信息

  2. The server returns the offline package information.返回离线包信息

  3. The client uses the Package URL from the previous step to download the corresponding .amr file.下载arm文件

Note

Offline package download log sample: 1-offline-package-download-example.chls.zip