Communicate with BTLE device from backgrounded iOS app

浪尽此生 提交于 2019-12-04 10:02:55

问题


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


回答1:


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 (or Required background modes) -> "bluetooth-central"




回答2:


This is not really an answer to your question per see, but I was thinking of doing the same and found out the following requirements ( which drove me away from using it):

This is part of ios 5.0 SDK

The support is only for Bluetooth 4.0 devices, ie iPhone 4S only right now and for devices that support that, ie. consequently can attach to bluetooth 4.0 standard.

Just fyi.. Some Reference .



来源:https://stackoverflow.com/questions/8717453/communicate-with-btle-device-from-backgrounded-ios-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!