我们有一个 Android 应用程序可以与 IBM Mobile Foudation Platform 8.0' AppAuthenticity 配合使用。所以我们不得不将应用拆分成多个安卓模块,AppAuthenticity 从那以后就没有工作了。当尝试在启用 AppAuthenticity 的情况下登录时,没有响应,即永远不会触发成功或错误回调。
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));
}
});
}