Skip to main content

Password Login (LoginWithPassword) [Player Network SDK only]

[Player Network SDK only] Login via password.

Supported Platforms

Supports Android, iOS, Windows platform.

Function Definition

void LoginWithPassword(
string channel,
string account,
string password,
string phoneAreaCode,
string permissionList = "");

Input Parameters

ParametersTypeDescription
channelstringChannel for self-built accounts related to platform accounts, such as CustomAccount, EGame.
accountstringAccount, supporting email and phone number
passwordstringFor more information, see Password Guidelines.
phoneAreaCodestringPhone area code example "86" for China, leave empty if the account is an email.
permissionListstringList of permissions.Typically empty for self-built accounts.

Callback Handling

The callback handling interface is GUALoginResultObservers.The callback data structure is GUALoginResult.

The callback event is LoginResultEvents. The callback ID is GUA_ACCOUNT_LOGIN.

Code Example

UnionAdapterAPI.GetAccountService().LoginWithPassword("WeChat", "account", "password", "86");