Game.getUserProfile
Functional API
getGameCenterGameProfileYou can use the same feature with it as well.
Feature description
Get Toss Game Center profile information. If there is no profile statusCodeis 'PROFILE_NOT_FOUND'a response is returned. If there is a profile, the nickname and profile image URL are provided together.
Toss app Android/iOS 5.221.0 It can be used on versions above that. In environments where a bridge response cannot be received, undefinedmay be returned.
Type
Game.getUserProfile(): Promise<GameCenterGameProfileResponse | undefined>;Params
None
Response
type GameCenterGameProfileResponse =
| { statusCode: "PROFILE_NOT_FOUND" }
| {
statusCode: "SUCCESS";
nickname: string;
profileImageUri: string;
};Example code
Was this helpful?