Skip to content Skip to sidebar Skip to footer

Quickblox Error With Custom Object (android)

I want to insert some data in my Custom-Object Class, but I get the error: 'Forbidden. Need user.'. Here's my code: HashMap fields = new HashMap

Solution 1:

In order to create/update/delete object you have to be signed in as user.

Sign-In

finalQBUseruser=newQBUser("testuser", "testpassword");

 QBUsers.signIn(user, newQBCallbackImpl() {
                @OverridepublicvoidonComplete(Result result) {
                    if (result.isSuccess()) {
                        QBUserResultqbUserResult= (QBUserResult) result;
                    } else {
                        handleErrors(result);
                    }
                }
            });

Post a Comment for "Quickblox Error With Custom Object (android)"