QuickBlox Android SDK 1.2 isn't running anymore on Android API before 14

一世执手 提交于 2019-12-10 17:33:47

问题


QuickBlox (Android SDK) isn't running anymore on Android API Before 14.

When I try to create a session for QuickBlox using QBAuth.createSession(new QBCallbackImpl() {, it gives this error:

(javax.net.ssl.SSLPeerUnverifiedException: No peer certificate).

The strange thing that it was running before!

I'm using QuickBlox Android SDK 1.2.4, should I migrate to SDK 2? but it is still Beta!


回答1:


It seems that there is a problem when using QuickBlox Android SDK 1.2, highly recommended to use QuickBlox Android SDK 2 (but it still Beta!).

If we still need to use QuickBlox Android SDK 1.2, we can work around that by calling this before creating the session

QBSettings.getInstance().setTransferProtocol(TransferProtocol.HTTP);

It works like a charm.



来源:https://stackoverflow.com/questions/26158606/quickblox-android-sdk-1-2-isnt-running-anymore-on-android-api-before-14

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!