[英]Quickblox Chat Application,Android
I am using Quickblox Api for building chat Application,successfully integrated in my app,but When I am Login to Chat Application for first Time my session token also generated,calls all relevant api,except this url POST https://api.quickblox.com/chat/Dialog.json?name=shailesh&type=3&occupants_ids=2142362 , I am not getting response back only for first time but when I check isLoggedIn()ie (For Second Time) the same url give me success. 我正在使用Quickblox Api构建聊天应用程序,已成功集成到我的应用程序中,但是当我首次登录聊天应用程序时,我的会话令牌也生成了,它会调用所有相关的api,但此URL POST https://api.quickblox除外。 com / chat / Dialog.json?name = shailesh&type = 3&occupants_ids = 2142362 ,我没有第一次得到响应,但是当我检查isLoggedIn()ie(第二次)时,相同的URL给我成功。
Please help me, Thanks in Advance. 请帮助我,在此先感谢。
Are you sure you are passing the Jabber ID correctly? 您确定正确传递了Jabber ID吗?
Checkout: http://quickblox.com/developers/SimpleSample-chat_users-ios#Connect_QuickBlox_to_your_application 结帐: http : //quickblox.com/developers/SimpleSample-chat_users-ios#Connect_QuickBlox_to_your_application
Remember: 记得:
here's what quickblox says: 这是quickblox所说的:
QBUser user = new QBUser();
user.setId(id); //id is int
try {
user.setPassword(BaseService.getBaseService().getToken());
}catch(BaseServiceException e) {
e.printStackTrace();
// means you have not created a session before
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.