AppStore Game Center init not working...

I’m trying to access the Game Center like this:

in main.lua I’m requiring the gameNetwork, then I’m using the sample code to init the network… but when the init fails at the first time I’m not able to init it at all (after a while retrying). Only when I exit the game, close it and restart, reopen it in most cases the init is working… BUT why isn’t it when I try to init the network with a timer inside the game from time to time after failure? Why do I have to close the game and open it again to get access to Game Center?

Any help/ideas?

Hi @d.mach

Can you provide more specifics?  

What version of Corona are you running? 

Are you getting any errors?

I’m not sure why gameNetwork.init() would fail in the first place. 

You can also look at this tutorial: https://docs.coronalabs.com/tutorial/games/gameLeaderboards/index.html and verify you’re setting things up correctly.

Let me know what you’re seeing and lets see if we can get to the bottom of this.

Rob

Hi @d.mach,

I think the first thing to resolve is why “init” is failing (once, or ever). Once we resolve that, then the other pieces should fall into place.

Brent

Hi @d.mach

Can you provide more specifics?  

What version of Corona are you running? 

Are you getting any errors?

I’m not sure why gameNetwork.init() would fail in the first place. 

You can also look at this tutorial: https://docs.coronalabs.com/tutorial/games/gameLeaderboards/index.html and verify you’re setting things up correctly.

Let me know what you’re seeing and lets see if we can get to the bottom of this.

Rob

Hi @d.mach,

I think the first thing to resolve is why “init” is failing (once, or ever). Once we resolve that, then the other pieces should fall into place.

Brent