java - Unable to signUp a new user in quickblox -
i have been trying add new user quickblox referring code provided in sample-chat provided android.
i using following code.
authenticate using app_id,auth_id , secret_id.
qbsettings.getinstance().fastconfiginit(app_id, auth_key, auth_secret);
create application session
qbauth.createsession(new qbentitycallbackimpl<qbsession>() { @override public void onsuccess(qbsession qbsession, bundle bundle) { getalluser(); } @override public void onerror(list<string> errors) { // print errors came server dialogutils.showlong(context, errors.get(0)); progressbar.setvisibility(view.invisible); } }); } //sign new user // register new user final qbuser user = new qbuser("userlogin", "userpassword"); qbusers.signup(user, new qbentitycallbackimpl<qbuser>() { @override public void onsuccess(qbuser user, bundle args) { // success } @override public void onerror(list<string> errors) { // error } });
user signup not working.i able login using registered user via quickblox administration panel.
i want create new user login , create chat service same login.i new quickblox , java appreciated.
the right way call qbusers.signup inside createsession onsuccess block
because these quickblox queries asynchronous
Comments
Post a Comment