首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Sinch验证不适用于英国号码

Sinch验证不适用于英国号码
EN

Stack Overflow用户
提问于 2016-06-17 14:47:13
回答 1查看 345关注 0票数 1

我已经实现了SinchVerification,下面是我的代码

代码语言:javascript
复制
Config config = SinchVerification.config().applicationKey(getResources().getString(R.string.sinch_app_key)).context(getApplicationContext()).build();
final Verification verification = SinchVerification.createSmsVerification(config, phone, listener);
verification.initiate();

它适用于印度和美国,但不知何故不适用于英国,它使用下面的logcat调用onVerificationFailed(Exception e)方法。

电话号码类似于+44*

代码语言:javascript
复制
com.sinch.verification.CodeInterceptionException: Did not receive sms.
at com.sinch.verification.internal.sms.SmsInterceptor.onError(SmsInterceptor.java:135)
at com.sinch.verification.internal.sms.SmsInterceptor.access$100(SmsInterceptor.java:19)
at com.sinch.verification.internal.sms.SmsInterceptor$1.run(SmsInterceptor.java:78)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

我也查看了sinch的官方文档,有国家可用的运营商,我的运营商是Telefonica O2 UK,有sinch的支持。

EN

回答 1

Stack Overflow用户

发布于 2017-11-09 14:13:44

我也有同样的例外。您需要做的是:

  1. 转到您的Sinch开发者帐户仪表板
  2. 应用程序=>短信=>激活短信
  3. 您将收到一封电子邮件。回复包含所需详细信息的电子邮件,他们将为您激活该邮件。
  4. 您的工作完成!
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37874868

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档