Sunday, 15 January 2012

ios - Waking up a killed app using didEnterRegion and then scanning for peripherals using scanForPeripheralsWithServices -



ios - Waking up a killed app using didEnterRegion and then scanning for peripherals using scanForPeripheralsWithServices -

i know mutual way utilize ibeacons if app killed utilize monitoring (for example, monitor part defined uuid) , when didenterregion called start ranging ibeacons (to fetch each beacon's major , minor).

did tried running corebluetooth scanforperipheralswithservices instead of ranging? won't give major & minor - ios hides ibeacon identifiers (uuid, major & minor) corebluetooth api. however, can give other info non-standard ibeacon advertises (or other ble peripherals around), , may allow connect them (in 5-seconds "wakeup").

thanks

yes, absolutely possible. point out, since cannot access beacon identifiers, not know peripheral in callback scanforperipheralswithservices beacon triggered part entry event. can scan these devices brief time after app launched background event.

ios bluetooth bluetooth-lowenergy core-bluetooth ibeacon

No comments:

Post a Comment