I am trying to initialize the beacon manager object and start ranging beacons on a button click but the ESTBeaconManagerDelegate methods are not being called. Below shown is the code.
-(IBAction)startRangingBeacons:(id)sender
{
self.beaconManager = [ESTBeaconManager new];
self.beaconManager.delegate = self;
self.beaconRegion = [[CLBeaconRegion alloc]
initWithProximityUUID:[[NSUUID alloc]
initWithUUIDString:@"B9407F30-F5F8-466E-AFF9-25556B57FE6D"]
identifier:@"ranged region"];
[ self.beaconManager requestAlwaysAuthorization];
[self.beaconManager startRangingBeaconsInRegion:self.beaconRegion];
}
- (void)beaconManager:(id)manager didRangeBeacons:(NSArray *)beacons
inRegion:(CLBeaconRegion *)region
{
DDLogInfo(@"didRange called");
}
- (void)beaconManager:(id)manager
rangingBeaconsDidFailForRegion:(CLBeaconRegion * _Nullable)region
withError:(NSError *)error
{
DDLogInfo(@"error in ranging --- %@",[error localizedDescription]);
}
Please help me to resolve this issue.