cordova-plugin-apple-game-center

1.1.1 • Public • Published

Apple Game Center for Ionic and Cordova apps.

You can login and hame achievements.


Table of Contents

State of Development

  • [x]
  • [x]
  • [ ]
  • [ ]
  • [ ]
  • [ ]
  • [ ]

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.10latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.10
1.1.00
1.0.11
1.0.00

Package Sidebar

Install

npm i cordova-plugin-apple-game-center

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

19.1 kB

Total Files

10

Last publish

Collaborators

  • maximnara