hiennguyen92 / flutter_callkit_incoming

Flutter Callkit Incoming
https://pub.dev/packages/flutter_callkit_incoming
MIT License
150 stars 237 forks source link

Android Audio Focus conflict with Twilio #498

Open Arley011 opened 1 month ago

Arley011 commented 1 month ago

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 commented 1 month ago

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?

vasilich6107 commented 2 weeks ago

Hey @hiennguyen92 Could you help with this question?

hiennguyen92 commented 1 week ago

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

vasilich6107 commented 1 week ago

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

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