Android network options
Last updated: October 28, 2024
This topic describes how to configure Android network options.
To display options that are applicable to your environment, select a version of the Android SDK:
Option type | Option name | Description | Default | Example |
---|---|---|---|---|
Certificates | options.certificates
|
Optionally supply certificates used for pinning. If you are using a reverse proxy you may need to provide your own certificates. iProov certificate pinning is enabled by default. Certificates should be passed as an array of Data objects, containing DER-encoded You can disable pinning by passing an empty array (but not in a production environment). |
AlphaSSL intermediate certificate |
|
Timeout | options.timeoutSecs
|
The WebSocket streaming timeout specified in seconds. To disable timeout, set to 0. | 10 | options.timeoutSecs=2
|
Certificates | options.network.certificates
|
Optionally supply certificates used for pinning. If you are using a reverse proxy you may need to provide your own certificates. iProov certificate pinning is enabled by default. Certificates should be passed as one of the following:
|
AlphaSSL intermediate certificate | options.network.certificates = arrayOf(R.raw.iproov__certificate)
|
Timeout | options.network.timeoutSecs
|
The streaming timeout specified in seconds. Caution should be taken when changing the default. |
10 | options.network.timeoutSecs = 0
|
Network path (socket IO) |
|
Specifies the path to use when streaming. Do not change unless instructed by iProov. |
"/socket.io/v2/"
|
options.network.path = <path>
|
Next step