Questions tagged [clregion]

CLRegion is an iOS class for CoreLocation framework that holds the information used in shape based regions.

The CLRegion class defines a geographical area that can be tracked. When an instance of this class is registered with a CLLocationManager object, the location manager generates an appropriate event whenever the user crosses the boundaries of the defined area.

97 questions
4
votes
0 answers

Creating custom CLRegions for monitoring

I'm building an app that uses geofencing but I realised that CLRegion has many limitations, for example: that location authorizationStatus must be .authorizedAlways in order for region monitoring to work. only circular regions can be monitored…
Wink
  • 187
  • 7
4
votes
1 answer

Monitoring multiple beacon regions is not working yet developers have said it's possible? Thoughts? (See my code)

Here's my code: // Initialize and monitor regions for (NSString *serviceUUID in _serviceUUIDs) { // Initialize region NSUUID *uuid = [[NSUUID alloc] initWithUUIDString:serviceUUID]; CLBeaconRegion *appBeaconRegion =…
mr.sosa
  • 691
  • 7
  • 13
4
votes
1 answer

Minimum radius for iOS CLRegion feature of LocatinManager

I´m currently working the the region-feature of the location-manager. Unfortunately I am unable to get notifications for any border-crossings, which are smaller than 100m. I created regions with the radius of 20m / 50m or 70m and I always only get a…
Thomas
  • 41
  • 2
  • 4
4
votes
4 answers

Convert GMSVisibleRegion to CLRegion or MKCoordinateRegion

I am using the GoogleMaps SDK and currently I am trying to convert a GMSVisibleRegion to a CLRegion. GMSVisibleRegion is defined as: typedef struct { CLLocationCoordinate2D nearLeft; CLLocationCoordinate2D nearRight; CLLocationCoordinate2D…
Robert Weindl
  • 1,092
  • 1
  • 10
  • 30
3
votes
1 answer

using startMonitoringVisits to monitor region

Class reference is not explaining WHEN to use it or what exactly it is doing. i need to monitor a region exits the fact that startMonitoringForRegion: is not 100% reliable is a problem. Can startMonitoringVisits help me here? if not - any other…
ozd
  • 1,194
  • 10
  • 34
3
votes
2 answers

Local notification doesn't show up when hitting region

I'm working on simple To-Do app which uses IOS 8 feature of CLRegion support in UILocalNotification. Here is the code I'm using to schedule local notification: var schedule = false let notification = UILocalNotification() /// Schedlue…
Tomasz Szulc
  • 4,217
  • 4
  • 43
  • 79
3
votes
1 answer

Shape of the region in region/geofence monitoring iOS

CLRegion seems to be only circle supported, it's not very useful for a circle region, because in most cases, it is a polygon area. So my question is: In iOS7, is it possible to define polygon region for startRegionMonitoring.
LiangWang
  • 8,038
  • 8
  • 41
  • 54
3
votes
1 answer

didEnterRegion called with larger radius (iOS)

I want didEnterRegion to be called with much precision, but I wasn't able to do so. Here is what I have done: I used the best values of distanceFilter and desiredAccuracy (most precise GPS settings according to Apple) and have a destination…
coolcool1994
  • 3,704
  • 4
  • 39
  • 43
3
votes
1 answer

CLLocationManager in ios7 stops working

My CLLocationManager starts when the user first enters the app. I am initializing it like this: self.locationManager = [[CLLocationManager alloc] init]; self.locationManager.delegate = self; …
ghostrider
  • 5,131
  • 14
  • 72
  • 120
3
votes
0 answers

CLCircularRegion - Arbitrary value for notifyOnEntry

I have a set of CLCircularRegions that are being monitored by the CLLocationManager. In viewDidLoad of my map view controller, I iterate through monitoredRegions on the location manager and create MKCircle overlays that correspond to the…
Patrick Goley
  • 5,397
  • 22
  • 42
2
votes
1 answer

Is geofence accuracy dependent on locationManager’s accuracy or distance filter?

Is geofence accuracy dependent on locationManager’s accuracy or distance filter? Or they are independent of each other because geofence is managed by the OS and uses Wifi/Cell tower info? For example: locationManager locationManager.distanceFilter =…
mfaani
  • 33,269
  • 19
  • 164
  • 293
2
votes
3 answers

iOS Region Monitoring not working

I have been doing some iOS development for a couple of months and recently I am developing a bus app. I am currently mimicking the bus' movements and set up multiple annotations on the bus stops. For test purposes, I have setup just one bus stop and…
eshirima
  • 3,837
  • 5
  • 37
  • 61
2
votes
1 answer

didEnterRegion only fired on device wake up

I'm using local notifications triggered by iBeacons in my app. It works fine both in foreground and background as long as the iPhone is active, but doesn't trigger didEnterRegion after about 15 minutes of inactivity or reboot. It then only fires…
Mathijs
  • 1,258
  • 1
  • 10
  • 27
2
votes
0 answers

Toggling wifi on and off trips local geofences in iOS7

My app is monitoring around a dozen circular regions at a time. Region monitoring works as expected most of the time. However, I have noticed that often when I toggle wifi on and off from the settings or control center, …
MattDiep
  • 111
  • 6
2
votes
1 answer

iBeacon Department Store Scenario - Ranging vs. Monitoring

So we are trying to put together a scenario with iBeacons and I think we are getting stuck with the differences between ranging and monitoring in the background and now i'm not sure what we want to do is possible. We have 500 stores that we want to…
causerie
  • 21
  • 2