6
I zostały z wykorzystaniem przykładów kodu ze strony quickblox jednak otrzymuję następujący błąd:QuickBlox Reklamowe jest wymagany błąd
signIn error: Token is required
Mój kod:
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);
}
}
}
});
Sesja jest tworzona succcessfully i użytkownik "test" istnieje z hasłem "test" na desce rozdzielczej quickblox w aplikacji.
Proszę doradzić, co robię źle?
pracuje teraz dzięki – Santiago
Ale jeśli chcę użyć API, aby sprawdzić, czy e-mail jest zarejestrowany czy nie, nie mogę zalogować się potem. –