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 .