updating an app in app store - what data survives, what not

Discussion in 'iOS Programming' started by drivefast, Aug 25, 2008.

  1. drivefast macrumors regular

    Mar 13, 2008
    you release an app in the app store. the app stores some preferences (using CFPreferences) and also creates and maintains some files under its own sandboxed "Documents" directory. at one point you create an update of the app and upload it in the app store. when the user updates your app, are the preferences and the files under "Documents" preserved? i've been looking for this in the sdk documents and couldnt find anything related to it.
  2. admanimal macrumors 68040

    Apr 22, 2005
    Technically prefs and the Documents directory should be left alone. In practice this does not always happen and users lose their data.
  3. drivefast thread starter macrumors regular

    Mar 13, 2008
    thanks admanimal. maybe the instability in this area was only present in the early days of the app store, or in the early 2.x versions, and will have to get fixed. is what you're saying documented as such?

Share This Page