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

How to use connectycube flutter callkit properly

Open alito0697 opened this issue 2 years ago • 1 comments

I'm having hard time how to use this plugin because i don't where to use the code in the documentation , i don't know if it's inside the main.dart or in the firebase push notification code a lot face this problem so if anyone knows a solution please share it with us.

alito0697 avatar Nov 21 '22 17:11 alito0697

if any update

msnmuhsinpt avatar Nov 23 '22 11:11 msnmuhsinpt

` Uuid uuid = Uuid(); CallEvent callEvent = CallEvent(sessionId: uuid.v4() ,callType: 0, callerId: 2, callerName: "robert", opponentsIds:{1234});

Future _onCallAccepted(CallEvent callEvent) async {

}

Future _onCallRejected(CallEvent callEvent) async {

} Future onCallRejectedWhenTerminated(CallEvent? callEvent) async {

} Future onCallAcceptedWhenTerminated(CallEvent? callEvent) async { }

ConnectycubeFlutterCallKit.onCallRejectedWhenTerminated = onCallRejectedWhenTerminated; ConnectycubeFlutterCallKit.onCallAcceptedWhenTerminated = onCallAcceptedWhenTerminated; ConnectycubeFlutterCallKit.instance.init( onCallAccepted: _onCallAccepted, onCallRejected: _onCallRejected, ); ConnectycubeFlutterCallKit.showCallNotification(callEvent); ConnectycubeFlutterCallKit.setOnLockScreenVisibility(isVisible: true); `

alito0697 avatar Jan 21 '23 13:01 alito0697