QuickBlox / quickblox-ios-sdk

QuickBlox iOS SDK for messaging and video calling
https://quickblox.com/developers/IOS
MIT License
397 stars 358 forks source link

Call Rejection if app is terminated via CallKit #1287

Closed traditionalistic closed 3 years ago

traditionalistic commented 3 years ago

So the issue is this: I am unable to reject call if app is terminated. If the app is in foreground/background it works fine, since the app is able to get the call session, so what i do is simply set the "rejected" flag and just wait for session with correct id. Is there any way to reject call in terminated state?

Edit: I revealed that if I'm waiting long enough before pressing "end call" button in CallKit, the callSession is received and call is rejected successfully.

traditionalistic commented 3 years ago

I've found the answer: using UIApplication beginBackgroundTask solved the problem.