Skip to main content
Version: v5

Installation ID

The Installation ID is a unique identifier that is automatically generated for each instance of the mobile app. It is used to reference a specific installation when interacting with the Incognia APIs.

important
Once generated, the Installation ID remains the same until the user re-installs the app or clears its data.

You should retrieve the Installation ID from the SDK and associate it with user metadata in order to be able to use the Incognia APIs correctly.

Obtaining the Installation ID#

The following code shows how to obtain the Installation ID using the Incognia SDK:

Incognia.getInstallationId(context) { result ->  if (result.isSuccessful) {    val installationId = result.result
    // Set the Installation ID as a header or in the body of the request  }  
  // Send the request with the installationId to your backend server}