Skip to main content
Jul 4, 2013 7:10 AM UTC
Question

PreventBackup does not works

my aplication save login information in sharedObject. in android, it works fine, but in iOS, it forget login information when you open it again. i add "SharedObject.preventBackup=true;" line where i fill sharedObject data, but it does not works.am i doing something wrong?

This topic is closed to new replies. Start a new post to keep the conversation going.

8 replies

Adobe Employee
Jul 4, 2013 7:17 AM UTC

Please not that the static property(preventBackup) can be used only with 3.7 or greater namespaces (swf-version=>20). Setting this property to true will prevent all the shared objects from being backed up. The default value of the property is false.

Regards,

Nimit

Translate
Jul 4, 2013 7:31 AM UTC

i am using air 3.7.0.1530 but i dont know meaning of "(swf-version=>20)".
i use "SharedObject.preventBackup = true;" line in a function. does location make difference?

Translate
Adobe Employee
Jul 4, 2013 8:05 AM UTC

If you wanted to save data it then make it false as true will prevent your shared object from being backed up. No location does not make any difference. 

-Nimit

Translate