Dear Experts,
It is necessary to remove NSFilePresenters when an app goes to the background and re-add them when it returns to the foreground - if you don't do so, the app will be terminated.
But what about an app that has the location background mode enabled?
Specifically, I have an app that records your location, in the foreground or background, and writes this data to a file. It does writes to the file inside a coordinated write block, and monitors for writes from other processes. This works fine in the foreground. I'd really like to also get notifications of concurrent changes to the file while the app is in the background, but this doesn't seem to be possible.
(It's actually more likely that a file will be modified by another app while I'm in the background - consider switching to the Files app, and then back again.)
Any suggestions?