Different messages for different beacons in iOS app

Hi,
I just starting working with Estimote beacons. There could be different type of beacons from which I want to display different messages when those are detected. There can be a large number of beacons at a store and beacons can be of three types. How I will define type of beacons and how I will start monitoring a large number beacons?

Thanks in advance.

Group your beacons into 3 regions, e.g.:

  1. UUID “56A923DD-38C4-4A41-B6F9-4022D25E5B7A”, major 1, minor from 1 to 20, identifier: “type1”.
  2. UUID “56A923DD-38C4-4A41-B6F9-4022D25E5B7A”, major 2, minor from 1 to 20, identifier: “type2”.
  3. UUID “56A923DD-38C4-4A41-B6F9-4022D25E5B7A”, major 3, minor from 1 to 20, identifier: “type3”.

(I generated the UUID at random on https://www.uuidgenerator.net)

Then start monitoring or ranging for the three regions. You’ll then be able to easily handle the enter/exit/ranging events for each group with different code, e.g.:

-(void)beaconManager:(id)manager didEnterRegion:(CLBeaconRegion *)region {
    if ([region.identifier isEqualToString:@"type1"]) {
        // handle the "enter" event for region group 1
    } else if ([region.identifier isEqualToString:@"type2"]) {
        // handle the "enter" event for region group 2
    } else if ([region.identifier isEqualToString:@"type3"]) {
        // handle the "enter" event for region group 3
    }
}
1 Like