2016-06-17 4 views
1

英数で作業していない、ここに私のコードですSinch検証は私が<code>SinchVerification</code>を実装している

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)メソッドを呼び出して、英国で動作しません。

電話番号私も国で利用可能な演算子のsinchの公式ドキュメントで確認している44のようなもの**********

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) 

で、私のオペレータはTelefonica O2 UKあり、それは、 sinchによってサポートされています。

+0

こんにちは、あなたのコードに間違いがないことをご了承ください。[email protected]にメールしてください。 – cjensen

答えて

0

同じ例外がありました。何をする必要がある:

  1. ゴーあなたSinch開発者アカウントへのダッシュボード
  2. アプリ=> SMS =>あなたがメールを受け取りますSMS
  3. をアクティブにします。尋ねられた詳細とその電子メールに返信し、彼らはあなたのためにそれをアクティブにします。
  4. あなたは完了です!
関連する問題