【问题标题】:cognalys verification error 550 and 551cognalys 验证错误 550 和 551
【发布时间】:2015-03-03 13:56:41
【问题描述】:

我在我的应用程序中使用 cognalys sdk 进行用户验证,但我收到了他们网站上未列出的错误 551 和 550,我不知道它们是什么,这是我使用的代码:

Cognalys.verifyMobileNumber(SignupActivity.this,"token",
                        "id","number",
                        new VerificationListner() {

                    @Override
                    public void onVerificationStarted() {

                        Toast.makeText(getApplicationContext(), "Started", Toast.LENGTH_LONG).show(); 

                    }

                    @Override
                    public void onVerificationFailed(ArrayList<String> errorList) {

                        for (String error : errorList) {
                            Log.d("abx", "error:"+error);
                        }
                        Toast.makeText(getApplicationContext(), "Failed", Toast.LENGTH_LONG).show();

                    }

                    @Override
                    public void onVerificationSuccess() {

                        Toast.makeText(getApplicationContext(), "Signed up successfully !", Toast.LENGTH_SHORT).show();
                        Intent intent = new Intent(SignupActivity.this, SetPictures.class);
                        startActivity(intent);
                        finish();

                    }
                });

我从我的代码中输入了我的号码而不是号码,但我收到了未接来电,但 toast “失败”显示在我的日志中并显示错误 550,谁能告诉我这是什么意思?

【问题讨论】:

    标签: android confirmation


    【解决方案1】:

    我们现在发送带有 + 和 00 的数字列表/数组。请你们重新检查一下。我们应该知道问题是否已解决。感谢您的宝贵更新

    【讨论】:

    • 已确认。它已修复。
    【解决方案2】:

    错误代码:https://www.cognalys.com/androidlibraryerrors/ Android lib源码:https://github.com/cognalys/cognalys-android-library

    不要使用他们网站上的 jar。在 github 上下载一个并将其包含在您的项目中。然后你必须改变他们的代码。

    在 CallListnerHelper 类中,当有来电时,来电号码与他们发送的号码列表进行比较。在我的 Xperia Z3c 上,传入号码以 00 开头。他们发送的例外号码列表均以“+”开头。比较总是失败,所以你必须处理它。使用以下库:https://github.com/googlei18n/libphonenumber

    【讨论】:

      猜你喜欢
      • 2017-01-29
      • 2013-03-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多