7

I learned that NSUbiquitousKeyValueStore is always available, also when no iCloud account is set up. This makes me believe I can safely store essential data in it, without keeping a copy in NSUserDefaults.

However, in their documentation, Apple says the following:

Avoid using this class for data that is essential to your app’s behavior when offline; instead, store such data directly into the local user defaults database.

Do I overlook issues that might arise when not using NSUserDefaults (or another offline store) as back-up? Or is Apple being overprotective and is it safe to rely on NSUbiquitousKeyValueStore?

Community
  • 1
  • 1
Jonathan
  • 6,572
  • 1
  • 30
  • 46
  • did you ever receive an answer for this? – Andrew Davis Jun 13 '14 at 10:38
  • @AndrewDavis Unfortunately not :( – Jonathan Jun 14 '14 at 11:13
  • curious as well. this asks the question: http://stackoverflow.com/questions/8070253/how-to-use-nsubiquitouskeyvaluestore-and-nsuserdefaults-together but the answers don't really get at the core question there and here. i think though, the documentation tends to be king so I'm gonna use both – skinsfan00atg Oct 24 '14 at 15:42

1 Answers1

1

Julien commented the following about this question:

What this means is that you should not rely on this store to be your local truth but more of a simple sync communication channel between your devices.

Community
  • 1
  • 1
Jonathan
  • 6,572
  • 1
  • 30
  • 46