“所需背景模式”的外部附件的值iOS5 中的密钥
我阅读了iOS编程指南,发现后台模式下不仅允许“音频、位置、VoIP”,还允许“外部配件和报刊亭应用程序”。文档如下:
在 iOS 中,只允许特定的应用程序类型在后台运行:
- 在后台向用户播放声音内容的应用程序, 例如音乐播放器应用
- 程序 始终让用户了解其位置的应用程序,例如导航应用
- 程序 支持互联网语音协议 (VoIP) 的应用程序
- 需要下载和处理新内容的报刊亭应用程序
- 从外部配件接收定期更新的应用程序
但是,我在“所需背景模式”键中找不到外部配件的值。我只能选择“应用程序播放音频,应用程序注册位置更新,应用程序提供IP语音服务”。
当应用程序处于后台模式时,是否无法从外部附件接收数据?
谢谢。
I read iOS Programming Guide, and I found not only "audio, location, voip", but also "External Accessory & Newsstand apps" are allowed in background mode. documents are as following:
In iOS, only specific app types are allowed to run in the background:
- Apps that play audible content to the user while in the background,
such as a music player app - Apps that keep users informed of their location at all times, such as a navigation app
- Apps that supportVoice over Internet Protocol (VoIP)
- Newsstand apps that need to download and process new content
- Apps that receive regular updates from external accessories
However, I couldn't find the value for External Accessory in "Required background modes" key. Only I can choose is "App plays audio, App registers for location updates, App provides Voice over IP services".
Is it impossible to receive data from External Accessory when app is background mode ?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
虽然我无法从列表中进行选择,但我可以输入“external-accessory”,而且效果很好。
Though I couldn't select from lists, I could type "external-accessory", and it worked well.
的
UIBackgroundModes
数组的值iOS5
和iOS6
audio
location
voip
newsstand-content
external-accessory
bluetooth-central
bluetooth-peripheral
(从 iOS6 开始支持)Values for the
UIBackgroundModes
array foriOS5
andiOS6
audio
location
voip
newsstand-content
external-accessory
bluetooth-central
bluetooth-peripheral
(supported from iOS6)