Question

How do I keep the users data when they get an update.

I use the Marmalade SDK to develop an app and I saved the user data to bin files and text files, I used the ram:// prefix when saving the files.

If I delete the app and get it from the app store again with the could symbol It had lost all its user data. I would like to release an update that doesn't delete the users data. The app does not come with any user data files, the app creates them as you use it.

Edit: Marmalade is cross platform but my question is for iOS only and the app has been publish, I am asking with respect to an existing app.

Was it helpful?

Solution

Deleting the app from the device, also removes it's sandbox. So any user data stored locally is deleted. This is expected behaviour.

If the user data comes from the web, then you just need to download it again.

OTHER TIPS

Have you read the tutorial for dealing with files?

I have never used that sdk but:

  • rom for the read-only portion of your apps data area and is read only.
  • ram for the writable portion of your apps data area. This drive is the only drive that is guaranteed to exist across platforms
  • rst for a removable memory card on the phone or tablet
  • raw for paths that will be passed directly to the underlying operating system without modification. (not supported on all platforms)
  • tmp for a system temp folder, outside of the s3e data area. (system temporary folder and currently only available on iOS)

So maybe you could try rst:// and get the expected result?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top