0

IBM Mobile Foudation Platform 8.0' AppAuthenticity で正常に動作する Android アプリがありました。そのため、アプリを複数の Android モジュールに分割する必要があり、AppAuthenticity はそれ以来機能していません。AppAuthenticity を有効にしてログインしようとすると、応答がありません。つまり、成功またはエラーのコールバックが起動されません。

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

IBM MFP サーバーのバージョン: 8.0.2019022810。
IBM MFP Android SDK バージョン: 8.0.+
Gradle ビルド ツール: 3.1.1
Gradle 4.4
この問題は、デバッグおよびリリース apk で発生します。

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));
                }
            });
}
4

2 に答える 2

0

この問題は、ディレクトリ app/src/main/jniLibs を削除することで解決されました。ディレクトリは古いバージョンの IBM MFP (7.1) に含まれていたと思います。

ありがとう、みんな!

于 2019-06-26T18:24:56.283 に答える