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
Handle Token Refresh
Push tokens can change. Re-register the updated token when your provider notifies you:Huawei Devices
Registering a new token adds it to the customer’s devices. Tokens registered earlier keep receiving notifications until Firebase or Huawei reports them as invalid. Gameball has no way to remove a token, so a device keeps receiving the customer’s notifications after the customer logs out.