Region monitoring does not work in iOS if there are no major regions in the region

In my iOs application, I am trying to track a certain area of ​​beacons by different parameters as follows:

Method 1 - Scope with only UUID and ID:

In the above scenario, I start tracking a beacon zone followed by a code where only the uuid and id are listed.

CLBeaconRegion *region = [[CLBeaconRegion alloc] initWithProximityUUID:convertedUuid identifier:strIdentifier]; 

      


Method 2 - Scope with UUID, Primary and ID:

In the above scenario, I start to track the beacon zone followed by a method that has uuid, major and identifier set

CLBeaconRegion  *region = [[CLBeaconRegion alloc] initWithProximityUUID:convertedUuid  major:[self.major intValue] identifier:strIdentifier];

      


Method 3 - Region with great confusion and identifier:

In the above scenario, I start tracking the beacon zone followed by a method that has all the uuid, major, minor and identifier values ​​set

CLBeaconRegion  *region = [[CLBeaconRegion alloc] initWithProximityUUID:convertedUuid  major:[self.major intValue] minor:[self.minor intValue] identifier:strIdentifier];

      

Now, having considered the above 3 methods, I start monitoring the area like this:

[self.locationManager startMonitoringForRegion:region];

      

Unfortunately only with the 3rd method the delegate input and output beacons appear. but when i use the 1st or 2nd method i couldnt get the delegate in and out of the scope.

Note. Don't run the entire method at the same time. I only use one method at a time.

can anyone give any feedback or provide any help as to why the other region method doesn't work but only the third method works?

+3


source to share


1 answer


Make sure that no other beacons with the same proximityUUID (method 1) or the same proximityUUID and the same basic (method 2) are around. When there is another beacon, the app will not receive exit events because it is still in that region identified by this proximityUUID / major.



0


source







All Articles