-
Notifications
You must be signed in to change notification settings - Fork 2
PushRegistrationService
Lejla Solak edited this page Feb 10, 2025
·
2 revisions
Update device token used for receiving push notifications from Infobip's SDK.
-
context
:Context
- An instance of theandroid.content.Context
class, which provides access to system services, resources, and application-specific data in an Android application. -
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
}
}