Hello.
I have some questions I'm wondering if people can clarify?
CoreLocation and iBeacons: am I correct in thinking a region is when we are talking to a beacon with a certain UUID? As we may have several beacons sharing that UUID, we are in a region if we are talking to any of those beacons? So a 'region' could be a shop or museum all sharing a unique UUID?
Or is a region specific to each beacon?
I'm wondering because I'm building a small test app with a couple of beacons, I want one beacon to show one view, a second beacon to show a second view - when proximity is immediate.
At the moment I'm checking in the didRangeBeacons method, going through the array and calling a method which wants major, minor and proximity. I then run a conditional, if the major and minor plus proximity are what I expect run the segue. But I'm still ranging at this point so that function gets called every 200ms. If I stop ranging in that method I'll not know if I leave that proximity of that beacon.
So at that point do I start checking for a proximity change not hat one beacon, and if that happens I start the process over?
I can't find a clear explanation of this process.
Thanks.
I have some questions I'm wondering if people can clarify?
CoreLocation and iBeacons: am I correct in thinking a region is when we are talking to a beacon with a certain UUID? As we may have several beacons sharing that UUID, we are in a region if we are talking to any of those beacons? So a 'region' could be a shop or museum all sharing a unique UUID?
Or is a region specific to each beacon?
I'm wondering because I'm building a small test app with a couple of beacons, I want one beacon to show one view, a second beacon to show a second view - when proximity is immediate.
At the moment I'm checking in the didRangeBeacons method, going through the array and calling a method which wants major, minor and proximity. I then run a conditional, if the major and minor plus proximity are what I expect run the segue. But I'm still ranging at this point so that function gets called every 200ms. If I stop ranging in that method I'll not know if I leave that proximity of that beacon.
So at that point do I start checking for a proximity change not hat one beacon, and if that happens I start the process over?
I can't find a clear explanation of this process.
Thanks.