Hi,
I was trying the new Corona Cloud service so I just tried some new API. I followed the instruction but when I try on my tablet (Android) It didn’t work, just a black screen. This is my code:
local CC\_Access\_Key = "MY\_ACCESS\_KEY" local CC\_Secret\_Key = "MY\_SECRET\_KEY" cloud = require ( "cloud" ) local currentAuthToken = "" local function authListener( event ) if ( event.type == "loggedIn" or event.type == "facebookLoggedIn" or event.type == "sessionLoggedIn" ) then if not ( event.error ) then currentAuthToken = cloud.authToken native.showAlert( "Login Successful!", "", {"OK"} ) else native.showAlert( "Login Error!", event.error, {"OK"} ) end elseif ( event.type == "registerUser" ) then if not ( event.error ) then else native.showAlert( "Registration Error!", event.error, {"OK"} ) end end end cloud.init( CC\_Access\_Key, CC\_Secret\_Key, authListener ) local params = { accessKey = CC\_Access\_Key, secretKey = CC\_Secret\_Key, } gameNetwork.init( "corona", params ) gameNetwork.show( "dashboard" )
How could I see what was the error? What’s wrong in my code?
Thank you a lot,
Andrea