initialize

suspend fun initialize(context: Context, platformConfiguration: PlatformConfiguration, loggerConfiguration: Logger.LoggerConfiguration? = null)

Initialize the MobileCredentialVerifier SDK.

Parameters

context

Android Context. Not retained.

platformConfiguration

Configuration parameters for making requests to your MATTR VII tenant.

loggerConfiguration

Optional parameter to config the logger behavior.

On the first initialization, the app is registered with the MATTR VII tenant defined in platformConfiguration. On subsequent initializations, the existing license is renewed if necessary. Network access is required when registration or license renewal is performed.

The SDK uses Hardware key attestation to help prove requests come from legitimate instances of your app.

Throws

If the SDK API is called before the SDK is initialized.

If something wrong happens during storage initialization.

If the SDK license is invalid or has expired. Re-initialize the SDK to obtain a new license.

If the verifier app instance cannot be registered with the configured MATTR VII tenant during initialization.