Home > Software design >  Get Ibeacon name
Get Ibeacon name

Time:12-10

I have multiple beacons with the same UUID ı use CoreLocation to scan this beacons;

    func locationManager(_ manager: CLLocationManager, didRangeBeacons beacons: [CLBeacon], in region: CLBeaconRegion) {
           // extendBackgroundRunningTime()
            if beacons.count > 0 {
                for beacon in beacons {
                    print(region.identifier)
                    print(beacons[0].proximityUUID)            
                }
                    
                
            } else {
 }

I want to get ibeacon specific name. İs it possible or not? Also is there any way to distinguish each beacons?

CodePudding user response:

You can only distinguish beacons via their proximityUUID, major and minor.

iBeacons do not have a name.

Some vendors may allow you to name a beacon in their setup app, but this name is not part of the iBeacon standard and is not visible via Core Location.

Normally all of your beacons would have the same proximityUUID so that you can discover them with a single beacon region. You then use specific major and minor values to determine the beacon that you have discovered.

You can read about the format of an iBeacon advertisement here

  • Related