Hello guys,
I tried to implement iCloud backup in my app, but without success.
The code I’, using is the following:
errStr = native.showAlert( "Warning", "iCloud error", { "OK" } ) local results, errStr = native.getSync( "coinfile.txt", "myTable.json", "redcoinfile.txt", "scorefile.txt", { key = "iCloudBackup" } )
But, if I delete and reinstall my app, instead of getting the content of my iCloud backup, I get the native popup
containing the error “Warning, iCloud error”.
I have enabled iCloud in my app provisioning profile.
If I go to settings --> iCloud --> storage --> Manage Storage --> my Device
I can see that my apps settings have been stored on iCloud
Is there something else that I have to set up in order to have iCloud working in my app?
Thanks and best regards.