-
Notifications
You must be signed in to change notification settings - Fork 2
PushRegistrationService
Lejla Solak edited this page Sep 12, 2024
·
1 revision
Update device token used for receiving push notifications from Infobip's SDK.
-
context
:Context
- An instance of theandroid.content.Context
class. -
newToken
:String
- The new FCM token for the device.
N/A
class FcmService extends FirebaseMessagingService {
@Override
public void onNewToken(String token) {
// Forward the new FCM token to Infobip's SDK
PushRegistrationService.updatePushRegistration(getApplicationContext(), token);
// Additional handling of the token, if necessary
}
}