Questions tagged [clcircleregion]

CLCircleRegion is a subclass of CLRegion used in creating geofence regions in iOS 7 and later.

CLCircleRegion was created as a subclass of CLRegion under iOS 7 to allow more extensibility of CLRegions. This extends to geofences and iBeacons.

10 questions
30
votes
9 answers

iOS Geofence CLCircularRegion monitoring. locationManager:didExitRegion does not seem to work as expected

I am currently trying to get my app to monitor particular regions using CoreLocation however I am finding that it does not seem to work as expected, it seems to me that it cannot work with small a small radius set for each location i.e. 10m. I've…
MonkeyBlue
  • 2,234
  • 6
  • 31
  • 41
6
votes
2 answers

Can you stop regions from persisting between launches with CLLocationManager?

Is there a way to prevent CLLocationManager from persisting monitored regions between launches? Every time the app is launched I need to add a new set of monitored regions and the old ones are no longer useful. Is there a way to either prevent them…
charleyh
  • 2,033
  • 2
  • 20
  • 32
6
votes
1 answer

iOS 7 didEnterRegion not getting called at all

I am using the following code to monitor for regions in my iOS app. It works perfectly when I build the app on iOS6. When I build it on iOS7, the didEnterRegion is not triggered. // create and register a region with iOS CLLocationCoordinate2D…
3
votes
1 answer

initialize CLCircularRegion in Swift

I am fairly new to programming for iOS and am teaching myself how to use Swift. I need to set up geofencing for an app I am making for a class. My problem is when initializing CLCircularRegion I get an error that says "Use of undeclared type…
Jordan Holmer
  • 75
  • 2
  • 11
2
votes
1 answer

How do I use values out of a plist in Swift without them coming up as AnyObject?

I'm trying to get objects out of a plist and use them in Swift to create a CLCircularRegion, but when I try and use those values I see this error Cannot invoke 'init' with an argument list of type '(center: $T3, radius: @lvalue AnyObject?!,…
Mark Reid
  • 2,611
  • 3
  • 23
  • 45
1
vote
2 answers

Geofencing, iBeacons, and sending notifications when people walk into a restaurant

I'm trying to send a notification through my iOS and Android apps when a user walks through the front door of a restaurant. I've tried Geofencing, but the minimum radius isn't small enough and people will get notifications from multiple restaurants…
Jake
  • 383
  • 6
  • 26
1
vote
1 answer

CLCircularRegion get random points within 1 mile radius

So far i've tried generating random latitude and longitude and validating it with "CLLocationCoordinate2DIsValid". But the problem is i never get the coordinate within my specified "CLCircularRegion". Following is the logic i've written: …
RoHaN
  • 372
  • 3
  • 14
0
votes
1 answer

Show Venues in Firebase When User is near

I'm trying to have my map display venues, pulled from Firebase, that are within a half mile radius from my user but, I'm not quite there yet. Could anyone assist? This is what I'm doing now: 1) Populate the map and tableView with the data from my…
0
votes
1 answer

ONLY Show annotations for venues within radius

I'm trying to only show the annotations for locations nearest to my user. I have all the locations already saved to firebase and now I'm just trying to retrieve them and populate the Map and TableView with only the locations around the user. I've…
0
votes
1 answer

Auto registering current location as geofence is not frequent as needed

My code supposed to do something like this: Register current location (using significant location changes) as geofence with 200 meters radius using this method: - (void)startMonitoringRegionWithCoordinate:(CLLocationCoordinate2D)coordinate When…
Idan Moshe
  • 1,675
  • 4
  • 28
  • 65