Skip to content

Commit

Permalink
Merge pull request #33 from kdlee/expose_gkplayer
Browse files Browse the repository at this point in the history
Expose alias & displayName of GKPlayer
  • Loading branch information
naithar authored May 23, 2022
2 parents 7f84f13 + 751f6dd commit dd071ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/gamecenter/game_center.mm
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@
ret["type"] = "authentication";
if (player.isAuthenticated) {
ret["result"] = "ok";
ret["alias"] = [player.alias UTF8String];
ret["displayName"] = [player.displayName UTF8String];

if (@available(iOS 13, *)) {
ret["player_id"] = [player.teamPlayerID UTF8String];
Expand Down

0 comments on commit dd071ee

Please sign in to comment.