Alec Kriebel
Alec Kriebel

Reputation: 192

(Quickblox) Receiving Video Calls from anywhere in the App

This applies to iOS programming specifically using QuickBlox's API for video calls.

Obviously you don't want users to receive video calls in just one view controller in the app, so you need to make users be able to receive calls anywhere in the app.

Before I spend hours figuring out how to do this, I'm wondering how to tackle this issue.

I'm guessing that it has something to do with the - (void) chatDidReceiveCallRequestFromUser function in the AppDelegate, and having an alert view pop up over any view in the apps.

How do you make QuickBlox video calls receivable while being in any view of the app?

Upvotes: 0

Views: 808

Answers (1)

Alexey Voitenko
Alexey Voitenko

Reputation: 111

In my application I created singleton class which conform QBChatDelegate protocol. In this class I implemented all needed methods and created @property with my viewController in which I realized all video chat code. So when call request coming I make all needed operation and call viewController's QBChatDelegate methods and if I need - present view controller by using TabBarController or in any other way.

Upvotes: 1

Related Questions