Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Incognia-Kotlin.kt
Incognia.getInstallationId(context) { result ->
if (result.isSuccessful) {
val installationId = result.result
// HttpURLConnection
httpUrlConnection.setRequestProperty("Incognia-Installation-ID", installationId)
}
// Send the request with the installationId to your backend server
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment