twilio / video-quickstart-ios

Twilio Video Quickstart for iOS
https://www.twilio.com/docs/api/video
MIT License
457 stars 177 forks source link

Audio call getting disconnect after few seconds in background or lock screen In TwilioVideo SDK 4.0 iOS 14 #575

Closed FlexsinMobile closed 3 years ago

FlexsinMobile commented 3 years ago

Description I am using Programmable Video SDK for audio video calls. This feature was working fine 5-6 months back. If we pick the call from lock screen then it gets disconnect when my device screen gets dim after few seconds. However if we pick call when the app is foreground then it works well. If we pick call and then put the app in background then also call is getting disconnect after few seconds This happens with audio video call both.

Steps to Reproduce Lock Device. Receive Call from some other device. Pick call. Call will start and audio will come fine. After few seconds, Device Screen will get Dim or off. Call will disconnect, but on the other hand call is getting continue. On Debugger this message is coming. Message From Debugger: Terminated due to signal 9. This happens with audio video call both

Expected Behavior Call should work fine for longer time.

Reproduces How Often 98%

Logs Terminated due to signal 9.

Programmable Video SDK 3.7.0 via CocoaPods

Xcode 12

iOS Version 14.1

iOS Device iPhone 7

App Permissions Audio Location VOIP Background Fetch Remote Notifications Background Processing

FlexsinMobile commented 3 years ago

Hello Team,

I am waiting for your response. Kindly suggest so I can fix the issue ASAP.

Looking forward for quick response.

Thanks

ceaglest commented 3 years ago

Hi @FlexsinMobile,

Sorry for the delayed response. Right now we don't have enough information to reproduce the issue.

Unlike Voice, the Video SDK doesn't natively support push notifications. Can you please give me more information about how you are accepting a call in the background? Is it similar to our Video CallKit example but using PushKit to receive VOIP pushes?

Programmable Video SDK 3.7.0 via CocoaPods

There are bug fix releases that you do not have. Can you please update to 3.8.0 and retest?

Logs Terminated due to signal 9.

Can you provide the debugger logs (set the logLevel to debug) instead of just one line? Can you set a breakpoint and catch the app when it is being terminated? If the app is crashing then I would like to know if it is in Twilio Video code or not.

Best, Chris

piyushtank commented 3 years ago

Closing the ticket due to no activity. Please feel free to re-open or file a new ticket if you run into any issues.

FlexsinMobile commented 3 years ago

Hello Piyush,

The issue started coming again. I am sending Pushkit notification for audio call in TwilioVideo SDK. Also receiving it on Callkit. The call works for few seconds after receiving it. But it disconnects after few few seconds.

Now I am using TwilioVideo SDK ver 4.0.

But the issue is happening again for me.

Please suggest.