Skip to content

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

Olga Koroleva edited this page Oct 20, 2022 · 1 revision

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

var installation = await InfobipMobilemessaging.fetchInstallation();
print('Push Registration Id: ' + installation.getPushRegistrationId().toString());

This identifier:

  • matches one to one with FCM/APNs cloud token of the particular application installation
  • is only available after registrationUpdated event
  • does not change for the whole lifetime of the application installation