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 from persisting or clear all of the old ones at launch time?
Can you stop regions from persisting between launches with CLLocationManager?
2.3k Views Asked by charleyh At
2
There are 2 best solutions below
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in CORE-LOCATION
- How to get MAC Address of beacon when ranging and monitoring in iOS
- NSLocation doesn't wait for me to click allow
- CLLocationManager didVisit not working
- Indoor mapping in iOS
- allowsBackgroundLocationUpdates in CLLocationManager in iOS9
- What is the proper way to search for regions in CoreLocation with Swift?
- Core Location and UITableView performance issues in iOS 8
- Touching MKMapView causes pins to move slightly
- From where geocode server Apple API get its information
- Can't endBackgroundTask: no background task exists with identifier *, or it may have already been ended
- Location of iPhone without internet or mobile network
- handling location permissions instantaneously in swift
- Getting user location when app is in background. IOS
- iOS8 RSSI and Proximity unexpected results
- ios: Is it possible to find the other device ‘s location with specific IMEI, RSSI or phone number from the app side?
Related Questions in GEOFENCING
- Passbook with geofence
- Geofence doesn't fire for Iphone devices in XCode Simulator
- Geofencing Xamarin Android not working
- Android Geofencing: frequent incorrect EXIT/ENTER events whereas device is actually stationary in fence
- Which API to use to find Geofence Breach in the direction from start to end
- Android App add geofences and receive intents in same service
- Possible to set geofence around specific points saved in database by an application?
- Whats the max geofence limit in Windows Mobile 10?
- GPS-Service , Main Activity and Map Activity (Pass co-ordinates from service to map current location)
- Alarm Manager doesn't work in application with BroadcastReceiver
- public class ParcelableGeofence has disappeared from play-services:10.0.1. Is there a workaround?
- Tracking time spent at a location in Android using Google apis
- How to push my app icon on the lock screen when nearby some locations?
- Do geofences survive app updates?
- How to make Geo Fencing without using google play Service (Android)
Related Questions in CLREGION
- iBeacon Department Store Scenario - Ranging vs. Monitoring
- how to specify a region for iOS app to operate in
- LocationManager region monitor is not what I expected. The region boundary looks bigger than my settings
- startMonitoringForRegion vs CLRegion:containCoordinate
- Deprecated CLRegion methods - how to get radius?
- UILocalNotification presentNotificationNow Issue
- CLLocationManager in ios7 stops working
- What to use instead of regionMonitoringAvailable which is deprecated in iOS 7?
- Monitoring multiple beacon regions is not working yet developers have said it's possible? Thoughts? (See my code)
- How does geofences behave when there are overlapping CLRegions
- Notify a user about a close region based on his speed
- Getting users location silently
- iBeacon Region monitoring: Not resumed when rebooting the phone EXCEPT if I set location background mode?
- CLLocationManager always returns the exact same location
- Shape of the region in region/geofence monitoring iOS
Related Questions in CLCIRCLEREGION
- initialize CLCircularRegion in Swift
- iOS Geofence CLCircularRegion monitoring. locationManager:didExitRegion does not seem to work as expected
- Can you stop regions from persisting between launches with CLLocationManager?
- ONLY Show annotations for venues within radius
- Show Venues in Firebase When User is near
- How do I use values out of a plist in Swift without them coming up as AnyObject?
- CLCircularRegion get random points within 1 mile radius
- Auto registering current location as geofence is not frequent as needed
- iOS 7 didEnterRegion not getting called at all
- Geofencing, iBeacons, and sending notifications when people walk into a restaurant
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Of course you can clear all the regions currently monitored:
If you had a specific identifier that you wanted to remove:
You can copy the internals of the function into an appropriate place in your application. I've copied them from my shared manager class.