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
0
votes
0 answers

How to know if the user dwelling inside the CLRegion after specific minutes in background?

I worked on geofencing iOS and everything is well . Enter & Exit events are triggered . How to detect if the user stay in the region after specific minutes? . I can use didDetermineState in the foreground with NSTimer to know if the…
Hazoomo
  • 55
  • 1
  • 1
  • 10
0
votes
1 answer

Building a Geo Targeting in Swift

Im trying to implement geo targeting functionality with CLRegion. But When I run this app the MKCircle didn't show up, can anyone tell me which part is wrong? func setupData(){ if…
Johnny Hsieh
  • 856
  • 2
  • 10
  • 23
0
votes
0 answers

is it safe to ask for a location in didExit or didEnterRegion?

I am using region monitoring in one of my apps. I am wondering.. is it save to ask location manager for a current location when didExitRegion or didEnterRegion is called? Like this: func locationManager(manager: CLLocationManager, didExitRegion…
potato
  • 4,479
  • 7
  • 42
  • 99
0
votes
0 answers

Getting users location silently

In the process of developing a travelling application, let's say the user have a flight from LAX to JFK at 6:00 PM, is it possible to get the users location silently before the departure time (i..e 5:00 PM) and the users location after arrival? I'm…
prettyvoid
  • 3,446
  • 6
  • 36
  • 60
0
votes
1 answer

Notify a user about a close region based on his speed

I'm building an app that notifies the user whenever he approaches one of my client's stores. I want that the app will notify the user based on his speed (30km/h+ - 500m before, 15-24km/h - 200m before, 14km/h- - 70m before). Currently, the…
FS.O
  • 403
  • 6
  • 24
0
votes
1 answer

CLCircularRegion and wake up app

In application we have mechanism like native Reminder app in iOS with firing notifications when user enter or exit in some region. But two devices behave differently (5 and 5s) in same time. All devices have enable notifications, and allow use…
dev.nikolaz
  • 3,184
  • 3
  • 19
  • 32
0
votes
1 answer

CLRegion background monitoring not occuring

In my project settings > target > Capabilities I have Background Modes ON with "Location Updates" checked. AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window…
quantumpotato
  • 9,637
  • 14
  • 70
  • 146
0
votes
0 answers

IOS Ranging Beacon Not Working

I am trying to scan and range nearby beacons. I've bought a nordic semiconductor nrf51822 ble but i cannot make it work. Even if i have the ble near me it doesn't see it at all. - (void)viewDidLoad{ [super viewDidLoad]; NSLog(@"viewDidLoad"); …
0
votes
1 answer

LocationManager didEnterRegion not called (again)

I am trying to register regions to be notified when the user enters them. This is the code I use: public func locationManager(manager:CLLocationManager, didEnterRegion region:CLRegion){ print("did enter region \(region)") let…
Fabrizio Bartolomucci
  • 4,948
  • 8
  • 43
  • 75
0
votes
2 answers

Location Manager didEnterRegion and didExitRegion methods are not called

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
0
votes
2 answers

iOS 8.2 MonitoringForRegion delegate Method was working perfectly and now not getting called

Since yesterday, I have a problem with monitoring region working with CLLocationManager PS: my project was working perfectly I'm testing it everyday, but today this delegate method was called after 1 minute of entering a…
sarra.srairi
  • 150
  • 14
0
votes
1 answer

UILocalNotification and region monitoring

I am rolling a notification service into an existing app that requires geofenced notifications. CLRegion looks like how you are supposed to do this, a la the Apple way. However, they limit you to 20 regions that can be monitored by a single…
Erik
  • 1,246
  • 13
  • 31
0
votes
1 answer

Does the geographical and beacon monitoring region add up for the 20 regions limit on iOS?

I have read in the iOS documentation that we can monitor 20 regions. Does it mean that: -the sum of both is limited to 20 or -that I can have 20 geographical and 20 beacon regions ?
poiuytrez
  • 21,330
  • 35
  • 113
  • 172
0
votes
2 answers

iOS - Region monitoring when device/user into new city?

As per iOS CLLocationManager API startmonitoringsignificantlocationchanges will inform my app when there is significant change e.g. 500 mtrs or more. But i want in my app like my app will get notified only when user/device enters into new city. App…
harshit2811
  • 827
  • 1
  • 7
  • 21
0
votes
0 answers

startMonitoringForRegion works in foreground but not in background

I am quite new to objective C and region monitoring and I'm working on application that alert you when you enter specific locations. I get my data from JSON. If the app is running in the foreground (i.e. visible) then the startMonitoringForRegion…
user3686588
  • 375
  • 1
  • 4
  • 6