flutter_callkit_incoming icon indicating copy to clipboard operation
flutter_callkit_incoming copied to clipboard

Android Audio Focus conflict with Twilio

Open Arley011 opened this issue 1 year ago • 4 comments

After upgrading this plugin from 1.0.3 to the newest 2.0.3 version it stopped working with twilio_programmable_video. Previously, I was using flutter_callkit_incoming for handling call events/actions and then connect to call via twilio. But now, after upgrade (which includes Telecom framework usage), connect() method in twilio plugin throws an exception ActiveCallExeption:

ActiveCallException(ACTIVE_CALL, Detected an active call that is using the audio system., null)

Знімок екрана 2024-03-19 о 14 33 48

Is there a way to make it compatible by configuring something? Or maybe such configuration options can be added to this plugin?
I guess solution should be found since twilio is one of the most popular plugins for calls

Arley011 avatar Mar 19 '24 13:03 Arley011

If I remove telecomUtilities.reportIncomingCall(data) line in FlutterCallkitIncomingPlugin.kt it works fine. But I'm not sure what drawbacks will it have. @hiennguyen92, could you please check? And please, explain why Telecom Framework was added for Android in this plugin?

Arley011 avatar Mar 19 '24 18:03 Arley011

Hey @hiennguyen92 Could you help with this question?

vasilich6107 avatar Apr 30 '24 19:04 vasilich6107

Can you try with the latest version? Telecom framework removed.

hiennguyen92 avatar May 03 '24 11:05 hiennguyen92

Can you try with the latest version? Telecom framework removed.

Hey, I've already noticed that. Now all good Thanks

vasilich6107 avatar May 03 '24 11:05 vasilich6107