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
Permanent unique identifier for the customer. Should never change.
Customer email address.
Mobile number formatted with country code.
Push notification token (Firebase FCM or Huawei Push Kit).
Push provider (
.firebase or .huawei).Structured attributes such as name, DOB, language, and custom fields.
Referral code used when registering a referred customer.
Indicates if this user is a guest session (default: false).
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