Skip to content

How do I get Infobip's unique (push registration) ID?

Olga Koroleva edited this page Dec 20, 2021 · 4 revisions

In order to get Infobip's unique push registration identifier issued by the server you need to implement the following code:

val pushRegistrationId = MobileMessaging.getInstance(context).installation.pushRegistrationId
expand to see Java code

String pushRegistrationId = MobileMessaging.getInstance(Context).getInstallation().getPushRegistrationId();

This identifier:

  • matches one to one with FCM(HMS) cloud token of the particular application installation
  • is only available after REGISTRATION_CREATED event
  • does not change for the whole lifetime of the application installation
Clone this wiki locally