Android

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

Java
Kotlin
Java
InLoco.getInstallationId(context, new InLocoListener<String>() {
@Override
public void onResult(final Result<String> result) {
if (result.isSuccessful()) {
String installationId = result.getResult();
// Sends installationId to the server
}
}
});
Kotlin
InLoco.getInstallationId(context) { result ->
if (result.isSuccessful) {
val installationId = result.result
// Sends installationId to the server
}
}

Don't you know what is an Installation ID?

‚Äč