Skip to content

Commit 751f6dd

Browse files
committed
Expose alias & displayName
1 parent 7f84f13 commit 751f6dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/gamecenter/game_center.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494
ret["type"] = "authentication";
9595
if (player.isAuthenticated) {
9696
ret["result"] = "ok";
97+
ret["alias"] = [player.alias UTF8String];
98+
ret["displayName"] = [player.displayName UTF8String];
9799

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

0 commit comments

Comments
 (0)