connectycube-flutter-call-kit
connectycube-flutter-call-kit copied to clipboard
How to use connectycube flutter callkit properly
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.
if any update
` Uuid uuid = Uuid(); CallEvent callEvent = CallEvent(sessionId: uuid.v4() ,callType: 0, callerId: 2, callerName: "robert", opponentsIds:{1234});
Future
}
Future
} 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); `