I am getting an iCloud docListener event.isError = true in an app that runs in OS X.
All provisioning profiles etc. appear ok as an XCode app that correctly runs accesses the same iCloud container defined in the provisioning profile.
My code:
local iCloud = require( "plugin.iCloud" ) local function docListener( event ) print("####JTD idocListener called" ) if event.isError then print( "####JTD iCloud file storage is not available!" ) else print( "####JTD iCloud file storage is available!" ) local id = iCloud.identityToken() if id ~= nil then print ("####JTD iCloud.identityToken:" .. id) else print ("####JTD iCloud.identityToken:" .. "nil") end end end iCloud.docInit( { onComplete=docListener } ) print("####JTD iCLoudHandler loaded" )
My console:
Platform: iMac12,1 / x86_64 / 10.11.3 / AMD Radeon HD 6750M OpenGL Engine / 2.1 ATI-1.40.16 / 2016.2830 / en-US | IT | en_IT | en
####JTD iCLoudHandler loaded
####JTD idocListener called
####JTD iCloud file storage is not available!
My settings are:
plugins = { ["plugin.iCloud"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=false, appletvos=false, osx=true } }, }, osx = { iCloud = true, entitlements = { }, },
Any hint ?