Please document Corona Cloud API - finally

I am quite experiences with lua and corona but i completly failed with corona cloud. Guys there is even no sample app inside samples…

To the point, my errors are:

  1. Corona Cloud: login response: Facebook ID and Access Token do not match.

  2. User authentication token is not present in the request parameters

  3. ERROR: Could not load provider (corona) due to the following reason: …rk-corona/ios/…/shared/coronaCloudConfiguration.lua:47: ERROR: one or more required files do not exist in the cloud_assets directory.

Cannot login into Cloud, cannot post score, cannot run dashboard. I just followed

https://github.com/coronalabs/gameNetwork_sample

http://docs.coronalabs.com/guide/cloud/setup/index.html

[lua]
local CC_Access_Key = “123”
local CC_Secret_Key = “123”

local authListener = function( event )
    if event.type == “getProfile” then
        print( "The user profile: ", event.response )
    elseif event.type == “facebookLoggedIn” then
        cloud.getProfile()
        print( "The user loged using FB: ", event.response )
    end
end

local leaderboardsListener = function( event )
    if ( event.type == “ScoresSubmitted” ) then
        print( “Success”, “Your score was successfully submitted online.”)
    end
end

function Bladko.runMeNow()
    
    FB.logMeNow() – this is taken from  facebook.login( FB.appId, listener,  {“publish_stream” }  )
    
    cloud.debugEnabled = true
    cloud.init( CC_Access_Key, CC_Secret_Key, authListener )
    
    – set listeners
    cloud.leaderboards.setListener( leaderboardsListener )
    
    local function logMeNow()
        
        local loginParams = {}
        loginParams.type = “facebook”
        loginParams.facebookId = “123123”
        loginParams.accessToken = FB.token – this is taken from  facebook.login( FB.appId, listener,  {“publish_stream” }  )
        
        – login to the cloud
        cloud.login( loginParams )
    end
    
    – wait for FB login
    timer.performWithDelay(3000, logMeNow)
end

function Bladko.runMeNow2()
    
    – submit analytics event
    local aParams = {}
    aParams.event_type = “Session”
    aParams.message = “The user logged In”
    aParams.name = “logIn”
    
    – send the event
    cloud.analytics.submitEvent( aParams )
end

function Bladko.runMeNow3()
    
    local leaderboardID = “1234” --leaderboard ID
    cloud.leaderboards.submitHighScore( leaderboardID, 1900 )
end

function Bladko.runMeNow4()
    local params = { accessKey = CC_Access_Key, secretKey = CC_Secret_Key, }
    gameNetwork.init( “corona”, params )
    gameNetwork.show( “dashboard” )
end

function Bladko.runMeNow5()
    local leaderboardID = “1234” --leaderboard ID
    cloud.leaderboards.getScores( leaderboardID )
end[/lua]

Tom

Yes. Roadmap says DONE but there is still some do’ing ahead… ;) 

I too look forward to updated samples and documentation. 

Roadmap ? this is rather pathmap :stuck_out_tongue: just joking of course :stuck_out_tongue:

Please provide examples as other modules, most of them can be worked on very fast without errors. Corona Cloud does not, yet.

For example does gameNetwork contains all resources for dashboard or do we have to use some graphics / code files from git hub other then cloud file itself ?

Tom

I am also struggling with Corona Cloud, I just can’t get the registration/login to work. I can only login using an email address that I have verified throught the automatic email that gets sent. For every other email address, I get a successful registration in that no errors are returned, but I get an invalid username/password when I try and login using the same details

Cheers

Dean

@Dean, make sure the email address has all lowercase letters otherwise it won’t work.

Yes. Roadmap says DONE but there is still some do’ing ahead… ;) 

I too look forward to updated samples and documentation. 

Hi, thanks for the reply, I my email addresses are all lowercase tough. Have you got it working ok then? Because what I can’t seem to be is register a user using a ficticious email address and then login with those details (using the simulator)

I can login using my real email address, but I thought that was because I received a validation email from Corona Cloud and clicked on the confirmation URL

Cheers

Dean

Hi Dean,

If you can create an account and login with a real email you should be able to create fictitious ones. I have created many myself. My advice is to call it something extremely unique, I created a few with really generic test names that most people would probably think of, it looked like they were created successfully, but it wasn’t until I saw the console output that I realised the username or email had already been taken.

Hi guys

Thanks for your help, I have it working now. I forgot that the cloud library is an external file and I was using an old one which must have had some problems.

I downloaded the latest one from github and it’s working now

Many thanks

Dean

Roadmap ? this is rather pathmap :stuck_out_tongue: just joking of course :stuck_out_tongue:

Please provide examples as other modules, most of them can be worked on very fast without errors. Corona Cloud does not, yet.

For example does gameNetwork contains all resources for dashboard or do we have to use some graphics / code files from git hub other then cloud file itself ?

Tom

I am also struggling with Corona Cloud, I just can’t get the registration/login to work. I can only login using an email address that I have verified throught the automatic email that gets sent. For every other email address, I get a successful registration in that no errors are returned, but I get an invalid username/password when I try and login using the same details

Cheers

Dean

@Dean, make sure the email address has all lowercase letters otherwise it won’t work.

Hi, thanks for the reply, I my email addresses are all lowercase tough. Have you got it working ok then? Because what I can’t seem to be is register a user using a ficticious email address and then login with those details (using the simulator)

I can login using my real email address, but I thought that was because I received a validation email from Corona Cloud and clicked on the confirmation URL

Cheers

Dean

Hi Dean,

If you can create an account and login with a real email you should be able to create fictitious ones. I have created many myself. My advice is to call it something extremely unique, I created a few with really generic test names that most people would probably think of, it looked like they were created successfully, but it wasn’t until I saw the console output that I realised the username or email had already been taken.

Hi guys

Thanks for your help, I have it working now. I forgot that the cloud library is an external file and I was using an old one which must have had some problems.

I downloaded the latest one from github and it’s working now

Many thanks

Dean

I am happy that our problems with docs are solved now by removing Cloud service. How to heal broken arm ? Cut it off :wink:

Tom

I am happy that our problems with docs are solved now by removing Cloud service. How to heal broken arm ? Cut it off :wink:

Tom