在发布新的托管Expo应用程序(例如:v2)之后,以及在现有已部署的应用程序(例如:v1)下载新的OTA更新之前,是否有办法知道此OTA更新所需的下载大小?
I wish they added support for this in the Expo SDK but here is what I recommend.
Send a HEAD web request to the Bundle URL (Retrieved from the Manifest object from Updates.checkForUpdateAsync() function) and get the header " Content-Length " value. This will be the size of the OTA update.
Detailed documentation of the Manifest object can be found here . URL you want to send the head request is the value of " bundleUrl " key.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.