Skip to content

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

Željko Brcković edited this page May 17, 2023 · 2 revisions

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

MobileMessaging.fetchInstallation(function (installation) {
    // Here you can get pushRegistrationId with installation.pushRegistrationId
});
expand to see Ionic code

MobileMessaging.fetchInstallation().then(function (installation) {
    // Here you can get pushRegistrationId with installation.pushRegistrationId
});

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
Clone this wiki locally