Communicate with BTLE device from backgrounded iOS

2019-03-17 00:47发布

问题:

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 .