native.setSync not working?

Hi guys, using public build 3184

and trying to disable the sync for a certain file with iCloud. Im not sure if im doing this right or if there is a bug? iCloud is initialized properly as i can set and get values in the app using iCloud.set and iCloud.Get.

So on to the setSync,I basically have a file called SavedData.txt which i want to disable from getting synced. SavedData.txt exists in the documents directory.

Added the following lines in my code.

local iCloud = require( "plugin.iCloud" ) local results, errStr = native.setSync( "SavedData.txt", { iCloudBackup = false } )

results returns: true
errStr returns: nil

Now when i tap a button on my app to go to another of my apps page or my facebook/twitter page, eg an outbound link, and tapping the back button to go back to my app, it seems to get the first version of SavedData.txt from icloud (even though i set the iCloudBackup to false as above) which was created and replaces whats in documents directory. so any saved data after it was created gets wiped back to the original.

Can anyone confirm is setSync is working and if what im doing above is correct?

ok so i have been playing around with this a little, and heres what i found, when opening and saving the savedata file, i was doing so locally in the main.lua, then in the game.lua, settings.lua etc. so seemingly it only is enabling the setsync in the main file where i set the native.setSync, when i go to another scene, and i reload that savedata file, then close the app or open an external link, then go back to the app, it seems to revert back to the previous version of the savedata even though i had saved changes in that afterwards.

So i changed the way the savedata reads and writes to global, (i know this is not the best practice) but it seems to work fine, its not overwriting the current version, so at least this has given me something to go off.

ok so i have been playing around with this a little, and heres what i found, when opening and saving the savedata file, i was doing so locally in the main.lua, then in the game.lua, settings.lua etc. so seemingly it only is enabling the setsync in the main file where i set the native.setSync, when i go to another scene, and i reload that savedata file, then close the app or open an external link, then go back to the app, it seems to revert back to the previous version of the savedata even though i had saved changes in that afterwards.

So i changed the way the savedata reads and writes to global, (i know this is not the best practice) but it seems to work fine, its not overwriting the current version, so at least this has given me something to go off.