cognalys校验错误550和551 [英] cognalys verification error 550 and 551

查看:163
本文介绍了cognalys校验错误550和551的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用cognalys SDK在我的应用程序进行用户验证,但我得到它没有在其网站上列出的错误551和550,我不知道它们是什么,这里是code使用:

I'm using cognalys sdk in my app for user verification but i get the errors 551 and 550 which are not listed on their site and I don't know what are they, here is the code I use:

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();

                    }
                });

而不是数量,我把我的电话号码从我的code,我得到的未接来电,但土司失败,在我的日志错误550显示出来,有谁能够告诉我这是什么意思?

instead of number I put my number from my code, I get the missed call but the toast "failed" shows up with error 550 in my log, can anybody tell me what does it mean?

推荐答案

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

不要从他们的网站使用的罐子。下载GitHub上的之一,它包括在您的项目。然后,你必须使他们的code的变化。

Don't use the jar from their website. Download the one on github and include it in your project. Then you have to make a change in their code.

在类CallListnerHelper,当一个呼叫到来时,来电号码进行比较他们发送号码的列表。在我的Xperia Z3C,输入编号开头为00送他们一些例外的列表中所有以'+'。比较总是失败,所以你必须处理。请使用以下库: https://github.com/googlei18n/libphonenumber

In the class CallListnerHelper, when a call comes, the incoming number is compared to a list of numbers they send. On my Xperia Z3c, the incoming number starts with 00. They send the list of excepted number all starting with '+'. The comparison always fails, so you have to handle that. Use the following library: https://github.com/googlei18n/libphonenumber

这篇关于cognalys校验错误550和551的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆