connectycube-flutter-call-kit icon indicating copy to clipboard operation
connectycube-flutter-call-kit copied to clipboard

Timeout, callback

Open a7mdragab opened this issue 1 year ago • 3 comments

Dears, Is there any way to detect timeout and make call back btn appear?

Thanks in advance

a7mdragab avatar Feb 20 '24 11:02 a7mdragab

in the current realisation required feature is unavailable. you can try to implement it by yourself using the callback onCallIncoming/onCallIncomingWhenTerminated where you can start your timer and after timer is over you can cancel the call notification and display your own with the required buttons.

TatankaConCube avatar Feb 20 '24 15:02 TatankaConCube

I tried using the onCallingIncoming callback but it didn't seem to execute. I have: ConnectycubeFlutterCallKit.instance .init(onCallAccepted: _onCallAccepted, onCallRejected: _onCallRejected, onCallIncoming: _onCallIncoming); The accepted and rejected callbacks work but the call incoming did never seem to trigger. I assume this should trigger when I show the callkit using ConnectycubeFlutterCallKit.showCallNotification(callEvent);

coreyfreeman82 avatar May 01 '24 13:05 coreyfreeman82

the callbacks onCallIncoming/onCallIncomingWhenTerminated will be executed in a case when the plugin shows CallKit by itself by the push notification. if you show the CallKit by yourself it means that you know when you start to do it, and you can start your timer there.

TatankaConCube avatar May 02 '24 14:05 TatankaConCube