I have set up an app to monitor for both geofence (CLCircularRegion) and iBeacon (CLBeaconRegion) monitoring for entry / exit events. Everything works fine for about a day in both foreground and background. I get entry / exit events (generate a UNNotificationRequest to show a local notification) just as I would expect. I can run multiple other apps that would presumably force my app out of memory, and I still get entry / exit events that launch the handler which generates the notification. But a day later I stop getting the events, or at least stop getting the notifications. I'm running iOS 13 on an iPhone Xs. Any insights into what might be happening?
iOS CLRegion monitoring stops working after a day
64 Views Asked by EPage_Ed At
1
There are 1 best solutions below
Related Questions in IBEACON
- Handling async functions in Swift
- can a android or apple phone broadcast and receive Bluetooth BLE signals simultaneously?
- Flutter Trilateration (x,y)
- How to Update Variables Between Widgets?
- How can one use the iOS 17 CLMonitor APIs to monitor for an iBeacon?
- Detect BLE iBeacon for paired BLE peripheral with dasbus in Python
- Why does audio streaming interfere with iBeacon Ranging and events on iOS?
- Unable to scan ibeacon in Flutter
- How can i implement beacon device tap in flutter?
- Does selecting a specific advertising channel in iBeacon BLE lead to lower transmission speed?
- Why my code about advertisement in BLE takes around 1 second between packages sent
- Recommend apps to simulate multiple BLE Beacons at once from one device?
- How many conditions can we add to a CLMonitor from WWDC2023?
- How to test Bluetooth functionality using React Native
- How to get correct coordinates from BLE trained data based on RSSI value?
Related Questions in CLREGION
- will Location Summary for "Always Allow" location permission shown for iBeaconRegion Monitoring as well in iOS?
- iOS CLRegion monitoring stops working after a day
- didEnterRegion and didExitRegion is not called , but the didStartMonitoringForRegion is working in geofencing, objectiveC
- C# Graphics: Region Clip and Hit Testing
- Geofence entry event received when permissions changed but, user never left the fence
- Are CLRegions sandboxed to the application that created them?
- Is geofence accuracy dependent on locationManager’s accuracy or distance filter?
- Is it possible to monitor heading / course after triggering CLRegion?
- Reducing the threshold of didEnterRegion
- Beacon Region Monitoring Get Delayed and randomly not working.(Android is working fine)
- didRangeBeacons is called even beacon is off
- Is there a way to set CLRegion to expire if not reached within certain time?
- Geofencing in iOS 10
- Creating custom CLRegions for monitoring
- CLLocationManager didDetermineState method not called when app is in Background
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?
I think I resolved the issue. My CLLocationManager delegate was being set in a ViewController. I discovered watching the console on the device that the region (beacon) was being detected and my app was going to be called, but the delegate was nil. So, I moved setting the CLLocationManager delegate to didFinishLaunching in my AppDelegate, and now everything's working. It makes sense that didFinishLaunching gets called by iOS before calling the delegate method.