Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This space is created to document the configuration guide for Android Reg Client.

...

  • If user click on logout on the popup all the jobs that are running and scheduled jobs will stop.

  • If no jobs running in the background, Simply user will logout and navigate to login screen.

  • There are no configuration changes required for logout in ARC.

Enhanced version

Logout:

Logout from ARC will check for any running background tasks in the background. Ask the user if the user still wants to logout from the application.

  • If the user clicks on logout on the popup, all the jobs running and scheduled jobs will stop.

  • If no jobs are running in the background, the user will simply log out and navigate to the login screen.

  • No configuration changes are required to log out of ARC.

Selected Handles:

  • Inside ClientManager/RegistrationConstants.java file define variable for selectedHandle key as:

Code Block
public static final String SELECTED_HANDLES = "mosip.registration.default-selected-handle-fields";

image-20241030-051718.png

  • As shown in the above image define the selected handles as per Id-Schema in the environment. And this is the link to add / update the fields to set as selected handles by default it will navigate to develop1 branch.  

  • And then in GlobalParamRepository.java use this method to access the values of selected handle-fields

Code Block
public List<String> getSelectedHandles() {

        String value = globalParamMap.getOrDefault(RegistrationConstants.SELECTED_HANDLES, "");

        return Arrays.asList(value.split(RegistrationConstants.COMMA)).stream()

                .map(String::trim)

                .filter(item-> !item.isEmpty())

                .distinct()

                .collect(Collectors.toList());

    }


  • Inside SubmitRegistrationDto method in RegistrationServiceImpl.java use this code to add selectedHandles into the packet:

Code Block
        if(selectedHandles != null) {
            if (this.registrationDto.getFlowType().equals("NEW")) {
                this.registrationDto.getDemographics().put("selectedHandles", selectedHandles);
            }
        }

  • We have to do some changes in below files as well.

  1.  id-repository-default.properties (Click on the text to navigate to docs)

...

  1. id-authentication-default.properties (Click on the text to navigate to docs)

...