小Z解读:企业证书利用itms-services协议分发应用在蜂窝网络下的限制
小Z最近在工作中遇到這樣一個問題,跟國內許多公司一樣,我們也會采用蘋果企業證書來分發應用,作為一枚屌絲開發,小Z真的很少會在蜂窩網絡中去下載APP這種數據量較大的不明物體啦,然而隨著4G在中國的不斷普及,財大氣粗的大佬們似乎早就已經在蜂窩網絡下任性地干著一切他們想干的了呢,雖然小Z還沒有數據表明這部分用戶的占比。小Z遇到的問題是,蜂窩網絡下采用itms-services協議安裝在遠程服務器上超過100MB大小的應用,iOS桌面的下載進度幾乎不動,于是接到大佬們的反饋是“在3G/4G下無法下載”。于是小Z也在凌晨被喊回公司去處理,說實話剛開始小Z是懵逼的,雖然有懷疑過App大小的問題,但還是按照一般的思路先是檢查了PLIST描述文件,畢竟蘋果有可能在不同環境下對PLIST的檢查嚴格程度不同,這個小Z也曾經遇到類似的問題。經過系列排查后,沒有發現問題。后來我提出來懷疑App大小可能存在限制,運維的同事就幫忙一起翻閱資料。當時他提供了以下的一篇文章:
蘋果將把iOS應用大小限制提升至4GB?OTA下載限制依舊100MB
蘋果日前宣布,他們將把iOS應用的大小限制從原來的2GB提升至4GB,讓開發者可以制作最大4GB的應用程序。
自App Store首次發布起,蘋果2GB的應用大小限制就一直存在,本次的提升當屬首次。由于該限制的存在,部分游戲一直無法進入App Store,比如《最終幻想7》。在2013年,Square Enix的制作人時田貴司就曾說,由于iOS應用2GB的大小限制,《最終幻想7》要在“數年之后”才能登陸該平臺。
在過去的幾年里,隨著iPhone和iPad的顯示屏在品質上獲得了提升,開發者就必須制作出適合在Retina屏幕上顯示的內容,這無可避免地會增加應用大小。而在這一次的限制放寬之后,開發者在內容制作上將得到更加大的自由度。但與此同時,那些容量較小的設備機型在存儲空間上可能就會顯得更加緊張了。
雖然應用大小的限制被提升到了4GB,但OTA下載限制并未改變,依舊是100MB。
原文地址:http://www.mnw.cn/keji/ios/858328.html
于是我們開始對APP大小進行測試,我們分別取了一個約88MB和一個約110MB大小的APP在4G網絡下進行測試。其中88MB大小的APP明顯有下載進度,110MB大小的APP卻沒有下載進度。就在一種懵逼的狀態下,我們給大佬們反饋說在蜂窩網絡下蘋果的itms-services是存在100MB大小限制的。大佬們顯然還是有些惱火,責問為什么測試沒有測試出來,想必這個問題也只有屌絲們才能理解了。
小插曲:當時一位運營的同事惱火地反饋給我們:說這不可能,他其中有一次是下載下來了的,并且他給我看了他的移動網絡數據消耗情況,那段時間里是2MB地在不斷消耗著。甚至一度導致他停機欠費。
遇到這個情況,小Z當時也真的不知道如何解釋,畢竟小Z對itms-services協議背后的最終工作機制也是不了解的。
雖然這個事情已經過去一段時間了,小Z還是想得到一些官方的佐證,于是小Z接下來還是有空就會翻閱一些資料的。偶然間,小Z翻到一篇英文文章:
Apple Increases the?Over-the-air?Download Limit to 100MB
As iOS 7 has finally been?unleashed to the masses, lots of little details about the new operating system are starting to surface. One major one that?MacRumors has caught wind of?is that Apple increased the over-the-air download?limit?from 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 download?limit?started 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.
With today’s new increase to 100MB, it should solve that problem for a good portion of today’s apps that were struggling to slide in under that 50MB threshold. Of course as hardware and software both improve as they have over the last five years, even 100MB likely won’t be enough given enough time, but it’s definitely a welcome improvement along with all the other new stuff in iOS 7.
原文鏈接:http://toucharcade.com/2013/09/18/apple-increases-the-over-the-air-download-limit-to-100mb/
看了這篇文章,小Z大概了解蘋果在AppStore上的App下載是有這樣的限制的,于是小Z翻閱了蘋果的官方審核文檔:https://developer.apple.com/app-store/review/guidelines/
其中2.15這樣寫道:
2.15 ? ?Apps larger than 100MB in size will not download over?cellular networks?(this is automatically prohibited by the App Store)
然而,這個是關于AppStore的政策,小Z到時會再去驗證下。可是,itms-services協議顯然系統沒有給出上圖中的關于100MB大小的提示信息,到底itms-services協議在蜂窩網絡下的限制是不是隱性地與AppStore保持了一致呢,還是其他什么情況,到這里,小Z還是只能做出這個猜測性的結論。希望小Z之后能發現更多地資料來解釋這個問題吧。
轉載請注明:Zero Status???小Z解讀:企業證書利用itms-services協議分發應用在蜂窩網絡下的限制
總結
以上是生活随笔為你收集整理的小Z解读:企业证书利用itms-services协议分发应用在蜂窝网络下的限制的全部內容,希望文章能夠幫你解決所遇到的問題。