diff --git a/RNBeacon.m b/RNBeacon.m index 4faf0df..72fc92d 100644 --- a/RNBeacon.m +++ b/RNBeacon.m @@ -232,6 +232,10 @@ -(void) locationManager:(CLLocationManager *)manager didRangeBeacons: -(void)locationManager:(CLLocationManager *)manager didEnterRegion:(CLBeaconRegion *)region { + if (! [region respondsToSelector:@selector(proximityUUID)]) { + return; + } + NSDictionary *event = @{ @"region": region.identifier, @"uuid": [region.proximityUUID UUIDString], @@ -242,6 +246,10 @@ -(void)locationManager:(CLLocationManager *)manager -(void)locationManager:(CLLocationManager *)manager didExitRegion:(CLBeaconRegion *)region { + if (! [region respondsToSelector:@selector(proximityUUID)]) { + return; + } + NSDictionary *event = @{ @"region": region.identifier, @"uuid": [region.proximityUUID UUIDString],