Skip to main content
This migration guide covers significant changes in the SDK API that might affect your integration.
No custom layouts? If you have not overridden any SDK layouts or views, you typically only need to update the dependency version — no code changes required.

AI Migration Helper

Select the SDK version you use now and the version you are upgrading to, then copy the prompt. It contains every migration note between the two versions, with instructions for an AI coding assistant to apply them. Paste it into the assistant opened in your project, and review the changes it makes before you commit them.

[9.2.x] -> [9.3.1]

Document Recognition Module Removed

Document Recognition has been removed and replaced by document auto capture, which is built into the sdk-api module. The sdk-docrecognition module is no longer published, so a 9.3.1 version of it cannot be resolved. Remove the dependency from your app level Gradle:
Along with the module, the photo result auto capture failure card was removed. These color resources and their IdenfyColorScheme fields no longer exist:
  • idenfyDocumentPhotoResultViewAutoCaptureFailureCardImageColor
  • idenfyDocumentPhotoResultViewAutoCaptureFailureCardTitleColor
  • idenfyDocumentPhotoResultViewAutoCaptureFailureCardBackgroundColor
The string idenfy_document_camera_preview_session_view_information_auto_capture_description_v2 was removed as well.

Document Camera Feedback Replaces the Warning Alert

The document camera now shows feedback, such as “Fit within the frame” and “Hold still…”, in a text view that the SDK adds to the camera screen. The yellow warning alert was removed from idenfy_fragment_document_camera_preview_session_v2.xml. If you have overridden idenfy_fragment_document_camera_preview_session_v2.xml, remove the idenfy_document_camera_warning_alert container together with its idenfy_iv_document_camera_warning and idenfy_textview_idenfy_iv_document_camera_warning_title children. The idenfyDocumentCameraWarningAlertTitleStyle style no longer exists, so an override that still references it does not compile. The feedback text and the document rectangle are customized with new resources: The four colors are also available as IdenfyColorScheme fields with the same names.

Camera Onboarding Instructions Redesigned

Every onboarding instruction is now a tip with an icon, a bold title and a description. The single title above the instruction list was removed. idenfy_fragment_onboarding_v2.xml and idenfy_fragment_face_authentication_initial_view_v2.xml The idenfy_tv_instructions_title text view was removed. The instructions RecyclerView is now constrained to the bottom of idenfy_instructions_progressBar with a 16dp top margin. If you have overridden either layout, remove idenfy_tv_instructions_title and update the constraint. The idenfyCameraStaticOnBoardingViewVideoDescriptionsTitleStyle style no longer exists. idenfy_item_onboarding_instructions_step_view.xml
The circle image idenfy_iv_instruction_circle was replaced by idenfy_iv_instruction_icon, and a new instruction_step_desc text view holds the description. Both new views are optional: an overridden layout that does not contain them still works, but shows neither the tip icon nor the description. Resource changes:
  • Removed color: idenfyCameraStaticOnBoardingViewVideoDescriptionsTitleColor
  • Added color: idenfyCameraStaticOnBoardingViewVideoDescriptionsDescTextColor
  • Removed strings: all idenfy_camera_static_onboarding_view_instructions_*, idenfy_camera_static_onboarding_view_face_instructions_title and idenfy_camera_onboarding_view_liveness_instructions_description_part_* keys
  • Added strings: idenfy_onboarding_title_document, idenfy_onboarding_title_face, idenfy_onboarding_description, and the idenfy_onboarding_tip_document_*, idenfy_onboarding_tip_face_* and idenfy_onboarding_tip_liveness_* title and description pairs
If you have translated or overridden the removed strings, move your copy to the new keys.

Loading Dialogs Updated

The four loading dialogs now place the animation above the title and add a description line that uses the new idenfy_loading_dialog_description string.
  • idenfy_dialog_glare_blur_loading_v2.xml, idenfy_dialog_liveness_id_check_loading_v2.xml and idenfy_dialog_identification_session_on_close_sdk_user_action_v2.xml gained a new idenfy_textview_dialog_loading_description text view.
  • idenfy_dialog_document_camera_session_document_analysis_v2.xml already had a description text view. It now shows the same idenfy_loading_dialog_description string in regular 14sp instead of bold 22sp.
idenfy_dialog_liveness_id_check_loading_v2.xml
idenfy_dialog_identification_session_on_close_sdk_user_action_v2.xml has the same structure, with idenfy_textview_dialog_document_camera_session_document_analyzation_loading_title as the title ID. idenfy_dialog_glare_blur_loading_v2.xml has the same structure, with idenfy_document_and_face_camera_results_document_analysis_title as the title string. idenfy_dialog_document_camera_session_document_analysis_v2.xml

Face Detection Indicators Removed

The face not detected icon and the face detection progress bars are no longer used and were removed from the camera layouts: If you have overridden any of these layouts, remove the views listed above. The resources they used no longer exist:
  • Colors: idenfyGreenColorV2, idenfyCameraPreviewSessionAppBarFaceNotDetectedAlertTintColor, idenfyFaceCameraPreviewSessionFaceOvalLoadingColor
  • Style: idenfyFaceCameraPreviewFaceDetectionProgressBarStyle
  • Drawables: idenfy_ic_info_alert, idenfy_ic_face_detected, idenfy_custom_drawable_face_camera_preview_session_oval_face_loading_v2
The three colors were also removed from IdenfyColorScheme. Remove any assignments to them, otherwise your code does not compile. idenfyFaceCameraPreviewSessionFaceDetectedColor now defaults to @color/idenfyBorderGreenV2. The face oval has two new colors, available both as resources and as IdenfyColorScheme fields with the same names. They are additions and need no changes: The warning color is used when the face is outside the oval, too close, too far, or when several faces or closed eyes are detected. The scan band color is used for the sweep shown inside the oval.

Custom Logo Support

The UI settings builders have a new withLogo method. It is an addition — see Customization with Custom Logo.

Minor Layout Changes

  • idenfy_fragment_country_and_document_selection_fragment.xml — idenfy_textview_verification_method_title uses android:layout_width="0dp" with app:layout_constraintWidth_default="wrap", so a long title no longer pushes the recommended badge off screen.

[9.2.1] -> [9.2.4]

Error Dialogs Refactored

Error dialogs have been refactored. The idenfy_dialog_doc_not_found.xml layout has been removed and replaced by the new idenfy_dialog_country_mismatch.xml. If you have overridden idenfy_dialog_doc_not_found.xml, remove your override and create one for the new layout instead. Several dialog backgrounds now use a shared idenfyCustomAlertDialogBackgroundColor color reference instead of per-dialog background colors. idenfy_dialog_country_mismatch.xml (new)

Glare and Blur Dialog Updated

A new summary text view (idenfy_textview_dialog_glare_blur_summary) has been added above the existing title. The title view (idenfy_textview_dialog_glare_blur_title) is now smaller (14sp, regular font) and serves as a description. If you have overridden this layout, update your override to match. idenfy_dialog_glare_blur_result_v2.xml

Mismatch Tags Dialog Updated

The mismatch tags dialog has been restructured. The icon changed to idenfy_ic_validation_error, a new description view (idenfy_textview_dialog_mismatch_tags_found_description) and additional text view (idenfy_textview_dialog_mismatch_tags_additionally) were added, and the continue button now uses a gradient background. If you have overridden this layout, update your override. idenfy_dialog_mismatch_tags_found.xml

New CPF Check Layout

A new layout idenfy_fragment_eid_session_cpf_check_v2.xml has been added for the Brazil CPF check screen. If you customize eID session views, you may want to style this new layout. idenfy_fragment_eid_session_cpf_check_v2.xml

Color Scheme for Bank Card Verification and Face Authentication

IdenfyBankCardVerificationUISettings and IdenfyFaceAuthUISettings now accept an IdenfyColorScheme instance via the withColorScheme() builder method. This lets you override SDK colors programmatically from Kotlin without XML changes. No existing APIs have changed — this is a pure addition. See Bank Card Verification - Color Scheme and Face Authentication - Color Scheme for usage examples.

[9.2.0] -> [9.2.1]

Progress Bar Color Reference Fix

The progress bar background tint in two onboarding layouts was corrected from idenfyCameraDynamicOnBoardingViewProgressBarBackgroundColor to idenfyCameraStaticOnBoardingViewProgressBarBackgroundColor. If you have overridden either of these layouts, update the android:progressBackgroundTint attribute on the idenfy_instructions_progressBar ProgressBar. idenfy_fragment_face_authentication_initial_view_v2.xml
idenfy_fragment_onboarding_v2.xml

[9.1.x] -> [9.2.0]

Landscape mode support has been added, and a new recommended document badge appears in the country and document selection view. Several layouts were updated to support these features and improve scrollability of eID session views. If you have overridden any of the following layouts, you must update your custom layouts to match the new structure.

New Landscape Layouts

Five new layout-land layouts were added for landscape orientation. If you override the corresponding portrait layouts, you should also provide landscape overrides in your res/layout-land/ directory. idenfy_fragment_document_camera_preview_session_v2.xml (layout-land) The document camera view is restructured for landscape. The toolbar and action buttons move to vertical sidebars (left 7% and right 15% of the screen), and the instructions appear as a compact bottom strip.
idenfy_fragment_face_camera_preview_session_v2.xml (layout-land) Same sidebar layout structure as the document camera above, adapted for the face camera with oval face overlay and face detection progress bars.
idenfy_fragment_face_auth_camera_preview_session_v2.xml (layout-land) Wraps the face camera landscape layout and adds a language selection button in the left sidebar.
idenfy_fragment_document_photo_result_with_questions_v2.xml (layout-land) The photo result view is wrapped in a ScrollView for landscape, with the photo constrained to 200dp height and buttons pinned to the bottom.
idenfy_fragment_face_photo_result_with_questions_v2.xml (layout-land) Same scrollable structure as the document photo result above, adapted for the face photo result view with a single question card. idenfy_fragment_eid_session_code_verification_v2.xml The content area is now wrapped in a NestedScrollView to support scrolling on smaller screens and landscape orientation. The previous flat ConstraintLayout structure was replaced with a scrollable hierarchy. idenfy_fragment_eid_session_upload_v2.xml Same scrollview wrapping as the code verification view above. idenfy_fragment_face_camera_preview_session_v2.xml The old idenfy_imageview_face_camera_preview_session_oval_face ImageView was removed. Only idenfy_imageview_face_camera_preview_session_oval_face_v2 remains. idenfy_fragment_onboarding_v2.xml The instruction video TextureView now has android:maxWidth="500dp" and app:layout_constraintWidth_max="500dp" to constrain the video width in landscape mode. You can check our updated layouts here.

[9.0.x] -> [9.1.0]

RTL Layout Support

Arabic locale support has been added. All SDK layouts now use Start/End constraints instead of Left/Right to properly support right-to-left (RTL) languages. If you have overridden any SDK layouts, you must migrate your custom layouts to use Start/End constraints instead of Left/Right. For example:
  • layout_constraintLeft_toLeftOf → layout_constraintStart_toStartOf
  • layout_constraintRight_toRightOf → layout_constraintEnd_toEndOf
  • android:layout_marginLeft → android:layout_marginStart
  • android:layout_marginRight → android:layout_marginEnd
  • android:paddingLeft → android:paddingStart
  • android:paddingRight → android:paddingEnd
  • gravity="left" → gravity="start"
  • gravity="center|start" → gravity="center_vertical|start"
Also, android:textAlignment="viewStart" was added to TextViews for proper RTL text rendering. You can check our updated layouts here.

[8.x.x] -> [9.0.0]

New iDenfy Privacy Policy View

New privacy policy view is a required step for onboarding users. idenfy_fragment_privacy_policy_v2.xml was completely redone: New Privacy Policy
A new color is used in this layout:

Country and Document Selection Steps Combined Into One View

A new Country & Document selection view was added, which combines the old two views into one. The new idenfy_fragment_country_and_document_selection_fragment.xml layout is added: New Country & Document selection
New colors are used in this layout:

Auto Country and Document Detection Feature

Along with this feature, a new card is presented in idenfy_fragment_document_camera_preview_session_v2.xml to show detected country and supported documents for it. An updated layout looks like this: New Country & Document selection

Updated UI for iDenfy Splash Screen

Both idenfy_fragment_splash_screen_v2.xml and idenfy_fragment_face_authentication_splash_screen_v2.xml were redone, we use simple white and black colors without complicated iDenfy gradients: New Splash Screen
A new color is used in this layout:

[8.7.4] to [8.7.5]

Android Default Alert Dialogs Replaced with New XML Layout

A new idenfy_dialog_generic_alert.xml layout was added that replaces the default Android alert dialogs:

[8.6.2] to [8.6.3]

Updated Face Capture Oval Design

Face Oval V2
Follow this migration guide point if you have overridden idenfy_fragment_face_camera_preview_session_v2.xml.
A new idenfy_imageview_face_camera_preview_session_oval_face_v2 oval ImageView was added, which replaces idenfy_imageview_face_camera_preview_session_oval_face in idenfy_fragment_face_camera_preview_session_v2.xml:
The idenfy_imageview_face_camera_preview_session_oval_face is still available but deprecated and will be removed in the future.

[8.5.x] to [8.6.0]

Added Realtime Blur Glare Detection in Document Capture

Follow this migration guide point if you have overridden idenfy_fragment_document_camera_preview_session_v2.xml.
With the latest realtime blur glare detection feature, a warning alert card was added to idenfy_fragment_document_camera_preview_session_v2.xml:

[8.5.x] to [8.5.2]

KYC Questionnaire FILE and IMAGE Questions Merged

idenfy_item_questionnaire_type_image_input_v2.xml has been removed.

[8.4.x] to [8.5.0]

Added Face Detection Progress View to the Camera Drawer

Follow this migration guide point if you have overridden idenfy_partial_layout_face_camera_preview_session_instructions_topsheet_root_v2.xml.
With the latest face authentication auto capture feature, a progress bar was added to idenfy_partial_layout_face_camera_preview_session_instructions_topsheet_root_v2.xml:
Along with the style:

[8.3.x] to [8.4.0]

Removed Dynamic OnBoarding View

.withConfirmationView(IdenfyOnBoardingViewTypeEnum.MULTIPLE_DYNAMIC) option is no longer available in IdenfyUISettingsV2.
Follow this migration guide point if you have implemented custom views of idenfy_fragment_onboarding_v2.xml or idenfy_fragment_face_authentication_initial_view_v2.
The idenfy_fragment_onboarding_v2.xml and idenfy_fragment_face_authentication_initial_view_v2.xml layouts have changed and no longer have idenfy_cardview_instructions_description, idenfy_constraint_layout_instructions_description, idenfy_iv_instructions_description, idenfy_textview_instructions_description views. You can safely remove them from your layouts. Also, idenfy_colors_camera_dynamic_onboarding_view.xml has been removed. Only idenfyCameraOnBoardingViewBackgroundColor, idenfyCameraOnBoardingViewLoadingSpinnerColor, idenfyCameraDynamicOnBoardingViewProgressBarBackgroundColor and idenfyCameraDynamicOnBoardingViewProgressBarForegroundColor have been moved to idenfy_colors_camera_static_onboarding_view.xml.

[8.2.x] to [8.3.0]

Removed Instructions Drawer Option from Camera View

The instructions drawer has been removed. The top drawer will remain static as if instructions were disabled, and will only hold camera descriptions and the app bar. .withInstructions(IdenfyInstructionsType.DRAWER) option is no longer available in IdenfyUIBuilderV2.
Follow this migration guide point if you have overridden idenfy_partial_layout_face_camera_preview_session_instructions_topsheet_root_v2.xml or idenfy_partial_layout_document_camera_session_instructions_topsheet_root_v2.xml.
The idenfy_partial_layout_face_camera_preview_session_instructions_topsheet_root_v2.xml and idenfy_partial_layout_document_camera_session_instructions_topsheet_root_v2.xml layouts have changed and will no longer hold instructions UI. The layout height is static and is set to @dimen/idenfy_dimen_document_and_face_camera_session_view_drawer_height:
Many views have been removed from these layouts, and constraints for idenfy_textview_camera_session_instructions_information_title have changed:
Also, idenfy_partial_layout_camera_session_instructions_topsheet_v2.xml and idenfy_partial_layout_camera_session_instructions_video_view_container_v2.xml have been removed. You can check the new layouts here. All colors and styles related to the instructions drawer have been removed. See the updated colors and styles.