I am writing an App with both Mac and iPad versions that saves its state to a file. The user can store the file in their iCloud and open it both on the Mac and iPad simultaneously. If an update is made on either device the other will update their state to match.
This has been achieved using an NSFilePresenter / NSFileCoordinator approach. Both platforms are using identical code.
At present when I make a change on the iPad, a few moments later the Mac updates as expected.
However, this does not happen the other way around. If I update the data on the Mac the iPad never appears to receive an update.
I've tried this on the simulator also. I get similar behaviour, but can get the iPad to update it I use the simulator's Sync With iCloud function.
Any ideas of what I may be doing wrong - as clearly the code works in one direction!