Created
June 16, 2021 19:58
-
-
Save nataliaconde/b2e9ef9324697ec138529829988c36b4 to your computer and use it in GitHub Desktop.
Incognia-Java.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Incognia.getInstallationId(context, new IncogniaListener<String>() { | |
@Override | |
public void onResult(final Result<String> result) { | |
if (result.isSuccessful()) { | |
String installationId = result.getResult(); | |
// 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