IPhone game update, prevent data loss?

Previous topic - Next topic


Hello Guys,

Still not released his first game for IPhone :) but this is something that I read a lot on game reviews that updates are caused loss of current game progress, etc. so I want to prevent this from the beginning. As default to GLBasic, I use "Media" folder for all my data location. I'll create an ini file at there, which won't be available at first deployment, to keep the game progress, etc. Will this guarantee that my ini file will be still there when the user updates it's game or an update means completely deleting all folders of old installation and make a fresh one?

Would appreciate if somebody has any experience about this and gives a reply...


Kitty Hello

You can't write to MEdia on the iPhone.
Write to PLATFORMINFO$("DOCUMENTS") and it will stay there even after an software update. iTunes will sync this directory, too IIRC.


Thank you, I'll follow that route...


On the iphone, does the PLATFORMINFO$("DOCUMENTS") return a folder that is only accessible to the running glbasic app? Or do other apps also write into this folder, just like the "my documents" folder in windows?

And also, can you create subfolders in this documents-folder using CREATEDIR()? I don't have an iPhone (yet) so I was wondering.


I haven't tried folder creation but I can confirm that it's only allowed to reach the file who has created the file, other apps cannot.


DOCUMENTS on iPhone returns the Path to Sandbox directory of your game. every game has a tmp folder, a documents folder and the own .app folder.
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC