{"_id":"cordova-plugin-game-center-remove-playerid","_rev":"73-6cca5a56cc79c96a5e9f14935052548f","name":"cordova-plugin-game-center-remove-playerid","dist-tags":{"latest":"0.4.40"},"versions":{"0.4.2":{"name":"cordova-plugin-game-center-remove-playerid","version":"0.4.2","keywords":["cordova","game","game center","gamecenter","leaderboard","player","achievements","ecosystem:cordova","cordova-ios"],"author":{"url":"https://madebyleon.app/","name":"Brian Leon Smith","email":"hello@brianleonsmith.com"},"license":"MIT","_id":"cordova-plugin-game-center-remove-playerid@0.4.2","maintainers":[{"name":"brianleonsmith","email":"hello@brianleonsmith.com"}],"homepage":"https://github.com/BrianLeonSmith/cordova-plugin-game-center-remove-playerid#readme","bugs":{"url":"https://github.com/BrianLeonSmith/cordova-plugin-game-center-remove-playerid/issues"},"dist":{"shasum":"7689755324fb8e9ddbf8f42661ccd69fdeec091f","tarball":"https://registry.npmjs.org/cordova-plugin-game-center-remove-playerid/-/cordova-plugin-game-center-remove-playerid-0.4.2.tgz","fileCount":7,"integrity":"sha512-x5KPr+CdLVPWFW6mECqkVvcRgf5jVDTvSgtf+/Ej2s1aVRaO4PpUCCTkTfz+v3+IyS8cAHK3Um7NcOI4wD3cJA==","signatures":[{"sig":"MEYCIQDgPzuJEkmmgRbeJ3RYPQjyN9KsN+4Jw+6Ou9uujv37xgIhAP3J6QWdfwBIx6+R/iD1KKNAOMOrwUJMgvi8fx3T2sNP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19245},"cordova":{"id":"cordova-plugin-game-center-remove-playerid","platforms":["ios"]},"engines":[{"name":"cordova","version":">=3.0.0"}],"gitHead":"468891f2a6e6978e426937876e55732daa60607f","_npmUser":{"name":"brianleonsmith","email":"hello@brianleonsmith.com"},"repository":{"url":"git+https://github.com/BrianLeonSmith/cordova-plugin-game-center-remove-playerid.git","type":"git"},"_npmVersion":"10.8.1","description":"Cordova Game Center Plugin to utilise the iOS Game Center in your app. There is currently support for authentication, submitting a score to a leaderboard, displaying a native leaderboard and achievements.","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cordova-plugin-game-center-remove-playerid_0.4.2_1736522825743_0.5745779294021218","host":"s3://npm-registry-packages-npm-production"}},"0.4.3":{"name":"cordova-plugin-game-center-remove-playerid","version":"0.4.3","keywords":["cordova","game","game center","gamecenter","leaderboard","player","achievements","ecosystem:cordova","cordova-ios"],"author":{"url":"https://madebyleon.app/","name":"Brian Leon Smith","email":"hello@brianleonsmith.com"},"license":"MIT","_id":"cordova-plugin-game-center-remove-playerid@0.4.3","maintainers":[{"name":"brianleonsmith","email":"hello@brianleonsmith.com"}],"homepage":"https://github.com/BrianLeonSmith/cordova-plugin-game-center-remove-playerid#readme","bugs":{"url":"https://github.com/BrianLeonSmith/cordova-plugin-game-center-remove-playerid/issues"},"dist":{"shasum":"9056d953c2fe7fe419ae9024c08563b779d5f447","tarball":"https://registry.npmjs.org/cordova-plugin-game-center-remove-playerid/-/cordova-plugin-game-center-remove-playerid-0.4.3.tgz","fileCount":7,"integrity":"sha512-1C7gjdMaFxhbVRkJRVXx1sh1SSkk8doCFN41b3PEzrga0irrFAkNgEDEdySZ/tLzEGXf3E41SvlgThNP9nrlIQ==","signatures":[{"sig":"MEUCIBLWErEVKCSoffyTJoJjusq4HJwsomMyt5HQ92jjC8K3AiEAlTCWrlusKLF3usyBhgMS2Kz5vqDL26imc01nzxp24uI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19254},"cordova":{"id":"cordova-plugin-game-center-remove-playerid","platforms":["ios"]},"engines":{"cordovaDependencies":{"0.0.1":{"cordova":">=3.0.0"}}},"gitHead":"df4a1a788c633f88082e0df6cc1d72246cb09442","_npmUser":{"name":"brianleonsmith","email":"hello@brianleonsmith.com"},"repository":{"url":"git+https://github.com/BrianLeonSmith/cordova-plugin-game-center-remove-playerid.git","type":"git"},"_npmVersion":"10.8.1","description":"Cordova Game Center Plugin to utilise the iOS Game Center in your app. There is currently support for authentication, submitting a score to a leaderboard, displaying a native leaderboard and achievements.","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cordova-plugin-game-center-remove-playerid_0.4.3_1737057869461_0.4945142544306569","host":"s3://npm-registry-packages-npm-production"}},"0.4.39":{"name":"cordova-plugin-game-center-remove-playerid","version":"0.4.39","keywords":["cordova","game","game center","gamecenter","leaderboard","player","achievements","ecosystem:cordova","cordova-ios"],"author":{"url":"https://madebyleon.app/","name":"Brian Leon Smith","email":"hello@brianleonsmith.com"},"license":"MIT","_id":"cordova-plugin-game-center-remove-playerid@0.4.39","maintainers":[{"name":"brianleonsmith","email":"hello@brianleonsmith.com"}],"homepage":"https://github.com/BrianLeonSmith/cordova-plugin-game-center-remove-playerid#readme","bugs":{"url":"https://github.com/BrianLeonSmith/cordova-plugin-game-center-remove-playerid/issues"},"dist":{"shasum":"e5acd7527d9eefaa3b60601f385b5ceeba000c11","tarball":"https://registry.npmjs.org/cordova-plugin-game-center-remove-playerid/-/cordova-plugin-game-center-remove-playerid-0.4.39.tgz","fileCount":7,"integrity":"sha512-7VyYUdv43s0dAeTeHaLd4R3naf5pD5/dK0RDVTEZ4sQHPISzbZ/h3taYTbl2P28qLVzNOzBIbjfE6JiWitj28w==","signatures":[{"sig":"MEQCIFzgpFR9bC40y/gOTToz+Ee4YTJW6wvpD1UA7yxsQ4FJAiBNh1nFgDuv5DWQqR5IDjaCBtzKjZgn/pBPPZIi6pqhDA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18511},"cordova":{"id":"cordova-plugin-game-center-remove-playerid","platforms":["ios"]},"gitHead":"c2633e347928a3c03da7eab95ff1856f2149c018","_npmUser":{"name":"brianleonsmith","email":"hello@brianleonsmith.com"},"repository":{"url":"git+https://github.com/BrianLeonSmith/cordova-plugin-game-center-remove-playerid.git","type":"git"},"_npmVersion":"10.8.1","description":"Cordova Game Center Plugin to utilise the iOS Game Center in your app. There is currently support for authentication, submitting a score to a leaderboard, displaying a native leaderboard and achievements.","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cordova-plugin-game-center-remove-playerid_0.4.39_1737731106438_0.3489867871167114","host":"s3://npm-registry-packages-npm-production"}},"0.4.40":{"name":"cordova-plugin-game-center-remove-playerid","version":"0.4.40","author":{"name":"Brian Leon Smith","email":"hello@brianleonsmith.com","url":"https://madebyleon.app/"},"description":"Cordova Game Center Plugin to utilise the iOS Game Center in your app. There is currently support for authentication, submitting a score to a leaderboard, displaying a native leaderboard and achievements.","cordova":{"id":"cordova-plugin-game-center-remove-playerid","platforms":["ios"]},"repository":{"type":"git","url":"git+https://github.com/BrianLeonSmith/cordova-plugin-game-center-remove-playerid.git"},"keywords":["cordova","game","game center","gamecenter","leaderboard","player","achievements","ecosystem:cordova","cordova-ios"],"license":"MIT","bugs":{"url":"https://github.com/BrianLeonSmith/cordova-plugin-game-center-remove-playerid/issues"},"homepage":"https://github.com/BrianLeonSmith/cordova-plugin-game-center-remove-playerid#readme","_id":"cordova-plugin-game-center-remove-playerid@0.4.40","gitHead":"c2633e347928a3c03da7eab95ff1856f2149c018","_nodeVersion":"22.2.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-AEAWucYPkBKrzPjq4cj3akglMLmyvYgxLS/cfyDteaxIuQQeOZv+FRz4l42Y4Dmlky50HL21mZ/Z8gEtzfTGOA==","shasum":"ed594316bf32e59f8e75fdc0f84ddf8f9113fca9","tarball":"https://registry.npmjs.org/cordova-plugin-game-center-remove-playerid/-/cordova-plugin-game-center-remove-playerid-0.4.40.tgz","fileCount":7,"unpackedSize":18805,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICjGM+5eHjMBN/WLXxRJ7A6rEu4MJ8+dEbiJw8FSkEMyAiEAslS31M0WIM6TtATuwz9zE4/QNYShqiChfO9UBJ0tAIQ="}]},"_npmUser":{"name":"brianleonsmith","email":"hello@brianleonsmith.com"},"directories":{},"maintainers":[{"name":"brianleonsmith","email":"hello@brianleonsmith.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cordova-plugin-game-center-remove-playerid_0.4.40_1738415152836_0.7256525397280675"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-10T15:27:05.742Z","modified":"2025-02-01T13:05:53.259Z","0.4.2":"2025-01-10T15:27:05.934Z","0.4.3":"2025-01-16T20:04:29.643Z","0.4.4":"2025-01-16T20:52:19.025Z","0.4.5":"2025-01-16T21:17:50.305Z","0.4.6":"2025-01-17T10:22:09.692Z","0.4.7":"2025-01-17T11:31:13.228Z","0.4.8":"2025-01-17T12:28:33.452Z","0.4.9":"2025-01-17T12:38:45.417Z","0.4.10":"2025-01-17T13:58:46.841Z","0.4.11":"2025-01-20T08:59:32.353Z","0.4.12":"2025-01-20T09:06:13.656Z","0.4.13":"2025-01-20T13:29:51.522Z","0.4.14":"2025-01-20T13:59:50.673Z","0.4.15":"2025-01-20T14:02:52.490Z","0.4.16":"2025-01-20T14:10:21.372Z","0.4.17":"2025-01-20T14:13:26.611Z","0.4.18":"2025-01-20T14:26:17.491Z","0.4.19":"2025-01-21T08:50:13.238Z","0.4.20":"2025-01-21T09:24:22.584Z","0.4.21":"2025-01-21T13:38:04.684Z","0.4.22":"2025-01-21T13:45:10.903Z","0.4.23":"2025-01-21T13:50:56.890Z","0.4.24":"2025-01-21T13:54:41.509Z","0.4.25":"2025-01-21T13:57:19.417Z","0.4.26":"2025-01-21T14:03:38.849Z","0.4.27":"2025-01-21T14:07:23.328Z","0.4.28":"2025-01-21T14:12:05.090Z","0.4.29":"2025-01-21T14:24:03.884Z","0.4.30":"2025-01-21T14:27:25.354Z","0.4.31":"2025-01-21T14:35:35.327Z","0.4.32":"2025-01-21T14:38:36.638Z","0.4.33":"2025-01-21T14:42:57.092Z","0.4.34":"2025-01-21T14:57:43.275Z","0.4.35":"2025-01-21T15:00:09.484Z","0.4.36":"2025-01-21T15:07:29.670Z","0.4.37":"2025-01-21T15:23:12.064Z","0.4.38":"2025-01-21T15:33:02.613Z","0.4.39":"2025-01-24T15:05:06.632Z","0.4.40":"2025-02-01T13:05:53.059Z"},"bugs":{"url":"https://github.com/BrianLeonSmith/cordova-plugin-game-center-remove-playerid/issues"},"author":{"name":"Brian Leon Smith","email":"hello@brianleonsmith.com","url":"https://madebyleon.app/"},"license":"MIT","homepage":"https://github.com/BrianLeonSmith/cordova-plugin-game-center-remove-playerid#readme","keywords":["cordova","game","game center","gamecenter","leaderboard","player","achievements","ecosystem:cordova","cordova-ios"],"repository":{"type":"git","url":"git+https://github.com/BrianLeonSmith/cordova-plugin-game-center-remove-playerid.git"},"description":"Cordova Game Center Plugin to utilise the iOS Game Center in your app. There is currently support for authentication, submitting a score to a leaderboard, displaying a native leaderboard and achievements.","maintainers":[{"name":"brianleonsmith","email":"hello@brianleonsmith.com"}],"readme":"## Game Center Plugin for Apache Cordova\r\n\r\n#### ⚠️ Please note this is a work in progress and may not work as intended\r\n\r\nThis plugin allows developers to utilise the iOS Game Center in their Cordova app.\r\n\r\n### Before you start\r\n\r\nAdding Game Center support requires more than simple coding changes. To create a Game Center-aware game, you need to understand these basics before you begin writing code. The full outline of all the Game Center concepts and impacts can be viewed [here](https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/GameKit_Guide/GameCenterOverview/GameCenterOverview.html).\r\n\r\n## Install\r\n\r\n#### Latest published version on npm (with Cordova CLI >= 6.0.0)\r\n\r\n```\r\ncordova plugin add cordova-plugin-game-center-remove-playerid\r\n```\r\n\r\n#### Latest version from GitHub\r\n\r\n```\r\ncordova plugin add https://github.com/BrianLeonSmith/cordova-plugin-game-center-remove-playerid.git\r\n```\r\n\r\nYou **do not** need to reference any JavaScript, the Cordova plugin architecture will add a GameCenter object to your root automatically when you build. It will also automatically add the GameKit framework dependency.\r\n\r\n## Usage\r\n\r\n### Authentication\r\n\r\nYou should do this as soon as your deviceready event has been fired. The plug handles the various auth scenarios for you.\r\n\r\n```\r\nvar successCallback = (success) => {\r\n    alert(\"Success: \" + JSON.stringify(success));\r\n};\r\n\r\nvar failureCallback = (err) => {\r\n    alert(\"Error: \" + err);\r\n};\r\n\r\nGameCenter.auth(successCallback, failureCallback);\r\n```\r\n\r\n### Fetch Player Image\r\n\r\nLoads the current player's photo. Automatically cached on first retrieval.\r\n\r\n```\r\nvar successCallback = (path) => {\r\n    alert(\"Success: \" + path);\r\n};\r\n\r\nGameCenter.getPlayerImage(successCallback, failureCallback);\r\n```\r\n\r\n### Submit Score\r\n\r\nEnsure you have had a successful callback from `GameCenter.auth()` first before attempting to submit a score. You should also have set up your leaderboard(s) in iTunes connect and use the leaderboard identifier assigned there as the leaderboardId.\r\n\r\n```\r\nvar data = {\r\n    score: 10,\r\n    leaderboardId: \"board1\"\r\n};\r\n\r\nGameCenter.submitScore(successCallback, failureCallback, data);\r\n```\r\n\r\n### Show leaderboard\r\n\r\nLaunches the native Game Center leaderboard view controller for a leaderboard.\r\n\r\n```\r\nvar data = {\r\n    leaderboardId: \"board1\"\r\n};\r\n\r\nGameCenter.showLeaderboard(successCallback, failureCallback, data);\r\n```\r\n\r\n### Report achievement\r\n\r\nReports an achievement to the game center:\r\n\r\n```\r\nvar data = {\r\n\tachievementId: \"MyAchievementName\",\r\n\tpercent: \"100\"\r\n};\r\n\r\nGameCenter.reportAchievement(successCallback, failureCallback, data);\r\n```\r\n\r\n### Reset achievements\r\n\r\nResets the user's achievements and leaderboard.\r\n\r\n```\r\nGameCenter.resetAchievements(successCallback, failureCallback);\r\n```\r\n\r\n### Fetch achievements\r\n\r\nFetches the user's achievements from the game center:\r\n\r\n```\r\nvar successCallback = (results) => {\r\n\tif (results) {\r\n    \tfor (var i = 0; i < results.length; i += 1) {\r\n            results[i].identifier\r\n            results[i].percentComplete\r\n            results[i].completed\r\n            results[i].lastReportedDate\r\n            results[i].showsCompletionBanner\r\n        }\r\n    }\r\n}\r\n\r\nGameCenter.getAchievements(successCallback, failureCallback);\r\n\r\n```\r\n\r\n## Platforms\r\n\r\n- ios\r\n","readmeFilename":"README.md"}