Associate profile
To associate new profiles you can either use a Deeplink or scan a QR Code.
Client requirements
Using link
- iOS (Swift)
- Android (Java)
let url = URL(string: "https://....")
trustfactorClient.associateApplicationProfile(using: .deeplink(url)) { result, correlationId in
switch result {
case .success(let associationResult):
// handle result
case .failure(let error):
// handle errors
}
}
Uri uri = Uri.parse("https://....");
trustfactorClient.associateApplicationProfileV2(uri: <Uri>, new Result<TFProfileAssociationResult, Error>() {
@Override
public void onSuccess(TFProfileAssociationResult result) {
// result type: TFProfileAssociationResult
}
@Override
public void onFailure(Error error) {
// handle errors
}
});
Using an association code
- iOS (Swift)
- Android (Java)
let code = "....."
trustfactorClient.associateApplicationProfile(using: .code(code)) { result, correlationId in
switch result {
case .success(let associationResult):
// value is a boolean we can ignore
case .failure(let error):
// handle errors
}
}
String code = "<>";
trustfactorClient.associateApplicationProfile(code: <String>, new Result<TFProfileAssociationResult, Error>() {
@Override
public void onSuccess(TFProfileAssociationResult result) {
// result type: TFProfileAssociationResult
}
@Override
public void onFailure(Error error) {
// handle errors
}
});