问题
Can we detect beacons in app background(Both iOS and Android). I see Eddystone beacon have some problem with background of iOS. How can solve that ?
回答1:
iOS does allow background detection of service advertisements like Eddystone, but Eddystone detection times can be slower than iBeacon. The reason iBeacon detections are faster is because Apple has optimized it with hardware filters. Hardware filter slots in the bluetooth chip are activated when you monitor an iBeacon region on iOS. This causes iBeacon detections to happen within about 2 seconds when an app is in the background, provided hardware slots have not been used up.
You can get the similar rapid detection of Eddystone beacons by using beacons that interleave both an iBeacon transmission and an Eddystone transmission and making your app look for both. The iBeacon detection will wake up your app very rapidly in the background, and once active it will be able to receive Eddystone advertisements immediately thereafter.
You can read more about how bluetooth hardware detection slots affect iBeacon detection times here.
Full Disclosure: I am Chief Engineer at Radius Networks which makes beacons that interleave both iBeacon and Eddystone transmissions.
来源:https://stackoverflow.com/questions/33162149/background-beacon-detection-and-notification-both-ios-and-android-for-eddyston