When i use startRangingBeaconsInRegion with different regions didRangeBeacons inRegion can determine all the beacons that i set, but when i am doing the same with startRangingBeaconsSatisfyingConstraint didRangeBeacons satisfyingConstraint can determine only the last one. Is it the apple bug?
startRangingBeaconsInRegion
for (NSString *uuidString in uuidsString) {
NSUUID *uuid = [[NSUUID alloc] initWithUUIDString:uuidString];
CLBeaconRegion *region = [[CLBeaconRegion alloc] initWithUUID:uuid identifier:uuidString];
[_locationManager startRangingBeaconsInRegion:region];
}
startRangingBeaconsSatisfyingConstraint
for (NSString *uuidString in uuidsString) {
NSUUID *uuid = [[NSUUID alloc] initWithUUIDString:uuidString];
CLBeaconIdentityConstraint *beaconIdentityConstraint = [[CLBeaconIdentityConstraint alloc] initWithUUID:uuid];
[_locationManager startRangingBeaconsSatisfyingConstraint:beaconIdentityConstraint];
}