Skip to main content
Version: v5


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

InLoco.getInstallationId(context) { result ->  if (result.isSuccessful) {    val installationId = result.result        // Setting the installationId as a Header        // OkHttp    requestBuilder.header("Incognia-Installation-ID", installationId)        // HttpURLConnection    httpUrlConnection.setRequestProperty(      "Incognia-Installation-ID",       installationId    )  }  
  // Send the request with the installationId to your backend server}

Don't know what an Installation ID is?