androidibm-mobilefirstauthenticity

How to configure a Android Multi Module APP to work with IBM Mobile Foudation Platfom 8.0's AppAuthenticity


We had a Android app that had work fine with IBM Mobile Foudation Platform 8.0' AppAuthenticity. So we had to split the app into multiple android modules, and AppAuthenticity has not work since. When trying to login with AppAuthenticity enabled there is no response, ie the success or error callbacks are never fired.

https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/authentication-and-security/application-authenticity/

IBM MFP Server Version: 8.0.2019022810.
IBM MFP Android SDK Version: 8.0.+
Gradle build tool : 3.1.1
Gradle 4.4
The problem happens with debug and release apks.

Log.d("TAG", "loginMobileFirst init"); // This appears in logcat

String securityCheckName = CaixaSecurityCheckChallengeHandler.SECURITY_CHECK_NAME;

WLAuthorizationManager.getInstance()
                      .login(securityCheckName, this.getCredencial(),
            new WLLoginResponseListener() {
                @Override
                public void onSuccess() {
                    Log.d(TAG, "loginMobileFirst Success"); // This never appears in logcat
                    setLogged(true);
                    callBack.onSuccess(null);

                }

                @Override
                public void onFailure(WLFailResponse wlFailResponse) {
                    Log.d(TAG, "loginMobileFirst Failure"); // This never appears in logcat
                    Log.d(TAG, "Erro no login: " + wlFailResponse.getErrorMsg());
                    callBack.onError(context.getString(R.string.api_error_sistema_indisponivel));
                }
            });
}

Solution

  • The problem was solved deleting the directory app/src/main/jniLibs. I believe that directory was included in a old version of IBM MFP (7.1)

    Thank you, Folks!