[讀後感]思考於“關於socket voip後台保持長連被蘋果拒了”,socketvoip

來源:互聯網
上載者:User

[讀後感]思考於“關於socket voip後台保持長連被蘋果拒了”,socketvoip

[讀後感]思考於“關於socket voip後台保持長連被蘋果拒了”

太陽火神的美麗人生 (http://blog.csdn.net/opengl_es)

本文遵循“署名-非商業用途-保持一致”創作公用協議

轉載請保留此句:太陽火神的美麗人生 -  本部落格專註於 敏捷開發及移動和物聯裝置研究:iOS、Android、Html5、Arduino、pcDuino,否則,出自本部落格的文章拒絕轉載或再轉載,謝謝合作。


從以下來看,蘋果現在已經從技術層面走出來,開始向內容的審核大踏步前進。

所以,還有想偷機取巧的兄弟,您還是小心為妙。


說來,在後台保持長連結,無非是能給予服務端一個直接向用戶端通訊的通道而已,這種即時的方式雖好,但蘋果更關注使用者體驗與使用者隱私。

想來,對用戶端的標識,並非直連這一種方式,雖然UDID不允許使用了,但蘋果官方建議的 UUID 唯一產生標識的方法,也很不錯的。


一個應用安裝到一個裝置上,第一次運行,就自動產生此 UUID,儲存於沙箱之中,這足以唯一標識一台裝置,更確切地說,標識一台裝置上的該應用。

而登入驗證,是一種使用該應用的鑒權方式,它並不能標識當前裝置。

由裝置標識和使用者資訊組合,就能充分地確定哪個使用者在哪台裝置上登入使用本應用,這應該是完整鑒權,包括後續的生命週期管控。


相對 Android 來講,蘋果更適合短連結的無狀態互動管理,每一次的網路請求,均有應答返回,完成一次網路互動;請求帶著來源標識:裝置標識和使用者標識;

如果想避開 UUID 這個大長串,那麼,把你的亂七八槽的東西放到自動存包櫃裡,拿到一個存包櫃的編號就好了,要用的時侯,直接拿這個編號去取不會出現差錯,因為存包櫃統一發放編號,而且數位也就兩三位而已,想必 UUID 再縮也小不到這個程度。


下面是譯文和回複,都很精典,再往下是原文,標題的連結。




部分譯文如下:

我們發現您的應用使用了後台模式,但並未包含任何需要該模式持久運行所對應的功能。該行為與 蘋果商店審查指導方針不相容。  

我們注意到,您的應用在  Info.plist 檔案中 UIBackgroundModes  鍵裡聲明了支援 VOIP ,但未提供任何 VOIP 服務。


回複摘要:






關於socket voip後台保持長連被蘋果拒了    ----- 2.16 -----

We found that your app uses a background mode but does not include functionality that requires that mode to run persistently. This behavior is not in compliance with the App Store Review Guidelines.

We noticed your app declares support for VoIP in the UIBackgroundModes key in your Info.plist but does not provide any Voice over IP services.

We recognize that VoIP can provide "keep alive" functionality that many app features would like to use. However, using VoIP in this manner is not the intended purpose of VoIP, which, as indicated in the iOS Application Programming Guide, is that: "A Voice over Internet Protocol (VoIP) application allows the user to make phone calls using an Internet connection instead of the device's cellular service."

It would be appropriate to add VoIP features or remove the "VoIP" setting from the UIBackgroundModes key.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.