I use SharedObject in AIR to storage some data in IOS App.
when I set UIApplicationExitsOnSuspend to true, shared objects work fine, it means if I remove it from Fast App Switcher(Fast App Switcher appears by double clicking on home button), and then run the app again, SharedObject with my data is still there.
But if I set UIApplicationExitsOnSuspend to false and remove app from Fast App Switcher and then run it again, my SharedObject is empty.
The problem is I need to use UIApplicationExitsOnSuspend false, but I also need to storage SharedObject all the time, not even when it works in the background.
Thank you.
UPD: some code
this is constructor of the project main class:
public static var so:SharedObject;
public function Main():void
{
…
so = SharedObject.getLocal("MyApp");
}
and then i use it like this
if (!Main.so.data.names) {
Main.so.data.names = [];
}
Main.so.data.names.push(someNewName);
while app is working in background, it works fine, all changes saves. but if i kill app in Fast App Switcher, and then run again, debugger shows Main.so.data contains nothing