对于蓝牙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
在info中设置键值对Required background modes,并在里面增加:App communicates using CoreBluetooth,App shares data using CoreBluetooth。
如果还要声音提示可以加App plays audio or streams audio/video using AirPlay。