Can Someone Put Together A Sample For User Reg And Login... Please

You would only need to use the the CC_Access_Key/Secret_Key in main.lua when you call the init() function(s).  For what Dave did above, calling the gameNetwork.init() wasn’t necessary.  You only need that for using our UI for showing leaderboards and such (but it handles logins too).

You can delay the coronaCloud.loginAPI() call until after you’ve captured the required information.  As far as the authToken, it doesn’t need to be global.  After you call loginAPI() it will set it for you as part of the coronaCloud object.  If you choose to save the authToken for future restarts without having to login in, you would simply set it on re-start:

[lua]

    coronaCloud.authToken = “yoursavedauthtoken”

[/lua]

after you call coronaCloud.init()

Thanks Rob

I think I have enough info to start to put it together this weekend.

One issue… I can’t seem to find corona-cloud-core.lua?

I’m running v1072 windows…

See the Leaderboard/Achievement Guide.  The link to the github repository are near the top of the guide.

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

doh

I read that a few days and forgot.

Thanks Rob

I have included hotseat multiplayer for my game, for times you don’t or can’t use the internet.

In my menu.lua file, the player chooses internet or hotseat gameplay.

I don’t want to initiate corona cloud when it’s not needed, in the case that the player chooses hotseat.

I’m wondering if I have to include the corona cloud init in my main.lua, or if it would be doable to only call that in the menu.lua file after the player chooses internet game play?

You can include it when you need it.

user login and registration is working  :)

now, I need to create a game lobby “room”

I think I’ll be able to get profile and news loaded, but I want to create a general waiting room that would list all connected users, and also be a chat room.

The general chat would want to be available all the time so it would need to persist beyond any particular user…

From there, I need to create a list of pending games, as well as a way for users to create or join a pending game.

Any examples or advice would be a great help.

So, I set everything up for Corona Cloud push notification and when I try to broadcast a message I get that  “No devices are registered for this game”… even though the device is registered, Access_Key and CC_Secret_Key are correct and when launching the App, it promoted a popup for allowing notification and set it to “allow”… 

I used the code Dave provided above and I followed the certificate tutorial and generated a pem file. 

What might be the cause of this issue? I even tried doing the whole thing again but no luck…

Hi mustafamsy, could you please try something for me. On the Portal, please set the unused Push mechanism to ‘Status = Disabled’ and try again.

Thanks

-Mohamed

Mohamed, 

I tried what you did but still no luck. The documentation is not clear, any ETA for a sample? I will really help a lot! 

Mustafa

Mohamed, 

I tried what you did but still no luck. The documentation is not clear, any ETA for a sample? I will really help a lot! 

Mustafa