Questions tagged [clcircularregion]

18 questions
4
votes
1 answer

Geofencing Limits in iOS

I have a problem with the Geofencing Limits in iOS. I'm building an app for smoke shops. Locations add up to about 200. I want to have users 'automatically' check-in when they are a couple feet away from a shop. The limit that's imposed by Apple is…
4
votes
2 answers

Does the location manager's limit of 20 regions mean 20 total geofence AND beacon regions?

I am afraid I know the answer to this. Apple's location manager docs for the startMonitoringForRegion method say that you can monitor a maximum of 20 regions at a time. I have a client app that makes heavy use of both geofence regions and beacon…
Duncan C
  • 128,072
  • 22
  • 173
  • 272
2
votes
1 answer

Swift 4 locationManager didEnterRegion doesn't fire when user is in region on app launch

I'm trying to detect, if a user is entering a specific region in my app. This works fine, if the user isn't in the specific region when the app launches and then enters the region. But if the user is in the specific region when the app launches,…
Korken55
  • 233
  • 1
  • 3
  • 14
2
votes
0 answers

How to edit the regions already being monitored by CLLocationManager

Is there any way to edit a CLCircularRegion in the NSSet returned by monitoredRegions property of CLLocationManager object? I want to do something like: NSSet *monitoredRegionsSet = self.locationManager.monitoredRegions; for (CLCircularRegion…
PGDev
  • 23,751
  • 6
  • 34
  • 88
2
votes
2 answers

iOS Tracking CLCircularRegion - Heisenbug

One of my iOS applications seems to have the symptoms of a classic Heisenbug. The application tracks a user's home location so certain events happen when the user enters and exits their home location. While I'm testing the application, it works…
Jared Price
  • 5,217
  • 7
  • 44
  • 74
2
votes
1 answer

CLCircularRegion didEnterRegion not working

I have a GPX that simulates the movement to the coordinate. I can't get CLCircularRegion to fire for nothing. I've tried to put the code everywhere. Here's what I'm using: var center: CLLocationCoordinate2D = CLLocationCoordinate2DMake(37.33171100,…
Pablo Picasso
  • 251
  • 1
  • 4
  • 13
2
votes
1 answer

iOS 8 CLLocationManager enterRegion: not getting called if use requestWhenInUseAuthorization

I'm trying to get being called the delegate method locationManager:didEnterRegion in iOS 8 for custom region. Here is the code: self.locationManager = [[CLLocationManager alloc] init]; self.locationManager.delegate = self; if ([self.locationManager…
2
votes
1 answer

Need to get more than 20 notification for Region Monitoring

I'm developing an application where user can set multiple locations. I get succeed to show notifications when user get Enter or Leave specific location boundary. Now, there is situation that i need to provide monitoring for all saved locations and…
1
vote
1 answer

Swift Region Monitoring Local Notification trigger

I'm doing an app to trigger a local notification when a region is entered. However, sometimes when the phone is locked, the notifications didn't pop up even I've been in the region area for a while. The notification popup will show only when the…
Shen
  • 25
  • 4
1
vote
1 answer

Getting an error trying to apply circle overlay in swift 3

i encounter an error : Cannot invoke initializer for type 'MKCircle' with an argument list of type '(center: CLLocationCoordinate2D,radius: int,identifier: String)' let region = CLCircularRegion(coder: MKCircle(center:…
1
vote
1 answer

Maximum length of identifier in -initWithCenter:radius:identifier: of CLCircularRegion

What is the maximum length allowed for identifier property in - initWithCenter:radius:identifier: method of CLCircularRegion class used for region monitoring? - initWithCenter:radius:identifier: is returning nil when the identifier length exceeds…
PGDev
  • 23,751
  • 6
  • 34
  • 88
0
votes
1 answer

Does CLAccuracyAuthorization impact CLCircularRegions or Beacon Regions?

Apple's documentation isn't very clear on this: does anyone know if the delegate callbacks when crossing the boundary of geofenced regions is negatively impacted if the user elects to not share precise location with the app? I'd hope not, but I'm…
David
  • 95
  • 1
  • 7
0
votes
2 answers

Could I set value in CLCircularRegion?

I'm developing app using CLCircularRegion. I want to set value in CLCircularRegion. So I did region.setValue(forKey:key) but it showed if CLLocationManager.locationServicesEnabled() { for obj in pushInfoArr! { …
양홍범
  • 87
  • 8
0
votes
1 answer

Not able to set region for monitoring using CLCircular Region in swift

I try to set a CLCircularRegion in didUpdateLocations method using the code func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { NSLog("Location Updated from did Update Locations") let persist =…
AnxiousMan
  • 578
  • 2
  • 8
  • 25
0
votes
0 answers

How to sort NSMutableSet of CLCircularRegion and get the 20 closest?

I have an NSMutableSet of 200 CLCircularRegions and my current location. I want an NSMutableSet of 20 closest CLCircularRegions to my current location. How do I accomplish that in the most efficient way? I'm currently saving each region with…
iamarnold
  • 705
  • 1
  • 8
  • 22
1
2