quickblox

quickblox error when login, android

孤街醉人 提交于 2019-12-07 14:47:48
问题 I'm using quickblox for a chat on android platform, with facebook auth, I do these steps such 1)QBSettings.getInstance().fastConfigInit(..,..,..) 2)QBAuth.createSession(this, QBQueries.QB_QUERY_AUTHORIZE_APP) 3)SmackAndroid.init(this) 4)facebook login and get a accesstoken 5)QBUsers.signInUsingSocialProvider(QBProvider.FACEBOOK, accessToken, null, this) 6)QBChatService.getInstance().loginWithUser but i have a error: (error when login: SASL authentication failed) I don't know why. can you help

- (void)chatDidReceiveMessage:(QBChatMessage *)message not working

独自空忆成欢 提交于 2019-12-07 13:54:36
问题 I have integerated QuickBlox iOS sdk v2.5. I am sending messages to a particular and they are being sent to server but for receiving a message - (void)chatDidReceiveMessage:(QBChatMessage *)message is not getting called This is what I am doing to connect [[QBChat instance] addDelegate:self]; QBUser *chatUser=[QBUser new]; chatUser.ID=[[[NSUserDefaults standardUserDefaults] objectForKey:USERID] integerValue]; chatUser.password=[[NSUserDefaults standardUserDefaults] objectForKey:PASSWORD]; [

Error:(52, 0) Gradle DSL method not found: 'сompile()' in using Quickblox API

梦想与她 提交于 2019-12-07 08:12:21
问题 I tried to use Quickblox API in my program by adding online maven dependencies. I'm using Android Studio. When I tried to build my program, it shows the following error: Error:(52, 0) Gradle DSL method not found: `сompile()` Possible causes: The project 'Nanny Watch' may be using a version of Gradle that does not contain the method. Open Gradle wrapper file The build file may be missing a Gradle plugin. Apply Gradle plugin Here is the build.gradle(Project:NannyWatch2) file: // Top-level build

quickblox base Bad timestamp for 4.1.2

主宰稳场 提交于 2019-12-07 05:37:11
问题 I'm trying to start using Quickblox, since it provides great tools for backend. I have registered on website an got credentials for my app, however I fail to start simple program to test connection: public class MainActivity extends Activity{ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); QBSettings.getInstance().fastConfigInit("3504", "NMuekBBXBg6PgST", "HaOj5bY4LgxUpPH"); QBAuth.createSession(new

Qucikblox Error: [Bad Authentication data] for twitter login in Android

我只是一个虾纸丫 提交于 2019-12-07 03:03:53
问题 I had integrated the Quickblox SDK V2.2.5 in my android application to work with Social Integration Twitter but it throws error: '{"errors":["Bad Authentication data"]}' Here following is my code:- // If in the below code I use static TOKEN & TOKEN-SECRET generated by my iOS app then it works well, whereas it is not working with Android generated TOKEN & its SECRET. QBUsers.signInUsingSocialProvider(QBProvider.TWITTER, preferences.getTwitterToken().trim(), preferences.getTwitterTokenSecret()

How to get QuickBlox token in Objective-C

旧巷老猫 提交于 2019-12-06 15:58:17
问题 Have to use Quickblox's RESTful API instead of their iOS SDK due to work restrictions, and having trouble generating a valid signature according to their tutorial. Below is the response I get from my call: 2014-07-25 16:19:12.646 test[2247:60b]response: <NSHTTPURLResponse: 0x10c41ae40> { URL:https://api.quickblox.com/session.json } { status code: 422, headers { "Access-Control-Allow-Origin" = "*"; "Cache-Control" = "no-cache"; Connection = "keep-alive"; "Content-Type" = "application/json;

Sign in Quickblox using twitter gives Bad Authentication Data error

社会主义新天地 提交于 2019-12-06 11:41:48
问题 i have successfully Signed in using facebook but when i tried twitter it says Bad Authentication request. I have orivided both Access token and Secret key. Heres code snippet QBASessionCreationRequest *extendedAuthRequest = [QBASessionCreationRequest request]; extendedAuthRequest.socialProvider = socialProvider; extendedAuthRequest.socialProviderAccessToken = @"ACCESS_TOKEN"; extendedAuthRequest.socialProviderAccessTokenSecret = @"ACCESS_TOKEN_SECRET"; [QBAuth createSessionWithExtendedRequest

'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 1 beyond bounds [0 .. 0]'

瘦欲@ 提交于 2019-12-06 11:04:35
In my application this error coming randomly when i send attachment(like Image and video) to other user,it crashes. I am using Quickblox SDK. This is the error.. NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 1 beyond bounds [0 .. 0] 2016-04-26 10:22:50.510 Sample-VideoChat[1027:12093] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 1 beyond bounds [0 .. 0]' enter code here - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView { NSLog(@"self.chatSections....%@",self.chatSections);

Quickblox: how find out whether the user is online?

与世无争的帅哥 提交于 2019-12-06 10:06:32
Is there any way to find out whether the Quickblox user is online? I'm using Quickblox iOS SDK. There are 2 ways: Using REST API - here is a guide http://quickblox.com/developers/SimpleSample-users-ios#Online.5COffline_status Using Chat contact list http://quickblox.com/developers/SimpleSample-chat_users-ios#Contact_list Swift 5 : To get opponent user's Online Status And accurate Last Seen we have to add both users in each others contactList by using addUserToContactListRequest() API. User A sends a request to become "friends" with user B . User B accepts the friend request. And now user A and

Multiple attachment in quickblox android

百般思念 提交于 2019-12-06 06:19:05
I want to upload video with it's thumbnail but unable to attach multiple files together. In android there is no way to get thumbnail of video from remote url without downloading it. Is there any way in quickblox for getting thumbnail of video ? Or is there anyway I can send thumbnail of video with the video file attachment ? Or can I send multiple attachment in quickblox ? Please provide details for this . I have searched a lot regarding this but did not find any solution. If there is any alternate way for getting thumbnail of video please provide the soltution. Thanks. Yes, you can send