quickblox

QuickBlox android session userinfo is null

↘锁芯ラ 提交于 2019-12-11 04:49:36
问题 I am using the quickblox for Android 23 API . I want to include user info from one caller to another, just before the call is established. For that I have used the 'userinfo' part of QBRTCSession and put in a key value pair. But for the other end, its giving null value for 'userinfo'. Could anyone please suggest the possible reason and suggest a solution? The session id is same in both the calls. Start call function- private void startCall(boolean isVideoCall) { if (opponentsAdapter

quickblox web how to upload profile picture

元气小坏坏 提交于 2019-12-11 03:39:36
问题 I'm trying to upload a profile picture (blob_id) from a javascript document and I can't find a way, I don´t know if I should use this snippets or even how to use it :( I'll be so thankfull if you could help me Thanks QB.users.update({ id: user_creds.user_id, website: "http://quickblox.com"}, function(error, response){ if(error) { console.log(error); } else { // Success } }); 回答1: sorry about this. We'll be beefing up the documentation soon. Here's how to upload a profile picture We'll have a

QuickBlox 2.0 Chat dialog - how to detect an user join or leave group chat dialog?

做~自己de王妃 提交于 2019-12-11 03:15:25
问题 I have trouble with QuickBlox when update from version 1.2.4 to version 2.0. In version 2.0 how to detect a user join or leave group chat dialog? In version 1.2.4 i use ParticipantListener but version 2.2 QBGroupChat cant not add this listener ? Thank in advance. Version 1.2.4: PacketListener participantListener = new PacketListener() { @Override public void processPacket(Packet packet) { Presence presence = (Presence) packet; if (presence.getType() == Presence.Type.available) { // user

Quickblox: Trying to update user and set blobID to zero. Does not update..?

◇◆丶佛笑我妖孽 提交于 2019-12-11 02:49:19
问题 I have a weird issue happening when trying to set blobID for the existing user zero. This has worked earlier and I do not know what may be causing this. In relation to item: Quickblox: an issue in deleting content item (picture file / blob) I need to remove blob/content reference from the user in order to remove the user object completely. Now, when trying to set blobID as zero, it does not change but instead updateUsers will return "No data was provided". So I tried to change also some other

Connect quickblox chat server from node.js

[亡魂溺海] 提交于 2019-12-11 02:16:08
问题 Please tell me the whether I have called the methods in is correct format or not var QB=require('quickblox'); var QuickBlox = require('quickblox').QuickBlox; var QBChat = require('quickblox'); var QB2 = new QuickBlox(); var params, chatUser, chatService; params = {email: 'raji@gmail.com', password: ''}; QB.init(21000,'NBRQfWA2OWwfBre','GNwMJzqPL8wZb8g'); // QuickBlox session creation QB.createSession(params, function(err, result) { if (err) { console.log(err.detail); } else { console.log

How to give photo to dialog from user's blob id?

▼魔方 西西 提交于 2019-12-11 02:07:19
问题 I'm using Quickblox, I uploaded users profile pic as said in the stack over flow (How to upload the Users profile pic and how to fetch that profile pic from another users device?) It's working fine for me. Then I'm able to see the user1 profile pic in user2 contacts.(By downloading user1's blob file and converting it into image) But now my question is, if we want to create a new chat dialog with user1, and user2 as logged in. There I should link this user1's profile pic (which is uploaded as

Quick blox chat not authenticating

与世无争的帅哥 提交于 2019-12-10 19:45:50
问题 I am using quickblox in my app to do 1 to 1 chat. The user is already login. But when I try to login the chat, I get the following error. 2014-03-31 12:42:09.532 MyChat[2175:3803] QBChat/didNotAuthenticate, error: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure> 2014-03-31 12:42:09.533 MyChat[2175:3803] -[QBContactList dealloc] -> 2014-03-31 12:42:09.533 MyChat[2175:3803] QBChat/didDisconnect, error: (null) What am I doing wrong. QBUUser *currentUser = [QBUUser

Quickblox getting a session receives “Unexpected signature” error

本秂侑毒 提交于 2019-12-10 19:08:33
问题 When getting a session, I get an "unexpected error". Here is my code to get the signature (modified from this since that code is without some imports and notably hmac.new() is used instead of hmac() since that code doesn't work for me. import sys import json import time import random import hashlib import hmac import urllib import httplib application_id = '3427' auth_key = 'PLYHedAmxwdvt59' auth_secret = '*some secret key*' nonce = str(random.randint(1, 10000)) timestamp = str(int(time.time()

Total unreadmessage count quickblox

江枫思渺然 提交于 2019-12-10 17:43:07
问题 Hello how to get the total number of unread messages in quicblox? For all dialogs. Is there any direct api call? Thanks! 回答1: Please find the ways of counting unread messages in the SDK Chat Samples. For example, iOS: http://quickblox.com/developers/SimpleSample-chat_users-ios 回答2: Here is Working code to fetch total unread-message count from quickblox (Swift) let dialogsIDs: NSSet = NSSet(array: []) QBRequest.totalUnreadMessageCountForDialogs(withIDs: dialogsIDs as! Set<String>, successBlock

Set the chat/Avatar in QuickBlox QBUUser in iOS Chat

天大地大妈咪最大 提交于 2019-12-10 17:34:56
问题 Here in QuickBlox we get the QBUUser instance of each user registered with the QuickBlox . But i did not found any property to set the avatar url for profile photo and update it. I was thinking to set url in property customData . Is this right way to set avatar Url or if any other way exist let me know. Thanks in Advance. 回答1: Finally i satisfied with customData property in QBUUser. I just created a dictionary and set url in that dictionary within some Key. Than created its JSON string and