- A plugin to integrate Game Center in a Cordova iOS app/game.
- Please read Game Center Programming Guide and the iTunes Connect Developer Guide.
With Cordova CLI:
cordova plugin add https://github.com/Wizcorp/cordova-plugin-gamecenter
gameCenter.authenticate(Function success, Function failure);
gameCenter.showLeaderboard(String category, Function success, Function failure);
gameCenter.showAchievements(Function success, Function failure);
window.gameCenter.onshow = function() { console.log("onshow!" )}
window.gameCenter.onhide = function() { console.log("onhide!" )}
gameCenter.reportScore(String category, int score, Function success, Function failure);
gameCenter.reportAchievement(String category, Function success, Function failure);
** For a working example see the project in platforms/ios/
folder (remember to change your bundleId). **
I don't see my Leaderboard / Achievements in the popup!
Check you have configured your bundle id corectly.