getPlayerID static method

Future<String?> getPlayerID()

Get the current player's ID. On iOS/macOS the player ID is unique for your game but not other games.

Implementation

static Future<String?> getPlayerID() async {
  return await GamesServicesPlatform.instance.getPlayerID();
}