Instrument / Vicinity

Replicates detecting and broadcasting iBeacons in the background
MIT License
376 stars 64 forks source link

Detecting beacons with Swift #11

Open ghost opened 10 years ago

ghost commented 10 years ago

Hello,

First of all, thank you so much for a great project. Vicinity is exactly what I was looking for.


Okay, I'm trying to use Vicinity with Swift; mainly to broadcast and detect beacons in background mode. I succeed to make my swift-app to broadcast beacons but still not able to pull data from INBeaconServices's detector-part. (I'm using the original Vicinity to detect and show the range of beacons at this moment.) I'd tried to show logs of every functions in INBeaconService and I'm sure it's detecting beacons from other devices. So, the only problem is I'm not able to get data from there.

If someone is using Vicinity + Swift, I would appreciate some hints to pull out beacon data from INBeaconService -automatically&frequently like the original Vicinity is doing.

Thank you,

ghost commented 10 years ago

After all, I tried to fix up FindDeviceViewController's [service] method to throw variables to the Swift-part and it worked almost like I wanted.

Thank you again.