Skip to main content

Push Notifications

Gameball Flutter 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 (Firebase example)

Huawei Devices

Call initializeCustomer after login/registration with the latest token to keep notifications working across devices.