services协议分发应用在蜂窝网络下的限制

小Z最近在工作中遇到这样一个问题,跟国内许多公司一样,我们也会采用苹果企业证书来分发应用,作为一枚屌丝开发,小Z真的很少会在蜂窝网络中去下载APP这种数据量较大的不明物体啦,然而随着4G在中国的不断普及,财大气粗的大佬们似乎早就已经在蜂窝网络下任性地干着一切他们想干的了呢,虽然小Z还没有数据表明这部分用户的占比。小Z遇到的问题是,蜂窝网络下采用itms-services协议安装在远程服务器上超过100MB大小的应用,iOS桌面的下载进度几乎不动,于是接到大佬们的反馈是“在3G/4G下无法下载”。于是小Z也在凌晨被喊回公司去处理,说实话刚开始小Z是懵逼的,虽然有怀疑过App大小的问题,但还是按照一般的思路先是检查了PLIST描述文件,毕竟苹果有可能在不同环境下对PLIST的检查严格程度不同,这个小Z也曾经遇到类似的问题。经过系列排查后,没有发现问题。后来我提出来怀疑App大小可能存在限制,运维的同事就帮忙一起翻阅资料。当时他提供了以下的一篇文章:

苹果将把依旧100MB

苹果日前宣布,他们将把iOS应用的大小限制从原来的2GB提升至4GB,让开发者可以制作最大4GB的应用程序。

自App Store首次发布起,苹果2GB的应用大小限制就一直存在,本次的提升当属首次。由于该限制的存在,部分游戏一直无法进入App Store,比如《最终幻想7》。在2013年,Square Enix的制作人时田贵司就曾说,由于iOS应用2GB的大小限制,《最终幻想7》要在“数年之后”才能登陆该平台。

在过去的几年里,随着iPhone和iPad的显示屏在品质上获得了提升,开发者就必须制作出适合在Retina屏幕上显示的内容,这无可避免地会增加应用大小。而在这一次的限制放宽之后,开发者在内容制作上将得到更加大的自由度。但与此同时,那些容量较小的设备机型在存储空间上可能就会显得更加紧张了。

虽然应用大小的限制被提升到了4GB,但OTA下载限制并未改变,依旧是100MB。

原文地址:

于是我们开始对APP大小进行测试,我们分别取了一个约88MB和一个约110MB大小的APP在4G网络下进行测试。其中88MB大小的APP明显有下载进度,110MB大小的APP却没有下载进度。就在一种懵逼的状态下,我们给大佬们反馈说在蜂窝网络下苹果的itms-services是存在100MB大小限制的。大佬们显然还是有些恼火,责问为什么测试没有测试出来,想必这个问题也只有屌丝们才能理解了。

小插曲:当时一位运营的同事恼火地反馈给我们:说这不可能,他其中有一次是下载下来了的,并且他给我看了他的移动网络数据消耗情况,,那段时间里是2MB地在不断消耗着。甚至一度导致他停机欠费。

遇到这个情况,小Z当时也真的不知道如何解释,毕竟小Z对itms-services协议背后的最终工作机制也是不了解的。

虽然这个事情已经过去一段时间了,小Z还是想得到一些官方的佐证,于是小Z接下来还是有空就会翻阅一些资料的。偶然间,小Z翻到一篇英文文章:

Apple Increases theOver-the-airDownload Limit to 100MB

As iOS 7 has finally beenunleashed to the masses, lots of little details about the new operating system are starting to surface. One major one thatMacRumors has caught wind ofis that Apple increased the over-the-air downloadlimitfrom the previous 50MB to 100MB. This means that you’ll be able to download new apps and update apps over cellular service as long as they aren’t over the 100MB threshold.

If memory serves correctly, the original cellular downloadlimitstarted off as 10MB when the App Store was first opened in mid-2008, but was increased to 20MB as many apps and games couldn’t squeeze into that original 10MB limit. As years have gone by, games and apps have only become even more robust, especially with the addition of high resolution screens starting with the iPhone 4 and spilling over to the iPad side of things with the iPad 3. Those high resolution assets aren’t small, and if you toss in the fact that a game or app might be Universal, then the app has to contain those assets for both the iPhone and iPad versions all in one, increasing its size even more.

As a result, Apple increased the limit once again just last year to 50MB, but it still wasn’t quite enough for many apps and games. Lots of times developers have “cheated” around the 50MB limit by offering up a low-res version of their app which is what gets downloaded to your device, but upon launching it the game would then connect online and download a set of higher resolution assets. This could result in a wait time when first launching a new app or game, and in the mobile world where we expect instant gratification, could be an annoyance.

只有经历过地狱般的折磨,才有征服天堂的力量。

services协议分发应用在蜂窝网络下的限制

相关文章:

你感兴趣的文章:

标签云: