clregion

Reducing the threshold of didEnterRegion

有些话、适合烂在心里 提交于 2019-12-07 16:36:26
I'm currently working on an app that I want for my app to detect a beacon in background mode just when it gets close to it(Immediate). Based on articles that I've read it cannot be done with didEnterRegion and I should use ranging while it's running in the background mode(Location Update). is there any solution that directly reduces the didEnterRegion threshold? or Should I use the other method? and if that's the case does it work like didEnterRegion but with a limited range of RSSI? does it work when my phone entered the region and it's locked and the screen is off? Monitoring APIs give you

On which iOS devices exactly is region monitoring supported?

时光怂恿深爱的人放手 提交于 2019-12-06 18:50:22
问题 From what I can interpret from the runtime requirements of sample region monitoring code of Apple, region monitoring is available on iPhone 4, iPad 2 Wifi + 3G or later. So I'm assuming that it's not available on iPad1 with 3G, or iPhone 3G/3GS. Is this a correct interpretation? I cannot test this since I don't have all those devices and I couldn't find an official documentation about this. PS: I know that I can check for it in the code by calling regionMonitoringAvailable method but I need

iOS Region Monitoring not working

白昼怎懂夜的黑 提交于 2019-12-06 14:21:26
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 am trying to monitor when the bus has entered this region and exited as well. Strangely, my didStartMonitoringForRegion method is called perfectly but neither the didEnterRegion nor didExitRegion methods are called. Every time I run the program, the bus pretty much passes the stop without prompting me so. Could someone explain to me why this is

iBeacon Region monitoring: Not resumed when rebooting the phone EXCEPT if I set location background mode?

百般思念 提交于 2019-12-06 13:22:54
问题 all day I tested the monitoring of beacons my app does. in general it works ok: notifications in foreground work notifications in background work BUT after a reboot it doesn't work until I launch ANY app that uses BluetoothLE after I do that it works fine for my app as well! But if I set UIBackgroundMode location in my plist though, my app gets region notifications just fine even after a reboot. So... is that it? or whats the deal here? :D this is under ios 7.1.1 btw The code is very minimal:

How do you use CLRegion in iOS 7 since initCircularRegionWithCenter:radius:identifier: is deprecated?

戏子无情 提交于 2019-12-05 10:33:11
问题 Since the depreciation of initCircularRegionWithCenter:radius:identifier: , how would you define the region to be monitored using CLLocationManager ? 回答1: Since CLCircularRegion is a subclass of CLRegion , you can just cast the instance. CLCircularRegion *region = [[CLCircularRegion alloc] initWithCenter:theCenter radius:theRadius identifier:theIdentifier]; // Then cast the instance for use with your CLLocationManager instance [manager startMonitoringForRegion:(CLRegion *)region]; 来源: https:/

On which iOS devices exactly is region monitoring supported?

不打扰是莪最后的温柔 提交于 2019-12-05 00:16:00
From what I can interpret from the runtime requirements of sample region monitoring code of Apple , region monitoring is available on iPhone 4, iPad 2 Wifi + 3G or later. So I'm assuming that it's not available on iPad1 with 3G, or iPhone 3G/3GS. Is this a correct interpretation? I cannot test this since I don't have all those devices and I couldn't find an official documentation about this. PS: I know that I can check for it in the code by calling regionMonitoringAvailable method but I need this information to decide for the architecture of my app, so I need to know this upfront. From what I

iOS Geofence, how to handle when inside region when monitoring starts?

…衆ロ難τιáo~ 提交于 2019-12-04 03:17:55
I have been unable to work out how to handle a scenario where the phone is already inside a region when startMonitoringForRegion is called? Other questions have suggested calling requestStateForRegion inside didStartMonitoringForRegion this then calls the method didDetermineState: forRegion: . So the code looks something like this: - (void)viewDidLoad { //location manager set up etc... for (Object *object in allObjects){ CLRegion *region = [self geofenceRegion:object]; [locationManager startMonitoringForRegion:region]; } } - (void)locationManager:(CLLocationManager *)manager

How do you use CLRegion in iOS 7 since initCircularRegionWithCenter:radius:identifier: is deprecated?

…衆ロ難τιáo~ 提交于 2019-12-04 00:20:22
Since the depreciation of initCircularRegionWithCenter:radius:identifier: , how would you define the region to be monitored using CLLocationManager ? Since CLCircularRegion is a subclass of CLRegion , you can just cast the instance. CLCircularRegion *region = [[CLCircularRegion alloc] initWithCenter:theCenter radius:theRadius identifier:theIdentifier]; // Then cast the instance for use with your CLLocationManager instance [manager startMonitoringForRegion:(CLRegion *)region]; 来源: https://stackoverflow.com/questions/19205210/how-do-you-use-clregion-in-ios-7-since

didEnterRegion called with larger radius (iOS)

谁说我不能喝 提交于 2019-12-03 14:04:26
问题 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 CLCircularRegion (Subclass of CLRegion). self.locationManager.distanceFilter = kCLLocationAccuracyBestForNavigation; self.locationManager.desiredAccuracy = kCLLocationAccuracyBestForNavigation; @property (nonatomic, strong) CLCircularRegion *Destination;

CoreLocation kCLErrorDomain error 5

余生长醉 提交于 2019-12-03 09:45:21
问题 I subclassed a CLRegion to support Polygons via overriding containsCoordinate: to use ray casting logic instead of the original distance crunching logic. The subclass is initialized via the normal method ( initCircularRegionWithCenter:radius:identifier: ), then CLLocationCoordinate2d s are added as NSValue s to a mutable array. These coordinates are used during the ray casting logic. As soon as I try to use the CLRegion subclass, I am confronted with a ton of errors in my application logic,