public static interface SendBird.RegisterPushTokenWithStatusHandler
SendBird.registerPushTokenForCurrentUser(String, RegisterPushTokenWithStatusHandler)
.Modifier and Type | Method and Description |
---|---|
void |
onRegistered(SendBird.PushTokenRegistrationStatus status,
SendBirdException e)
A callback for when push token is registered.
|
void onRegistered(SendBird.PushTokenRegistrationStatus status, SendBirdException e)
status
- The result of push token registration.
SendBird.PushTokenRegistrationStatus.PENDING
means SendBird.connect(String, ConnectHandler)
or SendBird.connect(String, String, ConnectHandler)
is required. After the connection, try SendBird.registerPushTokenForCurrentUser(String, RegisterPushTokenWithStatusHandler)
again with SendBird.getPendingPushToken()
for GCM,
or SendBird.registerPushTokenForCurrentUser(String, RegisterPushTokenWithStatusHandler)
with SendBird.HMS.getPendingPushToken()
for HMS.e
- null
if no error. Copyright © 2021, Sendbird or its affiliates. All rights reserved.
Report a bug or request a feature
For further developer documentation, see Chat SDK Documentation. That documentation contains more detailed descriptions, conceptual overviews, definitions of terms, and code examples.