Push Notifications
Gameball React Native SDK supports registering push tokens for Firebase and Huawei devices. Pass the token and provider when initializing the customer.
Register the Push Token
deviceToken and pushProvider must be provided together. If one is set, the other is required.
Handle Token Refresh
Push tokens can change. Re-register the updated token when your provider notifies you:
Huawei Devices
Call initializeCustomer after login/registration with the latest token to keep notifications working.