CBCentralManager 的background mode问题
来源:互联网 发布:java微信扫一扫 编辑:程序博客网 时间:2024/05/17 21:59
运行APP时崩溃:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'State restoration of CBCentralManager is only allowed for applications that have specified the "bluetooth-central" background mode'
见https://developer.apple.com/Library/ios/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/CoreBluetoothBackgroundProcessingForIOSApps/PerformingTasksWhileYourAppIsInTheBackground.html
修改info.plist
增加"Required background modes"项,并在里面增加一个String类型子项,值为"bluetooth-central"
0 0
- CBCentralManager 的background mode问题
- CBCentralManager
- CBCentralManager Class 的相关分析
- background引发的问题
- 关于background设置的问题
- background-position百分比的问题
- background-color和background-image一起用的问题
- 关于背景background-position的问题
- IE下background无法显示的问题
- 10033---div--background-image的路径问题
- 关于css中background-size的问题
- let your App runs in background mode
- css3 图片颜色叠加--background-blend-mode
- CSS3中的mix-blend-mode和background-blend-mode
- iOS蓝牙调用的一般流程-CBPeripheralManagert和CBCentralManager
- CBCentralManager 蓝牙
- mysql5的字符集和sql mode问题
- mysql5的字符集和sql mode问题
- determine if a string has all unique characters
- BZOJ 1057: [ZJOI2007]棋盘制作
- Codeforces 460E Roland and Rose(暴力)
- ubuntu 12.04 登录界面黑屏
- Android 工程源文件结构
- CBCentralManager 的background mode问题
- 花生壳域名ping不通解决方法
- Mapreduce学习指导及疑难解惑汇总
- 发布一个长尾词生成的小软件工具
- PAAS平台构建7×24小时高可用应用的方案设计
- 程序员学英语—In August the English learning summary
- 【华为】2013校招机试的题目-string的题目
- Java坦克大战 (三) 之可完全控制坦克朝八个方向运动
- 【索引】Codeforces Round #262 (Div. 2)