voximplant / flutter_callkit

Flutter SDK for CallKit integration to Flutter applications on iOS
MIT License
53 stars 19 forks source link

MissingPluginException(No implementation found for method listen on channel plugins.voximplant.com/call_controller_events) #20

Open nerdsarena opened 2 years ago

nerdsarena commented 2 years ago

When the exception was thrown, this was the stack:

0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:7)

#1 EventChannel.receiveBroadcastStream. (package:flutter/src/services/platform_channel.dart:545:9)
YuliaGrigorieva commented 2 years ago

Hello @nerdsarena,

Could you please provide some details how to reproduce and the following information:

Best regards, Yulia Grigorieva

nerdsarena commented 2 years ago

flutter version : Flutter 2.2.3 flutter_callkit_voximplant version : flutter_callkit_voximplant: ^2.0.2+2

i see this error in log when run in android only

we know your plugin support iOS only but we face issue handle audio in iOS while app accept call from background and we tray multiple solutions but without any new result ! so we think this error my be the reason

YuliaGrigorieva commented 2 years ago

hello @nerdsarena ,

Thank you for information provided.

We wil check if we can reproduce the issue with an android app and will get back to you soon.

Regarding the issue with audio on iOS, it does not seem to be related to this error. Please check if you use FCXProviderDidActivateAudioSession/FCXProviderDidDeactivateAudioSession events in your project.

https://github.com/voximplant/flutter_callkit/blob/09b666e461135ca0fe271e668b5ac74b4c8de713/lib/src/provider.dart#L88-L98

The audio in a call should start only after CallKit activates the audio session, otherwise there might be issues to get the audio from the microphone or play audio to an audio device (speaker, receiver, headset).

Best regards, Yulia Grigorieva

nerdsarena commented 2 years ago

after investigation we found issue that audio session not active when response from background after a lot of search we understand that audio session activated from callkit it self but this not happen in our case can you help us with any sample code how to activate audio session when it's not activated thanks

similar issue https://developer.apple.com/forums/thread/64544 https://github.com/AgoraIO/Advanced-Video/issues/135 https://stackoverflow.com/questions/54007207/audio-seems-not-work-with-callkit-when-incoming-call-is-answered