使用環(huán)信實現(xiàn)語音通信的時候,我需要在鎖頻狀態(tài)下仍能保持通話,所以我就在info.plist文件里面添加了鍵:Required background modes,是程序可以后臺運行。
但是這樣的話,程序?qū)徍吮痪芙^。
于是我在提交審核的時候,Notes欄里寫了開啟Required background modes的原因,結(jié)果還是被拒絕。
最終解決方法:
我又提交了一次,在Notes欄里寫了中英文兩個版本的原因描述。結(jié)果通過了。傲嬌的蘋果。
Dear,
I have used EaseMob to chatting and using audio.I need to play voice in background when I chat with others using this APP. So, I add "Required background modes" to info.plist.
Long time in a state under the lock screen calls can greatly reduce electricity consumption, improve mobile phone usage time.
You can find the video and audio method in the file of MainTabbarController.m.
親,
在APP中采用了環(huán)信的語音、視頻通話等功能,請求連接的時候,需要在后臺播放callRing.mp3音頻文件(嘟嘟的聲音);
所以開啟了Required background modes。
長時間在鎖屏狀態(tài)下進行通話可以大大減少用電量,提高手機使用時間。
您可以在MainTabbarController.m文件中找到有關(guān)播放音頻的方法。
圖片:
