Closed ericbui148 closed 5 years ago
I found this from quickblox document, it look like Quickblox not support similar Whatapps, skype
Calling offline users
We made it easy to call offline users.
Quickblox iOS SDK provides methods to notify an application about new events even if application is closed.
How to configure Push-notifications in your application you can find here
Assuming you have working push notifications it is very easy to notify users about new call.
Objective-CSwift
- (void)sendPushToOpponentsAboutNewCall {
NSString *currentUserLogin = [[[QBSession currentSession] currentUser] login];
[QBRequest sendPushWithText:[NSString stringWithFormat:@"%@ is calling you", currentUserLogin]
toUsers:[self.session.opponentsIDs componentsJoinedByString:@","]
successBlock:^(QBResponse * _Nonnull response, NSArray<QBMEvent *> * _Nullable events) {
NSLog(@"Push sent!");
} errorBlock:^(QBError * _Nullable error) {
NSLog(@"Can not send push: %@", error);
}];
}
I missed to upload APNS certificates. Issue is fixed
i have moved all code of PushKit framework from UsersViewController to AppDelegate, Voip Notification recieved, callkit showing incoming call, call accepted, call get connected but audio only, both users can see their own video but not of other peer. Any Help please.
Callkit is not running when the app in background, screen lock or terminate. it run ok when the app is active. This is my code