Hi,
I am looking into a way of saving data locally on a multi-platform game.
Shared object seams to be the easiest way. But I have also found old posts mentioning that the data stored in a shared object can be lost during an app update on ios.
http://www.openfl.org/archive/community/programming-haxe/sharedobject-ios-during-updates/
Is this still true?
Does anyone know where the shared object is saved?
Thanks in Advance
Looks like it still uses applicationStorageDirectory, at least in Legacy mode:
https://github.com/openfl/openfl/blob/master/openfl/_legacy/net/SharedObject.hx#L155
…except, hold on, that function isn’t actually called on iOS:
https://github.com/openfl/openfl/blob/master/openfl/_legacy/net/SharedObject.hx#L127
iOS calls this one instead:
https://github.com/openfl/lime/blob/master/legacy/project/src/iPhone/System.mm#L60
…and that class looks like it’s recommended by Apple, so I don’t think this is an issue.
Cool! thank you for helping