对于蓝牙4.0的开发这里不过多介绍,主要介绍的是如何让蓝牙4.0在后台保持连接这涉及到的有info.plist
在info中设置键值对Required background modes,并在里面增加:App communicates using CoreBluetooth,App shares data using CoreBluetooth。
如果还要声音提示可以加App
plays audio or streams audio/video using AirPlay。
蓝牙4.0后台连接配置
本文主要介绍了如何配置蓝牙4.0应用以便在后台保持连接。通过在info.plist文件中设置Requiredbackgroundmodes键值对,加入AppcommunicatesusingCoreBluetooth等选项实现后台通信,并可选增加Appplaysaudioorstreamsaudio/videousingAirPlay以支持音频播放。
对于蓝牙4.0的开发这里不过多介绍,主要介绍的是如何让蓝牙4.0在后台保持连接这涉及到的有info.plist
在info中设置键值对Required background modes,并在里面增加:App communicates using CoreBluetooth,App shares data using CoreBluetooth。
如果还要声音提示可以加App
plays audio or streams audio/video using AirPlay。

被折叠的 条评论
为什么被折叠?