This step links all Gameball activity to the correct player profile.
1. Basic Customer Initialization
UseinitializeCustomer whenever a user logs in, registers, or updates their information.
Swift (Completion Handler)
Swift(Asyn/Await)
2. Request Parameters
String
required
Permanent unique identifier for the customer. Should never change.
String
Customer email address.
String
Mobile number formatted with country code.
String
Push notification token (Firebase FCM or Huawei Push Kit).
PushProvider
Push provider (
.firebase or .huawei).CustomerAttributes
Structured attributes such as name, DOB, language, and custom fields.
String
Referral code used when registering a referred customer.
Bool
Indicates if this user is a guest session (default: false).
String
Optional override for global session token for this request only. Required in upcoming SDK v4.
3. Validation Rules
InitializeCustomerRequest validates:- customerId cannot be empty
- If pushProvider is provided → deviceToken is required
- If deviceToken is provided → pushProvider is required