Skip to main content
July 4, 2013
Question

PreventBackup does not works

  • July 4, 2013
  • 1 reply
  • 1197 views

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 has been closed for replies.

1 reply

Adobe Employee
July 4, 2013

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

July 4, 2013

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?

Adobe Employee
July 4, 2013

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