What should be the correct way to login, post score, fetch leader board then?
Here is what I have:
To login:
- On the start page, check if Clay.io is ready -> check if Clayio.LoggedIn = 0 -> Show Prompt Login.
- On the submit score page:
+ If the player touches the submit score text -> submit score.
I found out that if the player did not log in in the Start page, the Login window will show up here. That's fine. But it does not seem to remember the login info. If I logged in, then press the submit button again, then the login will still appear.
- To fetch the leader board:
+ on start of layout -> fetch leaderboard.
+ when scores are fetched -> display.
This only works when the player signed in from the start page, not from the Submit page. Is it required to log in to see the leader board?