1.1.1 • Published 2 years ago

cordova-plugin-apple-game-center v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Apple Game Center for Ionic and Cordova apps.

You can login and hame achievements.


Table of Contents

State of Development


Install

npm i cordova-plugin-apple-game-center --save

Usage

This library is Promise style, you can use .then or await to fetch results

Sign In

import * as GameCenter from 'cordova-plugin-apple-game-center';
await GameCenter.login();

Achievements

Unlock achievement

await GameCenter.unlockAchievement({ id: 'your-id' });

Show achievements

This method is show native Google Games UI

await GameCenter.showAchievements();

Feel free to make your PRs for code structure or new functions