- The RegisterDevice method is used to register the customer device on the Contis platform.
- When the customer attempts to register the device, Contis will send an OTP (see OTP delivery section). The customer enters the OTP on the SDK OTP UI screen. This enables the device to be registered.
- The SDK will return a failed response when the ContactIdentifier and ProductKey combination does not match.
RegisterDevice method parameters
NAME | TYPE | CONSTRAINTS | REQUIRED? | DESCRIPTION |
---|---|---|---|---|
Context | Activity UIViewController |
N/A This is a view object of the current view. | Mandatory | This field is required to open the SCA screen. |
ContactIdentifier | string |
Integer value between 1 and 2,147,483,647 Characters allowed: 0-9 |
Mandatory | The customer device will register against this Identifier. This is ContactID in Contis system. |
PushNotificationToken | string | Up to 250 characters | Optional |
This field is required if the client initiates SCA and the client has been provided the push details to send to mobile device. This field contains a unique autogenerated token. |
Theme |
SDKTheme (Android) SDKTheme(iOS) |
N/A | Mandatory | This parameter contains the required colour, font, text size of the button, label, etc. This needs to be finalised once the design is received. |
ProductKey | string | Up to 50 characters | Mandatory |
This is the unique key generated by Contis for each client using the SDK. Only a valid key will initiate the SDK, otherwise it will return an error. This field contains a unique autogenerated ID (GUID). |
PrivateKey | string | Up to 2048 characters | Mandatory |
This is a private PKI key generated by the client. It is used to call the Contis API from the SDK. This field contains a unique autogenerated private key for PKI. |
PublicKey | string | Up to 2048 characters | Mandatory |
This is a public PKI key generated by Contis. It is used to call the Contis API from the SDK. This field contains a unique autogenerated private key for PKI. |
ContisListener | ContisListener | N/A | Mandatory | This parameter is used to bind success or failure events. |