0

I have managed to get startMonitoringForRegion to work. It works as expected by notifying me when entering the specified regions.

As I was changing the identifier for the regions, I noticed that previous regions (with different identifiers) were still being monitored after rerunning the app.

Does anyone know if the app saves references to these regions so that you have to manually stop each region to be monitored?

Arieck
  • 2,002
  • 2
  • 9
  • 8

2 Answers2

0

Core Location monitoring is persistent.

I doubt if it saves a memory reference to the region you create, since the region is defined in your app's memory space and region monitoring can persist even when your app is not running at all.

The documentation explains how background region monitoring works. You should read up on it.

Duncan C
  • 128,072
  • 22
  • 173
  • 272
  • I read the documentation and I understand the background monitoring. It is still unclear to me if an app will stop monitoring certain regions automatically or if you have to stop monitoring each region manually. I think what I'm looking for is a way to stop monitoring every region without having to know which regions are currently being monitored. – Arieck Jun 04 '16 at 17:52
  • I marked your answer as the solution as it does answer my question. But I also added an answer to what was actually my underlying question/problem. – Arieck Jun 04 '16 at 18:22
0

Whether or not regions are automatically removed from monitoring at a certain point, I want to stop monitoring all regions from previous runs of my app. For that I found the answer here: https://stackoverflow.com/a/11303480/6357591

Community
  • 1
  • 1
Arieck
  • 2,002
  • 2
  • 9
  • 8