I used code examples from quickblox website, but I get the following error:
signIn error: Token is required
My code is:
QBSettings.getInstance().fastConfigInit(APP_ID, AUTH_KEY, AUTH_SEC); QBAuth.createSession("test", "test",new QBCallbackImpl() { @Override public void onComplete(Result result) { if (result.isSuccess()) { // result comes here if authorization is success Log.d(TAG,"createSession success"); QBSessionResult qbSessionResult = (QBSessionResult) result; }else{ for(String s: result.getErrors()){ Log.d(TAG, "createSession error: " +s); } } } }); //getting error in here QBUsers.signIn("test","test", new QBCallbackImpl() { @Override public void onComplete(Result result) { if (result.isSuccess()) { Log.d(TAG,"signIn success"); QBUserResult qbUserResult = (QBUserResult) result; } else { for(String s: result.getErrors()){ Log.d(TAG, "signIn error: " +s); } } } });
The session is created successfully, and the user "test" exists with the password "test" on the quickblox toolbar under the application.
Please tell me what am I doing wrong?
source share