在我的iOs应用程序中,我试图监视不同参数上的一些信标区域,如下所示:
>方法1 – 仅具有UUID和标识符的区域:
In above scenario am starting monitoring beacon region with following
code where only uuid and identifier given.
CLBeaconRegion *region = [[CLBeaconRegion alloc] initWithProximityUUID:convertedUuid identifier:strIdentifier];
Method 2 – Region With UUID,Major and Identifier :
In above scenario am starting monitoring beacon region with following
method where uuid,major and identifier value given
CLBeaconRegion *region = [[CLBeaconRegion alloc] initWithProximityUUID:convertedUuid major:[self.major intValue] identifier:strIdentifier];
Method 3 – Region with Major Minor and Identifier :
In above scenario am starting monitoring beacon region with following
method where all uuid,major,minor and identifier value given
CLBeaconRegion *region = [[CLBeaconRegion alloc] initWithProximityUUID:convertedUuid major:[self.major intValue] minor:[self.minor intValue] identifier:strIdentifier];
现在考虑到上述3种方法,我开始进行区域监测,具体如下:
[self.locationManager startMonitoringForRegion:region];
不幸的是,只有第3种方法才会调用beacons进入和退出委托.但是当我使用第一种或第二种方法时,我无法接收进入和退出区域代表.