Initiate Device Binding
Starts the device binding process by making a device registration request to the server.
Params
| Name | Type | Description |
|---|---|---|
| context | Context | The application context. |
| enterpriseId | String | The enterprise ID of the current user |
| authorization | String | Authentication header key (Shared while onboarding) |
| mobileNumber | String | Mobile number of the current user |
| bank | String | The bank identifier. Example: SHIVALIK, UNITY |
| callback | ApiUtils.Callback | Callback to handle the response. |
Sample
import com.falconfsauth.sdk.FalconSecureSDK;
import com.falconfsauth.sdk.Utils.ApiUtils;
FalconSecureSDK.initiateDeviceBinding(context, enterpriseId, authorizationKey, mobileNumber, bank, new ApiUtils.Callback<String>() {
@Override
public void onSuccess(String response, Integer responseCode) {
// response contains json string with the fields shown in Response table
// Handle success
}
@Override
public void onError(Exception e) {
// Handle error
}
});
Response
| Name | Type | Description |
|---|---|---|
| token | String | This is the device registration token which will be sent in the verification SMS |
| virtualMobileNumber | String | This the number where the verification SMS should be sent |
| keyword | String | This keyword will be used as a prefix in the verification SMS content separated by a space |
Updated about 1 year ago
