user1451893
user1451893

Reputation: 29

QuickBlox sample video chat Unauthorized Error

I am trying to run the Quickblox Video Chat sample to see if this is something that can be integrated to my app, but the sample setup is incomplete in how to get it to work. https://github.com/QuickBlox/Sample-VideoChat-ios

I have created an app, put my app keys in the sample, and created 2 users and put their information there, but still does not work.

Please, when you put sample code write ALL the information you need to get it to work. The read me file mentions nothing about having to setup new users and even I figured this out, it still does not authenticate, just giving the error "Unauthorized"

This is the code they have for the users:

    // This is test oppoents. This is 2 users' logins/passwords & ids

self.testOpponents = @[@"videoChatUser1", @65421,
                     @"videoChatUser2", @65422];

I created my own users in my registered Quickblox app and replaced the above code, but it still does not work. Is the password information supposed to go someplace here???? What is causing this to fail???

Upvotes: 0

Views: 599

Answers (1)

Rubycon
Rubycon

Reputation: 18346

If you quickly go through whole sample, you can see some comments there

for example, look at this file https://github.com/QuickBlox/Sample-VideoChat-ios/blob/master/VideoChat-sample-ios/AppDelegate.m

you can see comments that explain what all these values mean

//
// There are tests oppoents. There are 2 users' logins/passwords & ids
//
    self.testOpponents = @[@"videoChatUser1", @65421,
                      @"videoChatUser2", @65422];

videoChatUser1 - login and password of the 1st user,

65421 - ID of the 1st user

videoChatUser2 - login and password of the 2nd user,

65421 - ID of the 2nd user

hope this help

Upvotes: 0

Related Questions