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?