Persistant storage

Please post any questions about the Hollywood framework for iOS here
Post Reply
rav81
Posts: 7
Joined: Tue Dec 03, 2019 8:48 am

Persistant storage

Post by rav81 »

Hi.
I write settings to a file just in current directory.
Works fine on android and seems to work on ios. However, if I force close the app and restart it seems like the file is gone.
Where can I store a file that will be persistent?
born2code
Posts: 12
Joined: Mon Jan 31, 2011 4:32 pm

Re: Persistant storage

Post by born2code »

Not using Remedios myself but I'd guess that you could use one of the paths returned by GetSystemInfo(). Most likely the "AppData" or "MyDocuments" paths seem to be good for your purpose. Those paths are persistent on other systems so I'd guess they are persistent on iOS as well and the documentation of GetSystemInfo() explicitly mentions that iOS is supported so maybe give it a try.
User avatar
jPV
Posts: 674
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: Persistant storage

Post by jPV »

You should use SavePrefs() which saves your program settings to a preferred location on each platform.
Post Reply