Migration to 4.12.0
Summary
This release contains breaking changes. Find the APIs you use below and skip the rest.
| API | Android | iOS | What you need to do |
|---|---|---|---|
| iOS deployment target | ✅ | • Set deployment-target to 15.0 or higher. |
|
| startFaceLogin() | ✅ | ✅ | • Pass a face login config. • Read the new flat result. • Handle faceMatched: false in the success callback.• Read error.code. |
| finishOnboarding() | ✅ | ✅ | • Read result.success and error.code |
| VideoSelfie module | ✅ | ✅ | • Rename addVideoSelfie and its renamed parameters.• Pass booleans and numbers. • Turn on the questions with randomQuestionsEnabled.• Read status as a string. |
| setupOnboardingSession() | ✅ | ✅ | • Read error.code instead of a string.• Stop reading regionCode.• Handle a result without token in submitOnly mode on iOS. |
| sessionConfig | ✅ | ✅ | • Check queue: "defaultQueue" and values of the wrong type.• Drop region. |
| Phone module on iOS | ✅ | • With SNA and without OTP, handle status: "fail" without phone, or turn on OTP: otpVerification: true in flowConfig, or on Dashboard for startFlow() and startWorkflow(). |
|
| Phone and addNFC modules | ✅ | • Handle phoneData with status: "success" and no phone.• Handle nfcData with placeholder values.• Stop relying on showNFCSymbolConfirmationScreen. |
iOS Deployment Target
This release uses iOS SDK 5.52.0, which requires iOS 15 or newer. iOS 13 and iOS 14 are no longer supported. Before you update the plugin, set the deployment target in your config.xml:
<platform name="ios">
- <preference name="deployment-target" value="13.0" />
+ <preference name="deployment-target" value="15.0" />
</platform>
Then reinstall the iOS platform, so the new deployment target and SDK version are applied. This regenerates platforms/ios, so reapply any manual changes you made there:
cordova platform rm ios
cordova platform add ios
No JavaScript changes are necessary.
HBRecorder Dependency: Handled by the Plugin
The Android SDK now depends on an Incode fork of HBRecorder, com.github.Incode-Technologies-Example-Repos:HBRecorder:3.0.8-incode.1. The fork has the same classes as com.github.HBiSoft:HBRecorder. When both are on the classpath, the Android build fails with duplicate classes.
The plugin excludes com.github.HBiSoft:HBRecorder from the Android app build. The exclusion applies when your app declares the original library and when another Cordova plugin or dependency brings it in. The plugin applies it on each build, so it stays after cordova platform rm and cordova platform add. No action is required in a standard Cordova integration.
If your app code uses the com.hbisoft.hbrecorder classes, it gets them from the Incode fork. The fork is based on HBRecorder 3.0.8. The fork is on JitPack, like the original. The plugin already adds JitPack to the repositories, so you do not need a new Maven repository.
startFaceLogin()
Face Login Config Instead of sessionConfig
The only argument is now a face login config object. Every key is optional. An omitted key keeps the native default:
| Key | Type | Notes |
|---|---|---|
showTutorials |
boolean | Native default. |
waitForTutorials |
boolean | Native default. See the note below. |
customerUUID |
string | Present: 1:1 login for that customer. Absent: 1:N login. |
faceAuthMode |
string | "server" or "local". Native default. local needs the login-capable SDK variant. |
faceAuthModeFallback |
boolean | Native default. Falls back to server when local has no stored face template. |
lensesCheck |
boolean | Native default. |
faceMaskCheck |
boolean | Native default. |
logAuthenticationEnabled |
boolean | Native default. |
recognitionThreshold |
number | SDK-wide. It stays in effect for later SDK calls. |
spoofThreshold |
number | SDK-wide. It stays in effect for later SDK calls. |
e2eEncryptionEnabled |
boolean | Android only. Ignored on iOS. Unchanged from previous versions. |
Existing calls that pass only { e2eEncryptionEnabled: true } keep working unchanged.
Note
Previously, on iOS, the plugin always set waitForTutorials to false, so the user could skip the tutorial. The setting also stayed false for later iOS flows. Now, the native default applies, and, on iOS, the user must wait for the tutorial to finish. To keep the old behavior, pass waitForTutorials: false. The value applies to this call only.
- cordova.exec(success, error, "Cplugin", "startFaceLogin", []);
+ cordova.exec(success, error, "Cplugin", "startFaceLogin", [{ waitForTutorials: false }]);
One Result Object on Both Platforms
Before (Android): A JSON string, the Gson serialization of the native SelfieScanResult, with the login data nested under faceLoginResult.
Before (iOS): An object with the selfie nested under image, and keys omitted when the SDK had no value:
{
faceMatched: true,
spoofAttempt: false,
image: { pngBase64: "...", encryptedBase64: "..." },
customerUUID: "...", interviewId: "...", interviewToken: "...",
token: "...", transactionId: "...", hasFaceMask: false
}
After: A flat object on both platforms. Every key is always present, and is null when the SDK has no value:
{
faceMatched: true,
isBlocklisted: false,
allAttemptsExhausted: false,
spoofAttempt: false, // null when unknown
hasFaceMask: false, // null when unknown
hasLenses: null, // always null on Android
customerUUID: "...",
interviewId: "...",
interviewToken: "...",
token: "...",
transactionId: "...",
selfieBase64: "...",
selfieEncryptedBase64: null
}
function (result) {
- // Android: the payload was a string
- const login = JSON.parse(result);
- const matched = login.faceLoginResult.success;
- const uuid = login.faceLoginResult.customerUUID;
- // iOS
- const selfie = result.image.pngBase64;
+ const matched = result.faceMatched;
+ const uuid = result.customerUUID;
+ const selfie = result.selfieBase64;
}
Read null as "unknown," not as false.
A Login That Did Not Match Reaches the Success Callback
When the face was not recognized, was a spoof, or belongs to a blocklisted user, the success callback now receives the result with faceMatched: false. Previously, it reached the error callback on both platforms. Move that handling into the success callback:
function (result) {
- // only matches arrived here
- loginSucceeded(result);
+ if (result.faceMatched) {
+ loginSucceeded(result);
+ } else if (result.spoofAttempt) {
+ spoofDetected(result);
+ } else {
+ notRecognized(result);
+ }
}
Errors
The error callback now fires only when the flow ended without a login verdict. It receives { code, message, cause } instead of a bare string:
| Code | Meaning |
|---|---|
userCancelled |
The user closed the flow. |
permissionsDenied |
The camera permission was denied. |
faceLoginError |
Any other failure. The native detail is in message: for example, lensesDetected, faceMaskDetected, tooDark, or noFaceTemplateStored on iOS. |
faceLoginInProgress |
A face login is already running. The call does not start a second one. |
activityNotPresent |
No host screen was available to present the flow. On iOS this replaces "No presenting view controller available.". |
bridgeFailure |
Android only. The plugin could not convert the native result. message has the detail. |
function (error) {
- if (error === "onUserCancelled") { ... } // Android
- if (error.startsWith("face login failed")) { ... } // iOS
+ if (error.code === "userCancelled") { ... }
+ if (error.code === "permissionsDenied") { ... }
+ if (error.code === "faceLoginError") { console.log(error.message); }
}
cause is always null on iOS.
finishOnboarding()
The action name is unchanged, but both callbacks receive objects instead of strings:
| Previous | Current | |
|---|---|---|
| Success | "onOnboardingFinished" (Android); "flow finished successfully" (iOS) |
{ success: true } |
| Error | "onError", "onUserCancelled" (Android); "flow failed due to: …" (iOS) |
{ code, message, cause } |
cordova.exec(
function () { … },
- function (err) { console.log(err); },
+ function (err) { console.log(err.code, err.message); },
"Cplugin",
"finishOnboarding",
[]
);
Errors
| Code | Meaning |
|---|---|
sectionAlreadyRunning |
An onboarding section is still running. Wait for its result, then call finishOnboarding(). |
noActiveSession |
There is no onboarding session. |
finishOnboardingFailed |
The SDK is not initialized, or the server call failed. message has the native detail. |
sslPinningFailed |
Android only. SSL pinning failed. |
integrityCompromised |
iOS only. The device integrity check failed. |
bridgeFailure |
Android only. The call to the native SDK failed. message has the detail. |
methodNotSupportedByBridge |
Android only. The installed Hybrid Bridge doesn't support finishOnboarding. |
cause is always null on iOS.
On Android, finishing without an onboarding session now fails with noActiveSession, as on iOS. Previously, it called the server.
Note
On iOS, finishing ends the session, so call getUserScore() and approve() before finishOnboarding(), and deleteUserLocalData() after it succeeds.
VideoSelfie Module
The VideoSelfie module now takes the same parameters and returns the same result on Android and iOS. Skip this section if your app doesn't use VideoSelfie.
addVideoSelfie Renamed
- { module: "addVideoSelfie", showTutorials: "false" }
+ { module: "VideoSelfie", showTutorials: false }
The old name is not accepted: a flow configuration that still uses it fails with an unknownModule error.
Booleans and Numbers
Every boolean must be a real boolean, and every number a real number. The string form ("true", "3") is ignored and the native default applies. The plugin logs a warning that names the module and the key.
On iOS, Cordova SDK 4.11.0 ignored real booleans and read only the string form. If your app passed showTutorials: false, iOS showed the tutorials. Now, iOS applies the value.
Renamed and Removed Parameters
| 4.11.0 | 4.12.0 | Note |
|---|---|---|
selfieLivenessCheckEnabled |
performLivenessCheck |
|
voiceConsentQuestionCount |
randomQuestionsCount |
Also pass randomQuestionsEnabled: true. See Questions and Voice Consent. |
idValidationEnabled |
validateId |
iOS only. Android did not apply it before either. |
enableFrontShownAsBackCheck |
idFrontShownAsBackCheck |
Android only. See Shown-As Checks on iOS. |
enableBackShownAsFrontCheck |
idBackShownAsFrontCheck |
Android only. See Shown-As Checks on iOS. |
documentScanEnabled |
Removed | The document scan step of VideoSelfie is deprecated in the native SDKs. |
showTutorials, selfieMode, idScanEnabled, voiceConsentEnabled, minVideoLengthRequired, and disableAudio keep their names. The old names are ignored without a warning, so search your flow configurations for them.
{
- module: "addVideoSelfie",
- selfieLivenessCheckEnabled: "true",
- idScanEnabled: "true",
- voiceConsentEnabled: "true",
- voiceConsentQuestionCount: "3"
+ module: "VideoSelfie",
+ performLivenessCheck: true,
+ idScanEnabled: true,
+ voiceConsentEnabled: true,
+ randomQuestionsEnabled: true,
+ randomQuestionsCount: 3
}
Questions and Voice Consent
The random questions and the voice consent are two different steps. Neither parameter turns on the other step.
In Cordova SDK 4.11.0, voiceConsentEnabled: "true" with a voiceConsentQuestionCount above 0 also turned on the random questions, on both platforms. On Android, voiceConsentEnabled: "true" alone did too. Now, pass randomQuestionsEnabled: true to ask the questions. To turn the questions off, pass randomQuestionsEnabled: false or omit it. randomQuestionsCount must be a positive integer, so 0 is ignored.
Shown-As Checks on iOS
In Cordova SDK 4.11.0, addVideoSelfie wrote enableFrontShownAsBackCheck and enableBackShownAsFrontCheck to persisted iOS SDK settings, which stayed set after the flow. VideoSelfie does not change these settings, and it ignores idFrontShownAsBackCheck and idBackShownAsFrontCheck with a warning.
selfieMode Values
selfieMode must be "selfieMatch" or "faceMatch". With any other value, the module is not added: the plugin logs the error and the flow runs without VideoSelfie. Previously, Android used selfieMatch and iOS ignored the value.
- { module: "VideoSelfie", selfieMode: "facematch" }
+ { module: "VideoSelfie", selfieMode: "faceMatch" }
videoSelfieData Result
videoSelfieData.status is now a string, and the result has a resultCode. See Results.
- if (result.videoSelfieData.status === true) { ... }
+ if (result.videoSelfieData.status === "success") { ... }
When VideoSelfie fails, the flow ends through errorCallback with videoSelfieNotCompleted, as before. On Android, a video that reaches the maximum length now also reports videoSelfieNotCompleted. Previously, it reported unknown.
setupOnboardingSession()
Error Object Instead of a String
The error callback now receives { code, message, cause } instead of a string. code is an IncodeSdkFlowError value, the same on Android and iOS. cause is null on iOS. Code that treats the error as text, such as err.includes(...), no longer works.
| Code | Meaning |
|---|---|
configError |
sessionConfig is present but is not an object. |
sectionAlreadyRunning |
A startOnboardingSection() call is still running. |
sslPinningFailed |
SSL pinning failed. |
integrityCompromised |
iOS only. The device integrity check failed. On Android, the same cause is sessionCreationFailed. |
sessionCreationFailed |
The session could not be created, such as after a server or HTTP error or a revoked API key, or the SDK finished without a token outside submitOnly mode. |
unknown |
The SDK is not initialized. |
methodNotSupportedByBridge, bridgeFailure |
Android only. The plugin could not call the installed Hybrid Bridge. message has the detail. |
function (err) {
- if (err === "onError") { ... } // Android
- if (err.includes("Incd:ONBOARDING_ERROR")) { ... } // iOS
+ if (err.code === "sessionCreationFailed") { ... }
+ console.log(err.code, err.message);
}
On Android, "onUserCancelled" is gone: the SDK does not cancel this call, because it shows no UI.
Success Result
The success result is { interviewId?, token? } on both platforms. A key is left out when the SDK gives no value; it is never null.
- iOS no longer adds
regionCode. - In
submitOnlymode, the platforms differ. On iOS the SDK creates no session, so the result has notokenand can be empty. On Android the SDK still creates a session and returns atokenand aninterviewId, as instandardmode. Do not assume either shape. - Outside
submitOnlymode, a session without a token now fails withsessionCreationFailedinstead of reaching the success callback. - iOS returns no
interviewIdwhen the session is resumed with atoken.
function (data) {
- var region = data.regionCode; // iOS
+ if (data.token) { startOnboardingSection(); }
}
Optional sessionConfig
sessionConfig is now optional. Omit it, or pass {} or null, to create a session with the SDK defaults. Any other value that is not an object fails with configError.
sessionConfig
setupOnboardingSession(), startOnboarding(), startFlow(), and startWorkflow() now read sessionConfig the same way on both platforms. Valid configurations behave as before. Check your configuration for these cases. See sessionConfig.
| Before | 4.12.0 |
|---|---|
Android sent queue: "defaultQueue" as a queue name. |
"defaultQueue" means no queue on both platforms. |
Android sent null as the string "null", and setupOnboardingSession() and startOnboarding() could fail on a value of the wrong type. |
null, blank strings and values of the wrong type are ignored, and the SDK default applies. Booleans must be real booleans. |
setupOnboardingSession() and startOnboarding() accepted seven validationModules names on iOS, and failed on an unknown name on Android. |
Every native name is accepted; unknown names are skipped. |
e2eEncryptionEnabled: true used SHA1 on Android. |
Both platforms use SHA256. |
region was accepted. |
region is no longer read. It had no effect on either platform, so you can remove it. |
downloadImagesEnabled is new. Pass false to resume a session faster, without downloading its images.
Phone Module on iOS
With Silent Network Authentication (SNA) enabled, the Phone module now verifies the number on the session before it shows the input screen. If SNA can't verify the number and one-time password (OTP) is disabled, the module no longer saves an unverified number. The flow continues, and phoneData has no phone:
{ status: "fail", resultCode: "error" }
- Your flow must always collect a number: Enable OTP for the
Phonemodule, so the user can enter and verify a number when SNA fails. Where you set OTP depends on how you start the flow:startOnboarding()andstartOnboardingSection(): PassotpVerification: trueon thePhonemodule inflowConfig.startFlow()andstartWorkflow(): Turn on OTP verification for the Phone module in the Flow or Workflow in Dashboard. These methods do not take aflowConfig, sootpVerificationhas no effect.
- Your app reads
phoneData.phone: Checkstatusfirst, and handle a missingphoneas an unverified result.
On UX v2, the module also ends on a result screen. The flow continues when the user taps Continue, not automatically. No code changes are necessary for this.
Phone and addNFC Modules
Android SDK 5.56.0 changes how these modules behave on Android. iOS is not affected.
phoneData Without phone
This change applies only when all of these conditions are true:
- The Phone v2 feature gate is on.
- Silent Network Authentication (SNA) is on in the flow configuration.
- One-time password (OTP) verification is off.
When SNA cannot verify the number, the SDK shows an error screen with a Continue button. It does not send an SMS code. When the user taps Continue, the flow continues with the next module. phoneData has status: "success" and no phone key. Check for phone before you read it:
const phoneData = result.phoneData;
if (phoneData && phoneData.status === "success" && phoneData.phone === undefined) {
// SNA could not verify the number and OTP verification is off.
}
nfcData With Placeholder Values
When NFC smart gating is enabled for your organization, the SDK skips the scan for a document that has no chip or an unsupported issuer. nfcData then has status: true with placeholder values instead of chip data: for example, documentNumber: "xxxxxxxxx" and nationality: "XXX". Do not store or show these values as data read from the chip.
showNFCSymbolConfirmationScreen Has No Effect on Android
The Android SDK no longer shows the screen that asks whether the document has an NFC chip, so Android ignores showNFCSymbolConfirmationScreen. iOS still applies it. You can keep the key in a shared configuration.
Migration to 4.11.0
Migration to 4.11.0
Summary
4.11.0 contains breaking changes. Find the APIs you use below and skip the rest.
| API | Android | iOS | What you need to do |
|---|---|---|---|
| startOnboardingSection() | 💥 | 💥 | Pass boolean recording fields, rename forcePermissions, provide a non-blank tag, handle start-up error objects and concurrent calls |
| startOnboarding(), startOnboardingSection(), startFlow(), startWorkflow() | ✅ | ✅ | Check for userCancelled instead of onUserCancelled; handle interrupted and the more specific error codes |
| startFlow() | ✅ | ✅ | Read the start-up error object instead of a message string |
startWorkflow() |
✅ | ✅ | Handle activityNotPresent instead of unknown |
| CurpValidation module | ✅ | ✅ | Rename CURPValidation and curpData, pass validationEnabled as a boolean, update result checks |
| Geolocation module | ✅ | ✅ | Rename addGeolocation to Geolocation, pass isSkippable as a boolean, align with other updates |
| Phone and Email modules | ✅ | ✅ | Pass otpVerification and defaultRegionPrefix as a boolean and a number |
| setLogo() (new, optional) | ✅ | If you call setLogo(), add the logo drawable to res/raw/keep.xml |
startOnboarding(), startOnboardingSection(), startFlow(), startWorkflow()
A cancel reports userCancelled on Android
Android. When the user cancels, the error callback now receives userCancelled, the same as iOS. Previously, Android sent onUserCancelled.
function (error) {
- if (error === "onUserCancelled" || error === "userCancelled") { ... }
+ if (error === "userCancelled") { ... }
}
Note
A flow that the system ends, such as when it destroys the SDK screen in the background, now fails with the new interrupted code on both platforms. Previously, on Android, the flow never ended and no callback was called, and on iOS it failed with unknown.
Changed error codes
These failures reported unknown before. They now have their own code:
| Failure | Platform | Previous | Current |
|---|---|---|---|
| Video Selfie not completed, for a reason other than a denied permission | Android, iOS | unknown |
videoSelfieNotCompleted |
| Location not available | Android | unknown |
locationUnavailable |
| Location permission denied | Android | unknown |
permissionsDenied |
| Audio permission denied, or a fake-camera permission check | iOS | unknown |
permissionsDenied |
| The user did not give biometric consent | Android, iOS | unknown |
biometricConsentNotGiven |
| The biometric consent did not reach Incode | Android, iOS | unknown |
biometricConsentNotReceived |
| The onboarding session could not be created | iOS | unknown |
sessionCreationFailed |
| The CAPTCHA could not be verified | iOS | unknown |
captchaNotVerified |
| A section was started while another one runs | iOS | unknown |
sectionAlreadyRunning |
| The flow has no onboarding session | iOS | unknown |
noActiveSession |
| Not enough free disk space for the SDK's ML models | Android | unknown |
insufficientDiskSpace |
| On-device processing configured with an unsupported setting | Android | unknown |
onDeviceProcessingNotCompatible |
On Android, a failed CAPTCHA still fails with unknown. If you handle unknown as a catch-all, also handle these codes. See Results — startOnboardingSection() for the full list.
startOnboardingSection()
Recording configuration
Pass real booleans for recordSession and forcePermission. Rename recordSessionConfig.forcePermissions to recordSessionConfig.forcePermission.
- { recordSession: "true", forcePermissions: "false" }
+ { recordSession: true, forcePermission: false }
The old forcePermissions key is ignored. Non-boolean values are ignored and default to false, without an error callback. Thus, recordSession: "true" now leaves recording off. forcePermission only applies when recordSession is true.
Pass null in the recording argument position to disable recording. The startOnboarding() recording configuration is unchanged.
Required section tag
Provide a non-blank string in the sectionTag argument position:
cordova.exec(onSuccess, onError, "Cplugin", "startOnboardingSection", [
[{ module: "addId" }],
{ recordSession: true, forcePermission: false },
"identity-section"
]);
A missing, null, blank, or non-string tag now fails with configError.
Start-up errors and concurrent calls
Read start-up errors as { code, message, cause }, not as strings. Both platforms report unknownModule for unknown modules and configError for other module configuration errors. Start exceptions report unknown.
cause is null or an object with type and message. Android also includes stackTrace. Errors after the section starts, including cancellation, still arrive as strings.
function onError(error) {
const code = typeof error === "string" ? error : error.code;
if (code === "sectionAlreadyRunning") {
console.log("Wait for the running section to finish.");
return;
}
console.log("Section error:", code, error);
}
Wait for each section's callback before starting another section. A concurrent call now fails with sectionAlreadyRunning on both platforms. It does not replace the running section's callback or results.
See the API Reference for the full start-up error contract.
startFlow()
startFlow() now runs through the shared Incode bridge, the same as startWorkflow(). When the flow cannot start, the error callback receives { code, message, cause } with one of these codes:
| Code | Description |
|---|---|
activityNotPresent |
There is no presenting view controller (iOS) or Activity (Android). |
configError |
sessionConfig has neither a configurationId nor a token. Rejected before the flow starts. |
unknown |
The flow could not start for another reason. |
Previously, iOS passed a plain string, such as "No presenting view controller available." or "Invalid sessionConfig argument for startFlow.". Previously, Android failed with an invalid-action error. Errors after the flow has started are unchanged. An unknown moduleId runs the whole flow, the same as before.
cordova.exec(onSuccess, (error) => {
- console.log(error); // "No presenting view controller available."
+ if (error?.code === 'activityNotPresent' || error?.code === 'configError') {
+ // the flow did not start
+ }
}, 'Cplugin', 'startFlow', [sessionConfig, moduleId]);
CurpValidation module
The CurpValidation module now returns the same result on Android and iOS, and no longer accepts booleans and numbers as strings.
CURPValidation Renamed
- { module: "CURPValidation", validationEnabled: "true" }
+ { module: "CurpValidation", validationEnabled: true }
The old name is not accepted: a flow configuration that still uses it fails with an unknownModule error.
validationEnabled must be a real boolean. The string form ("true", "false") is ignored and the native default applies, which is validation on. A flow that sends validationEnabled: "false" therefore now validates the CURP against RENAPO. The plugin logs a warning that names the module and the key.
curpData Renamed to curpValidationData
- const curp = result.curpData;
+ const curp = result.curpValidationData;
curpValidationData Result
curpValidationData now has the same shape on both platforms. See Results.
| Before | Now | |
|---|---|---|
| CURP rejected by RENAPO | status: "success" on Android, "fail" on iOS |
status: "fail", valid: false, resultCode: "error" on both |
| SDK error on Android | status could be the native error message |
status: "fail" and a resultCode |
| No CURP captured | curp: "" |
curp is omitted |
| No validation response | data: "" on iOS |
data is omitted |
validationEnabled: false |
status: "success" |
status: "success" when a CURP was captured, "fail" otherwise; valid and data are omitted |
- if (result.curpData.status === "success" && result.curpData.curp !== "") { ... }
+ if (result.curpValidationData.status === "success" && result.curpValidationData.curp !== undefined) { ... }
On Android, status: "success" now means that RENAPO accepted the CURP, as on iOS. If your Android code read data to find out whether the CURP was valid, read status or valid instead. Do not compare status with a native error message.
Geolocation Module
geoLocationData result is changed so Android and iOS return the same shape. Skip this section if your app doesn't use the Geolocation module.
Module name
addGeolocation is now Geolocation. The old name still works but logs a deprecation warning and will be removed in a future release.
-{ module: "addGeolocation" }
+{ module: "Geolocation" }
isSkippable takes a real boolean
isSkippable must be a real boolean, with both Geolocation and addGeolocation. The string form ("true" / "false") is ignored, and the default applies: the step is not skippable. A flow that sends isSkippable: "true" therefore now ends through errorCallback when the user skips or denies location. The plugin logs a warning that names the module and the key.
-{ module: "addGeolocation", isSkippable: "true" }
+{ module: "Geolocation", isSkippable: true }
geoLocationData result
geoLocationData now has the same shape on both platforms. Check status instead of looking for empty strings, and read coordinates from latitude and longitude:
-const city = winParam.geoLocationData.addressFields.city;
+const geo = winParam.geoLocationData;
+if (geo.status === "success") {
+ const city = geo.addressFields?.city;
+ const { latitude, longitude } = geo;
+}
When status is "fail", error carries the reason: permissionsDenied, locationUnavailable, sslPinningFailed, integrityCompromised, or unknown. On Android, an unavailable location used to be dropped silently; it is now reported with status: "fail".
state is the country name
addressFields.state now holds the country name on both platforms. On Android it previously held the region: for example, CDMX. It now holds the country: for example, Mexico. This matches the behavior on iOS. addressFields.city falls back to the region when the city is unknown. If your app needs the region on Android, it is no longer reported.
Non-skippable failure error
On Android, when a non-skippable Geolocation step fails, errorCallback now receives permissionsDenied or locationUnavailable. Previously, it received unknown. If your app handles this failure through unknown, also handle the two new values.
Phone and Email Modules
Phone and Email modules no longer accept booleans and numbers as strings. otpVerification must be a real boolean, and defaultRegionPrefix a real number. The string form ("true", "52") is ignored and the native default applies: no OTP override, and the device's own region prefix. The plugin logs a warning that names the module and the key.
- { module: "Phone", otpVerification: "true", defaultRegionPrefix: "52" }
+ { module: "Phone", otpVerification: true, defaultRegionPrefix: 52 }
- { module: "Email", otpVerification: "true" }
+ { module: "Email", otpVerification: true }
Android: keep the setLogo() drawable
This applies only if you start to use the new setLogo() method. No change is necessary if you do not call it.
On Android, setLogo() finds the logo drawable by its name at runtime, so no code refers to it. When resource shrinking is on (shrinkResources true), the Android shrinker removes the drawable from release builds, and setLogo() fails with appearanceError. To keep the drawable, add it to res/raw/keep.xml, for example with a resource-file entry in your config.xml:
<platform name="android">
<resource-file src="res/logo/keep.xml" target="app/src/main/res/raw/keep.xml" />
</platform>
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools"
tools:keep="@drawable/my_logo" />
See setLogo() in the API Reference.
Migration to 4.10.0
Migration to 4.10.0
4.10.0 contains breaking changes: most of them make Android and iOS return the same result and error shapes. Find the APIs you use below and skip the rest.
| API | Android | iOS | What you need to do |
|---|---|---|---|
| Installation | ✅ | Reinstall the iOS platform | |
getUserScore() |
✅ | ✅ | Read the new result object, update error checks |
faceMatch() |
✅ | ✅ | Update result field names and error handling |
startWorkflow() |
✅ | ✅ | Read error.message instead of a string |
approve module result |
✅ | ✅ | Rename approveData keys |
Phone, Email, FullName modules |
✅ | ✅ | Rename addPhone and addEmail, check for missing values |
setTheme() |
✅ | Rename positive800 to positive750 |
Installation
iOS. The plugin now depends on the IncodeBridgeCommon pod. It's declared by the plugin, so your app needs no source change, but the pod must be resolved. After updating the plugin, reinstall the iOS platform, or re-run pod install in platforms/ios if you've made manual changes there:
cordova platform rm ios
cordova platform add ios
getUserScore()
One Result Object on Both Platforms
Previously, Android returned a JSON string, and iOS returned an object nested under userScoreData.data. The keys were different. Now, both platforms return the same top-level object:
{
"extendedUserScoreJsonData": "<raw JSON>",
"overall": { "value": "80.5", "status": "ok" },
"idValidation": { "overall": { … }, "photoSecurityAndQuality": [ … ], "idSpecific": [ … ] },
"liveness": { "overall": { … }, "livenessScore": { … }, "photoQuality": "70.5" },
"faceRecognition": { "overall": { … }, "existingUser": false },
"governmentValidation": { "overall": { … }, "recognitionConfidence": { … }, "validationStatus": { … }, "ocrValidation": [ … ] }
}
See Results — getUserScore for the full contract.
cordova.exec(function (result) {
- const score = JSON.parse(result).overallScore; // Android: "80.5/100"
- const score = result.userScoreData.data.overallScore; // iOS
- const faceScore = result.userScoreData.data.facialRecognitionScore;
+ const score = result.overall.value; // "80.5" on both
+ const status = result.overall.status;
+ const faceScore = result.faceRecognition?.overall?.value;
}, onError, "Cplugin", "getUserScore", ["accurate"]);
What changed in the values:
| Before | Now | |
|---|---|---|
| Android payload | JSON string, needed JSON.parse() |
Object; remove JSON.parse() |
| Android score values | "80.5/100", sometimes a localized phrase |
"80.5", also in onUserScoreFetched |
| iOS status | warning |
warn (set: ok, warn, fail, unknown, manual, null) |
| iOS absent values | "" |
null |
iOS existingUser |
String "false" |
Boolean false |
Rules to code against:
overallandextendedUserScoreJsonDataare always present.overall.valueandoverall.statusarenullwhen the SDK returned no overall score.idValidation,liveness,faceRecognition, andgovernmentValidationare present only when the SDK returned them, so guard your access. Inside a present section, every key is present andnullwhen absent.- Check lists are always arrays,
[]when empty. Entries with anunknownstatus are left out ofphotoSecurityAndQualityandocrValidation;idSpecificis unfiltered. extendedUserScoreJsonDatais still a raw JSON string ("{}"when unavailable) and still needsJSON.parse().
When the userScore module runs as part of a flow for iOS, the { module: "userScore" } result still arrives under userScoreData, but its value is now the same object that getUserScore returns:
- const score = result.userScoreData.data.overallScore;
+ const score = result.userScoreData.overall.value;
Errors
errorCallback now receives one of these strings on both platforms:
| Error | Meaning |
|---|---|
userScoreFailed |
Transport or HTTP failure, mapping failure, submit-only mode, or (iOS only) a completely empty score. |
userCancelled |
The user cancelled. Android only: the call shows no UI, so iOS never reports it. |
function (error) {
- if (error === "UserScoreFailed") { ... } // Android
- if (error === "onUserCancelled") { ... } // Android
+ if (error === "userScoreFailed") { ... }
+ if (error === "userCancelled") { ... }
}
- iOS: Failures used to reach the success callback as
{ "userScoreData": { "debug": "nil" } }. If you detected them by looking fordebugor a missingoverall, move that handling intoerrorCallback. - Both: Submit-only mode, transport/HTTP failures and mapping failures now report
userScoreFailed. Previously, Android succeeded with an empty payload. If you treated an empty success as "no score yet", handleuserScoreFailedinstead. One difference remains: if the server returns a completely empty score (HTTP 200), iOS reportsuserScoreFailedand Android succeeds with an empty result.
Behavior Changes on Android
"fast"is honored: Previously, Android ignoredfetchModeand always fetchedaccurate, its default. Calls passing"fast"now get the faster fetch, which can report different scores. Pass"accurate"or omitfetchModeto keep the old behavior.- No remembered
interviewId: Previously, Android reused theinterviewIdof the session created earlier in the app's lifetime. Both platforms now use the current session. To score a different session, pass itsinterviewIdas the new fourth argument:
getUserScore(onSuccess, onError, "accurate", interviewId);
You can get the interviewId from the onOnboardingSessionCreated result.
faceMatch()
These changes affect standalone faceMatch() call only. The addFaceMatch module's faceMatchData is unchanged.
Result
| Change | Platform | Update |
|---|---|---|
existingUser renamed to isExistingUser |
Both | result.existingUser → result.isExistingUser |
status removed |
Both | Use isFaceMatched (see below) |
No longer nested under faceMatchData |
iOS | result.faceMatchData.confidence → result.confidence |
Unavailable fields are left out instead of 0 / false / "" |
Both (iOS for isFaceMatched, isNameMatched, existingInterviewId) |
Check that the key is present |
-1 confidence scores are left out |
Android | confidence === -1 → confidence === undefined |
- if (result.status === "match") { ... }
+ if (result.isFaceMatched === true) { ... }
- if (result.nfcVsIdConfidence > 0.8) { ... }
+ if (result.nfcVsIdConfidence !== undefined && result.nfcVsIdConfidence > 0.8) { ... }
- Previously,
statuswas always"match"or"mismatch". A missingisFaceMatchednow means no comparison was possible, so it isn't a direct substitute. - A
0confidence is still returned: it's a real "no match" score. - On iOS, a
getUserScore()call made afterfaceMatch()no longer includes afaceMatchDatakey.
Errors
The error callback now receives { code, message, cause }. Previously, on iOS, it was never called: failures arrived at the success callback as faceMatchData: { debug: "..." }.
function (error) {
- if (error === "onUserCancelled") { ... }
- if (error === "FaceMatchFailed") { ... }
+ if (error.code === "userCancelled") { ... }
+ if (error.code === "faceMatchError") { console.log(error.message); }
}
userCancelled is Android only. iOS has no separate cancellation signal and reports faceMatchError.
startWorkflow()
The error callback now receives { code, message, cause } on both platforms, as faceMatch() does. It used to be a string: "Failed to start workflow: <message>" on Android, "No presenting view controller available." on iOS.
function (error) {
- console.log(error);
+ console.log(error.message);
}
approve Module Result
The in-flow approve module's approveData now uses the same keys as the new approve() method:
- { status: "approved", id: "<uuid>", customerToken: "<token>" }
+ { success: true, uuid: "<uuid>", customerToken: "<token>", error: null }
- if (result.approveData.status === "approved") { ... }
+ if (result.approveData.success) { ... }
- const customerId = result.approveData.id;
+ const customerId = result.approveData.uuid;
- When the SDK returns none,
uuidandcustomerTokenarenullinstead of"". erroris a flow error string (sslPinningFailedorunknown) on iOS, and alwaysnullon Android.
Phone, Email and FullName Modules
addPhone and addEmail Renamed
- { module: "addPhone" }
+ { module: "Phone" }
- { module: "addEmail", otpVerificationEnabled: "true" }
+ { module: "Email", otpVerification: true }
The OTP parameter is now named otpVerification, matching the native SDK, and accepts a real boolean. The string form ("true") still works.
Empty Capture Values Omitted
phoneData.phone, emailData.email, and fullNameData.name were previously "" when the SDK captured nothing. The key is now absent instead.
- if (result.phoneData.phone !== "") { ... }
+ if (result.phoneData.phone !== undefined) { ... }
setTheme()
For Android, the theme color positive800 is renamed to positive750. It represents the same color. Android now ignores the old key and falls back to the default color, as iOS already does.
"colorPalette": {
- "positive800": "#0C5030"
+ "positive750": "#0C5030"
}
Migration to 4.9.0
Migration to 4.9.0
Update the Signature V2 title and description string overrides for Android
Signature V2 uses dedicated string resources for the title and description. V1 continues to use the existing string resources.
If you enable V2 and override the V1 strings, add these V2 overrides to your strings.xml file:
<string name="onboard_sdk_signature_capture_title">Your title</string>
<string name="onboard_sdk_signature_capture_description">Your description</string>
Keep these V1 overrides if your integration still uses V1:
<string name="onboard_sdk_signature_title">Your title</string>
<string name="onboard_sdk_signature_description">Your description</string>
No change is required if you do not override these strings.
Video Selfie V2 hides the close button on the camera steps on Android
When Video Selfie V2 is enabled for your account, its camera steps hide the close (X) button, so cordova.exec(resolve, reject, "Cplugin", "showCloseButton", ["true"]) does not apply to them. The button still shows on the other screens. Video Selfie V1 keeps the button over the camera. No code change is required. If your users rely on the close button to leave a camera step, tell them about the new behavior or keep Video Selfie V1.
MLConsentData.status now reflects the user's choice on iOS
The addMachineLearningConsent module used to report status: true on iOS whenever the
submission call succeeded, even when the user declined the consent. It now reports the
choice the user made: true when the consent was accepted and false when it was
declined. The consent stays optional and the flow continues in both cases. If your app
treats MLConsentData.status as submitted, update it to treat false as declined
instead of as a module failure.
Combined Consents stops on an unshowable mandatory consent
A mandatory Combined Consent that has no readable text or checkbox ID can no longer be
silently accepted on iOS. The module ends and the flow stops, so startOnboarding() and
startOnboardingSection() call the errorCallback with the new
"combinedConsentsNotReceived" string. Text that is empty or only spaces counts
as missing text. Give the consent text in Dashboard to clear the error. Optional
consents that cannot be shown are still left out and the flow continues, as before.
Handle it alongside the other typed flow errors:
function (error) {
switch (error) {
case "permissionsDenied":
break;
+ case "combinedConsentsNotReceived":
+ // A mandatory combined consent is misconfigured in Dashboard.
+ break;
default:
break;
}
}
Migration to 4.8.0
Migration to 4.8.0
setFaceAuthenticationHint argument renamed to identityId
The argument is the expected identity ID, not on-screen hint copy:
- setFaceAuthenticationHint(success, error, faceAuthenticationHint)
+ setFaceAuthenticationHint(success, error, identityId)
cordova.exec(success, error, "Cplugin", "setFaceAuthenticationHint", [
- "Look at the camera",
+ "customer@example.com",
]);
setUXConfig argument renamed to jsonConfig
- setUXConfig(success, error, config)
+ setUXConfig(success, error, jsonConfig)
cordova.exec(success, error, "Cplugin", "setUXConfig", [
JSON.stringify({ showFooter: false }),
]);
The value is still a JSON string. Only the parameter name changed.
initializeSDK() method parameter isExternalTokenEnabled removed
External tokens belong on sessionConfig.token. Remove the argument and shift subsequent positional args:
cordova.exec(success, error, "Cplugin", "initializeSDK", [
apiKey,
apiUrl,
loggingEnabled,
testMode,
- "true", // isExternalTokenEnabled — removed
clientExperimentId,
e2eeUrl,
sslPinningConfig,
+ "standard", // sdkMode (optional)
+ "false", // externalAnalyticsEnabled (optional)
+ "false", // externalScreenshotsEnabled (optional)
]);
initializeSDK error payload format
Init failures now return "<code>: <message>" on both iOS and Android platforms:
- if (err === "configError") { ... }
+ if (typeof err === "string" && err.indexOf("configError") === 0) { ... }
Android build requirements raised
This release updates the underlying Android SDK to 5.51.0, which raises the minimum Android toolchain your app must build with. There are no JavaScript API changes; all of the work is in your Android build configuration.
Update the android platform preferences in your app's config.xml:
<platform name="android">
- <preference name="android-compileSdkVersion" value="35" />
+ <preference name="android-compileSdkVersion" value="36" />
+ <preference name="AndroidGradlePluginVersion" value="8.9.1" />
+ <preference name="GradleVersion" value="8.14.5" />
<preference name="GradlePluginKotlinEnabled" value="true" />
- <preference name="GradlePluginKotlinVersion" value="1.8.21" />
+ <preference name="GradlePluginKotlinVersion" value="2.2.21" />
</platform>
| Requirement | Minimum | Reason |
|---|---|---|
compileSdk |
36 | Required by the SDK's updated CameraX and Kotlin dependencies. |
| Android Gradle Plugin | 8.9.1 | Required to build against compileSdk 36. |
| Gradle | 8.14.5 | AGP 8.9.1 is validated against Gradle 8.14.5 for this SDK release. |
| Kotlin Gradle plugin | 2.2.21 | The SDK is compiled with Kotlin 2.2.21; any module compiling Kotlin source with the SDK on its classpath must be able to read its Kotlin metadata. |
kotlinx-coroutines |
1.9.0 | Required by CameraX 1.6.1. Pulled in transitively; only act if you have explicitly pinned an older version. |
| JDK (to run Gradle) | 17 | Required by AGP 8.9.1. The compiled Java source/target level stays at 11. |
Pure-Java Cordova apps still need the Kotlin plugin bump. The plugin itself contains Kotlin sources that are compiled with the SDK on the classpath.
Info
The preference key that cordova-android reads is AndroidGradlePluginVersion. If your config.xml uses android-gradlePluginVersion, it is silently ignored and you will keep building with the platform's default AGP. Rename it.
OkHttp packaging exclusion: handled by the plugin
OkHttp/logging-interceptor 5.3.2 and its transitive JSpecify dependency both ship an identical OSGi manifest at META-INF/versions/9/OSGI-INF/MANIFEST.MF, which fails APK packaging with a duplicate-resource error. The plugin now declares this exclusion in its own Gradle configuration, so no action is required in a standard Cordova integration.
If your build overrides packaging options in a way that drops the plugin's configuration, add the exclusion yourself in platforms/android/app/build-extras.gradle:
android {
packaging {
resources {
excludes += ['META-INF/versions/9/OSGI-INF/MANIFEST.MF']
}
}
}
Compose Material3 : Compose minimum versions raised
The SDK's Compose-based screens are now built against Compose Material3 1.4.0 and Compose 1.8.0. Cordova apps do not normally resolve Compose directly, so most integrations need no action. Act only if you or another Cordova plugin explicitly pin these libraries below those versions. An older resolved set crashes at runtime (NoSuchMethodError / NoClassDefFoundError in androidx.compose.*) when a Compose screen opens.
Migration to 4.7.0
Migration to 4.7.0
initializeSDK() method parameter disableJailbreakDetection removed
The disableJailbreakDetection parameter has been removed from the initializeSDK() method. It has no replacement. If you previously set it, remove it and update your positional arguments.
Removed deprecated setCommonConfig() method.
The deprecated setCommonConfig() method that displayed or hid the close button has been removed. Use showCloseButton() instead.
Migration to 4.6.0
Migration to 4.6.0
Renamed neutral and black color palette tokens on Android
The neutral and black keys in theme's colorPalette have been renamed:
neutral->neutralLightblack->neutralDark
If you provided the theme via a JSON config, rename the keys inside colorPalette:
"colorPalette": {
+ "neutralLight": "#ffffff",
- "neutral": "#ffffff",
+ "neutralDark": "#000000",
- "black": "#000000",
"brand50": "#e5f0ff",
...
"positive500": "#189F60",
"positive600": "#189F60",
"positive800": "#0C5030"
}
Theme JSON that still uses the old neutral and black keys will silently fall back to the defaults #FFFFFF and #000000, because unknown keys are ignored during parsing. Update your JSON to use the new keys to keep your customizations applied.
Migration to 4.5.0
Migration to 4.5.0
Changed default value for mask check in SelfieScan module
The default value for the maskCheckEnabled parameter in the addSelfieScan module has been changed from false to true. If you did not previously configure this flag, face mask validation will now be enforced by default during face capture.
To preserve the previous behavior, explicitly disable these flags:
{ module: "addSelfieScan", maskCheckEnabled: "false"}
Changed default values for face capture checks in FaceAuthentication module
The default values for the faceMaskCheck, headCoverCheck, lensesCheck, and eyesClosedCheck parameters in the addFaceAuthentication module have been changed from false to true. If you did not previously configure these flags, these validations will now be enforced by default during face authentication.
To preserve the previous behavior, explicitly disable these flags:
{
module: "addFaceAuthentication",
faceMaskCheck: "false",
headCoverCheck: "false",
lensesCheck: "false",
eyesClosedCheck: "false"
}
SQLCipher attribution required if you ship an open-source licenses screen on Android
Local Room databases used by the SDK are now encrypted at rest with SQLCipher for Android, distributed under a BSD-style license. The license requires consumers that redistribute binaries, such as your application, to reproduce its copyright notice "in the documentation and/or other materials provided with the distribution".
If your application includes an "Open Source Licenses" screen, please add the SQLCipher notice listed in Licenses. No code change is needed if you do not ship such a screen.
Migration to 4.3.0
Migration to 4.3.0
Removed localization keys on iOS
incdOnboarding.nameInfo.lastnamePlaceholderincdOnboarding.ccv.invalidCCV
Renamed localization keys on iOS
incdOnboarding.email.title->incdOnboarding.userInformation.email.titleincdOnboarding.email.invalidEmail->incdOnboarding.userInformation.email.wrongFormatincdOnboarding.ccv.title->incdOnboarding.userInformation.securityCode.titleincdOnboarding.nameInfo.title->incdOnboarding.userInformation.fullName.titleincdOnboarding.nameInfo.subtitle->incdOnboarding.userInformation.fullName.subtitleincdOnboarding.nameInfo.namePlaceholder->incdOnboarding.userInformation.fullName.placeholderincdOnboarding.nameInfo.continue->incdOnboarding.userInformation.continueincdOnboarding.ekyc.input.label.fillYourCredentials->incdOnboarding.ekyc.input.title
Migration to 4.2.0
Migration to 4.2.0
Updates to document chooser behavior in IdScan module
The Show document chooser screen setting in Dashboard or showIdTypeChooser in the SDK now control if the document chooser screen appears. Setting idType alone no longer hides the chooser and will be ignored.
If you previously pre-set idType (either using idType: ... in the SDK or in Dashboard) and expected the chooser to be hidden, you must now explicitly disable it or update the Flow configuration accordingly:
{
module: "addId",
idType: "passport",
showIdTypeChooser: "false"
}
Android color palette changes
If you previously customized the application appearance using a config JSON:
{
"colorPalette": {
"negative500": "#FF5A5F",
"negative600": "#E71111",
"positive500": "#189F60",
"positive600": "#189F60"
}
}
These keys have now been migrated to the following values:
negative500->negative400negative600->negative500positive500->positive400positive600->positive500
iOS color palette changes
V2 theme default colorPalette values and the JSON keys used for positive and negative semantic colors have changed. If you customize the V2 theme, update your palette to match About Colors in the iOS Customization Guide v2.
ID Capture V2 - Error Screen Customization for Android
Wrong document side customization
If you previously customized the Wrong document side error screen, add the following new string resources:
<string name="onboard_sdk_id_capture_error_side_front">Capture the front side of the ID</string>
<string name="onboard_sdk_id_capture_error_side_back">Capture the back side of the ID</string>
This previous string is longer used:
<string name="onboard_sdk_id_capture_error_side">You’ve scanned the wrong document side. Please scan your document again.</string>
No internet connection customization
If you previously customized the No internet connection error screen, add the following new string resource:
<string name="onboard_sdk_no_internet_title">No internet connection</string>
This previously used string is still in use for other error screens and should be kept in your resources:
<string name="onboard_sdk_id_capture_error_title">There was a problem</string>
Retry button customization
The retry button is now customized using a different string resource:
<string name="onboard_sdk_id_capture_retry">Refresh</string>
This previously used string is still in use for other error screens and should be kept in your resources:
<string name="onboard_sdk_no_network_snackbar_action_text">Retry</string>
Selfie V2 - Error Screen Customization for Android
No internet connection customization
If you previously customized the No internet connection error screen, add the following new string resource:
<string name="onboard_sdk_no_internet_title">No internet connection</string>
This previously used string is still in use for other error screens and should be kept in your resources:
<string name="onboard_sdk_face_scan_failed_feedback_selfie_capture_failed_title">There was a problem</string>
Changes in behavior for device environment detection for Android
The behavior when detecting device environment vulnerabilities has changed:
- Hook or virtual environment detection: Detecting hook or virtual environment vulnerabilities in the SDK triggers a native crash, which cannot be caught or handled by application code, resulting in immediate app termination.
- Emulator and root detection: The flow is not aborted when emulator and root checks are detected. The onboarding process continues normally.
API Changes
The following initializeSDK() method optional parameters have been removed:
disableVirtualEnvironmentDetectiondisableRootDetectiondisableEmulatorDetectiondisableHookCheck
If you were using these parameters in your code, remove them from your initializeSDK() method call. Device environment checks can no longer be disabled.
Added ability to pass SessionConfig to startFaceLogin() method for Android
Now you can supply an optional sessionConfig parameter to the startFaceLogin(), like this:
let sessionConfig = {}; // Optional
cordova.exec(
function (result) {
console.log("Face login Success: " + result);
},
function (error) {
console.log("Face login Error: " + error);
},
"Cplugin",
"startFaceLogin",
[sessionConfig]
);
This allows enabling of end-to-end encryption (E2EE) in Face Login mode on Android.
Added ability to pass showIdTypeChooser parameter to the addId module
Now you can supply an optional showIdTypeChooser parameter to the addId module. It will be used by the SDK to decide whether to show the document type chooser. By default, if not supplied, showIdTypeChooser param is true.
{
module: "addId",
idType: "passport",
showIdTypeChooser: "false"
}
setupOnboardingSession now accepts a session config object
The setupOnboardingSession method now expects a JSON object as the first argument instead of a plain string configurationId.
If you previously passed configurationId as a string, the method will silently fall back to an empty session configuration, which may cause unexpected behavior.
Before:
cordova.exec(resolve, reject, "Cplugin", "setupOnboardingSession", ["your-config-id"]);
After:
var sessionConfig = {
configurationId: "your-config-id",
// other optional fields:
// token: "...",
// e2eEncryptionEnabled: true,
// mergeSessionRecordings: false,
// validationModules: [...],
// externalId: "...",
// externalCustomerId: "...",
// interviewId: "...",
};
cordova.exec(resolve, reject, "Cplugin", "setupOnboardingSession", [sessionConfig]);
Migration: Wrap your configurationId and any other session parameters in a JSON object and pass that object as the first element of the arguments array.
The same applies to startWorkflow and startFlow, which also accept a session config object as the first argument.
Updated startOnboardingSection method with additional parameters
You now have to provide recordSessionConfig and sectionTag parameters when calling startOnboardingSection to set the session recording configuration and section tagging.
Expected crashes when running in a virtual environment on Android
It is expected that the app crashes with the following stacktraces when a virtual environment is used. For example:
java.lang.NullPointerException
at com.incode.welcome_sdk.ThemeConfiguration$Builder.setLabelSmallStyle(SourceFile:1066)
at com.incode.welcome_sdk.f.c(SourceFile:150)
at com.incode.welcome_sdk.data.local.m.as(SourceFile:22)
at com.incode.welcome_sdk.IncodeWelcome.startOnboardingSection(SourceFile:18)
java.lang.NullPointerException: Attempt to get length of null array
at com.incode.welcome_sdk.data.IncodeWelcomeRepository.d(SourceFile:320)
at com.incode.welcome_sdk.data.IncodeWelcomeRepository.i(SourceFile:214)
Selfie V2: No Internet Error Screen Retry Button Change on Android
The retry button label shown on the Selfie Scan "No internet" error screen now uses a dedicated string resource:
<string name="onboard_sdk_face_scan_retry">Refresh</string>
The previous string was:
<string name="onboard_sdk_try_again">Try again</string>
If you overrode onboard_sdk_try_again to customize the retry button on the no internet screen, you must now override onboard_sdk_face_scan_retry instead.
The onboard_sdk_try_again string is still used for other retry scenarios.
Selfie V2 - Capture-Only Mode Success Screen Text Change on Android
In capture-only mode, the Selfie Scan success screen now uses a different string resource:
<string name="onboard_sdk_face_captured">Face captured!</string>
This previously used string is still in use for non-capture-only mode and should be kept in your resources:
<string name="onboard_sdk_enroll_success">Success!</string>
ID Capture and Selfie V2: Permission Open Settings Screen Text Change on Android
The Open settings label shown on the Permission open settings screen now uses a dedicated string resource:
<string name="onboard_sdk_permission_allow_permission_action">Allow permission</string>
This previously used string is still in use for the Geolocation module and should be kept in your resources:
<string name="onboard_sdk_permission_open_setting_action">Open settings</string>
String Customization on iOS
Removed localization key incdOnboarding.curp.add.generate.
Renamed localization keys:
incdOnboarding.curp.generation.last.name.placeholder->incdOnboarding.curp.generation.first.last.name.placeholderincdOnboarding.curp.generation.name.placeholder->incdOnboarding.curp.generation.first.name.placeholder
Migration to 4.1.0
Migration to 4.1.0
Upload error screen customization on Android:
If you previously customized the upload error screen, add the following new string resource:
Add this string:
<string name="onboard_sdk_validation_error_button_text">Scan your ID</string>
Previous string:
<string name="onboard_sdk_id_capture_tutorial_title">Scan your ID</string>
This string is now used only for customizing the ID Capture V2 tutorial screen title.
Changed default values in FaceMatch module config on Android (optional)
With the move to UxV2, the showUserExists config is now false by default.
Migrate any custom ThemeConfiguration to the V2 equivalent on Android
If your previous integration had any UI customization in supported modules through Theme Configuration, these customizations will now need to be migrated to the equivalents in UXv2. See the Migrating Theme Configurations to UXv2 Guide for more details.
Migration to 4.0.0
Update string resources for the "Need Help" screen in the IdScan v2 module on Android
The "Need Help" screen has been redesigned on Android, and the customizable strings have been replaced. If you override any of the following strings in your app, replace them with the new ones listed below.
No action is required if you do not override these strings.
Replaced string resources
Replace overrides of:
<string name="onboard_sdk_id_capture_help_title">Need help?</string>
<string name="onboard_sdk_id_capture_help_subtitle">Some considerations</string>
<string name="onboard_sdk_id_capture_help_manual_photo_button_text">Take the photo manually</string>
<string name="onboard_sdk_id_capture_help_align_title">Center your document in the frame</string>
<string name="onboard_sdk_id_capture_help_align_subtitle">The photo will be taken automatically</string>
<string name="onboard_sdk_id_capture_help_blur_title">Avoid blurriness on the document</string>
<string name="onboard_sdk_id_capture_help_blur_subtitle">Zoom in and out, or tap on the document</string>
<string name="onboard_sdk_id_capture_help_glare_title">Avoid glare on the document</string>
<string name="onboard_sdk_id_capture_help_glare_subtitle">Find a better lighting to avoid reflections</string>
<string name="onboard_sdk_id_capture_help_darkness_title">Avoid darkness on the document</string>
<string name="onboard_sdk_id_capture_help_darkness_subtitle">Find a place with better lighting</string>
with:
<string name="onboard_sdk_id_capture_common_issues_title">Common issues</string>
<string name="onboard_sdk_id_capture_common_issues_glare_title">Glare present</string>
<string name="onboard_sdk_id_capture_common_issues_glare_subtitle">Tilt the ID slightly up or down to minimize the reflection</string>
<string name="onboard_sdk_id_capture_common_issues_blur_title">Blur present</string>
<string name="onboard_sdk_id_capture_common_issues_blur_subtitle">Move ID further away or closer to your phone until the image is focused</string>
<string name="onboard_sdk_id_capture_common_issues_info_not_readable_title">Info is not readable</string>
<string name="onboard_sdk_id_capture_common_issues_info_not_readable_subtitle">Minimize camera shake by holding your phone steady</string>
<string name="onboard_sdk_id_capture_common_issues_try_again_button">@string/onboard_sdk_try_again</string>
Upgrade compileSdk on Android
With the update of the internal CameraX dependencies, you will need to upgrade your project's compileSdk to level 35:
compileSdk 35
Update Gradle Wrapper on Android
Android Gradle Wrapper 8.6.0 requires Gradle 8.7 or higher.
Update your Gradle wrapper configuration in gradle/wrapper/gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
If you use any of the following optional dependencies on Android, make sure to update to the latest versions
implementation 'com.incode.sdk:nfc:1.5.2'
Response Key Name Changes (Breaking Changes)
This version introduces breaking changes to ensure cross-platform consistency between Android and iOS response structures. The following response keys have been renamed:
Phone Number Module
Before:
{
"phone": {
"phone": "+1234567890"
}
}
After:
{
"phoneData": {
"phone": "+1234567890"
}
}
Migration: Update your code to use phoneData instead of phone when accessing phone number results.
cordova.exec(function(winParam) {
- const phoneNumber = winParam.phone.phone;
+ const phoneNumber = winParam.phoneData.phone;
}, function(err) {
console.log("Error: "+ err);
}, "Cplugin", "startOnboardingSection", [{"module":"addPhone"}]);
Signature Module
Before:
{
"signaturePath": {
"status": "success"
}
}
After:
{
"signatureData": {
"status": "success"
}
}
Migration: Update your code to use signatureData instead of signaturePath when accessing signature results.
cordova.exec(function(winParam) {
- const status = winParam.signaturePath.status;
+ const status = winParam.signatureData.status;
}, function(err) {
console.log("Error: "+ err);
}, "Cplugin", "startOnboardingSection", [{"module":"addSignature"}]);
Face Match Module - Existing User Field
Before:
{
"faceMatchData": {
"status": "match",
"confidence": 1,
"isExistingUser": true,
"isFaceMatched": true,
"isNameMatched": true
}
}
After:
{
"faceMatchData": {
"status": "match",
"confidence": 1,
"existingUser": true,
"isFaceMatched": true,
"isNameMatched": true
}
}
Migration: Update your code to use existingUser instead of isExistingUser when accessing face match results.
cordova.exec(function(winParam) {
- const isExisting = winParam.faceMatchData.isExistingUser;
+ const isExisting = winParam.faceMatchData.existingUser;
}, function(err) {
console.log("Error: "+ err);
}, "Cplugin", "startOnboardingSection", [{"module":"addFaceMatch"}]);
Geolocation Module
Before:
{
"geodata": {
"addressFields": {
"city": "Belgrade",
"colony": "Zvezdara",
"postalCode": "",
"street": "Banjska",
"state": ""
}
}
}
After:
{
"geoLocationData": {
"addressFields": {
"city": "Belgrade",
"colony": "Zvezdara",
"postalCode": "",
"street": "Banjska",
"state": ""
}
}
}
Migration: Update your code to use geoLocationData instead of geodata when accessing geolocation results.
cordova.exec(function(winParam) {
- const city = winParam.geodata.addressFields.city;
+ const city = winParam.geoLocationData.addressFields.city;
}, function(err) {
console.log("Error: "+ err);
}, "Cplugin", "startOnboardingSection", [{"module":"addGeolocation"}]);
User Consent Module (New Standardized Key)
Before:
// User consent result was previously returned inconsistently or not at all
After:
{
"userConsentData": {
"status": true
}
}
Migration: If you're using the user consent module, the result is now consistently returned under the userConsentData key on both platforms.
cordova.exec(function(winParam) {
const consentGiven = winParam.userConsentData.status;
// Process consent status
}, function(err) {
console.log("Error: "+ err);
}, "Cplugin", "startOnboardingSection", [
{"module":"addUserConsent", "title":"Privacy Policy", "content":"..."}
]);
Why These Changes?
These changes ensure that the JavaScript layer receives identical response structures from both Android and iOS platforms, making it easier to write cross-platform code without platform-specific conditionals.
Document Validation Module - documentData Structure
After (Version 4.0.0):
{
"documentData": {
"type": "addressStatement",
"image": "<base64String>",
"address": {
"city": "",
"colony": "",
"postalCode": "",
"street": "",
"state": ""
},
"data": "<rawData>"
}
}
Migration: The structure is now standardized with clear field names. The type field indicates the document type (e.g., "addressStatement", "medicalDoc", "paymentProof"), image contains the base64-encoded image, and address contains structured address information when available.
ID Scan Module - frontIdData and backIdData Structure
Before:
{
"frontIdData": {
"scanStatus": "success",
"idImageBase64": "<base64String>",
// ... other Gson-serialized fields
}
}
After (Version 4.0.0):
{
"frontIdData": {
"status": "ok", // Renamed from 'scanStatus'. On success: "ok", on error: "unknown", "errorClassification", "errorGlare", "errorSharpness", "errorReadability", "errorInCapture" (iOS only), "errorUnacceptableID" (iOS only), "wrongSide" (iOS only)
"image": "<base64String>", // Renamed from 'idImageBase64'
"classifiedIdType": "ID", // Classified document type
"idCategory": "primary", // 'primary' or 'secondary'
"chosenIdType": "id" // Chosen ID type: 'id' or 'passport'
}
}
Migration: Update your code to use the new field names:
cordova.exec(function(winParam) {
- const scanStatus = winParam.frontIdData.scanStatus;
+ const scanStatus = winParam.frontIdData.status;
- const idImage = winParam.frontIdData.idImageBase64;
+ const idImage = winParam.frontIdData.image;
+ const idCategory = winParam.frontIdData.idCategory;
}, function(err) {
console.log("Error: "+ err);
}, "Cplugin", "startOnboardingSection", [{"module":"addFrontId"}]);
Note: The same structure applies to backIdData.
ID Process Module - processIdData Structure
After (Version 4.0.0):
{
"processIdData": {
"extendedOcrData": "<jsonString>", // Extended OCR data as JSON string
"data": { // Structured OCR data
"address": { // Address fields
"city": "",
"colony": "",
"postalCode": "",
"street": "",
"state": ""
},
"fullAddress": "", // Complete address string
"birthDate": 0, // Timestamp in milliseconds
"expirationDate": 0, // Unix timestamp
"gender": "",
"name": "", // Full name
"issueDate": 0, // Unix timestamp
"numeroEmisionCredencial": "" // Credential emission number
}
}
}
Migration: The OCR data is now structured with clear field names and types. Date fields are provided as timestamps for easier manipulation. Access the structured data through the data field:
cordova.exec(function(winParam) {
const ocrData = winParam.processIdData.data;
const fullName = ocrData.name;
const birthDate = new Date(ocrData.birthDate);
const address = ocrData.address.city;
}, function(err) {
console.log("Error: "+ err);
}, "Cplugin", "startOnboardingSection", [{"module":"processId"}]);
Selfie Scan Module - selfieData Structure
After (Version 4.0.0):
{
"selfieData": {
"status": "success",
"image": "<base64String>",
"spoofAttempt": false
}
}
Migration: The structure now includes explicit status and spoof detection fields for better fraud prevention handling.
Government Validation Module - govresult Structure
Before:
{
"govresult": true
}
After (Version 4.0.0):
{
"govresult": {
"status": true
}
}
Migration: Update your code to access the status field within the govresult object:
cordova.exec(function(winParam) {
- const isValidated = winParam.govresult;
+ const isValidated = winParam.govresult.status;
}, function(err) {
console.log("Error: "+ err);
}, "Cplugin", "startOnboardingSection", [{"module":"governmentValidation"}]);
Approve Module - approveData Structure
After (Version 4.0.0):
{
"approveData": {
"status": "approved",
"id": "<uuid>",
"customerToken": "<token>"
}
}
Migration: The approve result is now structured with clear field names. Previously all fields from the ApproveResult object were serialized via Gson. Now only the essential fields are exposed with consistent naming.
cordova.exec(function(winParam) {
const approvalStatus = winParam.approveData.status;
const sessionId = winParam.approveData.id;
const token = winParam.approveData.customerToken;
}, function(err) {
console.log("Error: "+ err);
}, "Cplugin", "startOnboardingSection", [{"module":"approve"}]);
NFC Scan Module - nfcData Structure
After (Version 4.0.0):
{
"nfcData": {
"birthDate": "",
"compositeCheckDigit": "",
"dateOfBirthCheckDigit": "",
"documentCode": "",
"documentNumber": "",
"documentNumberCheckDigit": "",
"expirationDateCheckDigit": "",
"expireAt": "",
"gender": "",
"issuingStateOrOrganization": "",
"nationality": "",
"optionalData1": "",
"optionalData2": "",
"personalNumber": "",
"personalNumberCheckDigit": "",
"primaryIdentifier": "",
"secondaryIdentifier": "",
"status": true
}
}
Migration: The NFC data structure provides comprehensive passport/ID chip information read from NFC-enabled documents. All fields are extracted from the MRZ (Machine Readable Zone) and chip data.
Migration to 3.0.0
Migration to 3.0.0
- It is mandatory that all sample apps now have to provide a source from where to fetch Incode's Android dependency from. For suggested method please check out the README.md page and its Additional Steps for Android section.
Migration to 2.9.0
Migration to 2.9.0
Optional dependencies
For Android, if you use any of the following optional dependencies, make sure to update to the latest versions
implementation 'com.incode.sdk:video-streaming:1.6.0'
implementation 'com.incode.sdk:extensions:1.2.1'
implementation 'com.incode.sdk:model-face-recognition:3.5.1'
implementation 'com.incode.sdk:model-id-face-detection:3.5.1'
implementation 'com.incode.sdk:model-liveness-detection:3.2.1'
Android minSdk changes
For Android, if you use the video-streaming dependency, you need to upgrade your minSdk to 24 or higher. The requirement is coming from the OpenTok dependency, which now requires a minimum SDK version of 24. This update is necessary to ensure compatibility with the 16KB page size support mandated by Google starting from November 1st 2025. More info (https://developer.android.com/guide/practices/page-sizes).
Migration to 2.7.0
Migration to 2.7.0
For Android, if you use any of the following optional dependencies, make sure to update to the latest versions
implementation 'com.incode.sdk:model-face-recognition:3.5.0'
implementation 'com.incode.sdk:model-id-face-detection:3.5.0'
The qr-face-login dependency is no longer available and has been removed in this version of the SDK. Please update your project configuration accordingly.
Remove the qr-face-login dependency from your build.gradle:
- Update Android
minSdkVersionin you Android projects'sbuild.gradle:
buildscript {
ext {
- minSdkVersion = 21
+ minSdkVersion = 23
}
}
Remove com.incode.sdk:camera:1.1.0 dependency in your app’s build.gradle file:
dependencies {
- implementation 'com.incode.sdk:camera:1.1.0'
}
Migration to 2.5.0
Migration to 2.5.0
- Update Android to
compileSdk=34. It can be done by updatingcordova-androidpackage inpackage.json:
+ "cordova-android": "^13.0.0",
- Update iOS deployment target to minimum version
13.0and swift version to5.0. Updateconfig.xml:
+ <platform name="ios">
+ <preference name="SwiftVersion" value="5.0" />
+ <preference name="deployment-target" value="13.0" />
+ </platform>