编程语言
首页 > 编程语言> > android – 应用程序服务器问题的Sinch身份验证

android – 应用程序服务器问题的Sinch身份验证

作者:互联网

我正在尝试将我们的客户端应用程序(Android)身份验证方法从简单的ApiKey Secret身份验证更改为应用程序服务器支持的更高级身份验证.

Sinch文档告诉您从Sinch客户端构建器代码中删除Secret.因此我的代码现在看起来像这样:

mSinchClient = com.sinch.android.rtc.Sinch.getSinchClientBuilder().context(applicationContext)
            .applicationKey("API_KEY")
            .environmentHost("SINCH_SERVER")
            .userId("USER-ID")
            .build();

但这实际上导致一个异常,说我的applicationKey为空:

java.lang.RuntimeException: Unable to start service com.where.the.hell.are.you.BackgroundClientService@a7f29518 with Intent { cmp=com.where.the.hell.are.you/.BackgroundClientService }:
java.lang.IllegalArgumentException: applicationKey is empty

它看起来像Sinch SDK中的一个错误,但也许我在这里缺少其他东西?

我正在使用Sinch SDK VERSION 3.2.3 for Android.

解决方法:

Sinch Android SDK中存在一个错误,已在新版本中解决,v3.2.4可在此处获取:http://www.sinch.com/downloads/

标签:android,authentication,sinch
来源: https://codeday.me/bug/20190825/1714618.html