leecrossley / cordova-plugin-game-center

Cordova / PhoneGap Game Center Plugin for Apache Cordova >= 3.0.0
http://ilee.co.uk
78 stars 29 forks source link

How to auth? #30

Closed tryagains closed 9 years ago

tryagains commented 9 years ago

var successCallback = function (user) { alert(user.alias); // user.alias, user.playerID, user.displayName };

gamecenter.auth(successCallback, failureCallback);

Do we uncomment //user.alias, user.playerID, user.displayName? And do we replace the playerID/displayName/alias with something?

leecrossley commented 9 years ago

If your successCallback function is called, it means that auth has been successful. The commented properties are there to illustrate what values are available but you do not need to use these.