与BTLE设备进行通讯,从后台运行iOS应用 [英] Communicate with BTLE device from backgrounded iOS app

查看:470
本文介绍了与BTLE设备进行通讯,从后台运行iOS应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS 5中的背景如何才能与沟通BTLE功能的设备?

How can one communicate with BTLE enabled devices in the background of iOS 5?

推荐答案

我(的问题)上周同样的问题,有人给了我答案。这是可能的,这样做,你需要将以下设置添加到您Info.plist文件:

I had the same question (issue) last week and someone gave me the answer. It is possible, and to do so, you need to add the following setting to you info.plist file:

UIBackgroundModes(或所需的背景模式) - >蓝牙中央

UIBackgroundModes (or Required background modes) -> "bluetooth-central"

这篇关于与BTLE设备进行通讯,从后台运行iOS应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆