End Call Android Native

development_aamir_testing23
Aamir Muhammad 2 years ago
parent bce79efdd2
commit 1d7de73d28

@ -165,6 +165,7 @@ class _LoginScreenState extends State<LoginScreen> with WidgetsBindingObserver{
Future<void> connectCall() async { Future<void> connectCall() async {
try { try {
UserAutoLoginModel userLoginResponse = await ChatApiClient().getUserCallToken(userid: _iosCallPayload!.incomingCallerId!.split("-").last); UserAutoLoginModel userLoginResponse = await ChatApiClient().getUserCallToken(userid: _iosCallPayload!.incomingCallerId!.split("-").last);
if (userLoginResponse.response != null) { if (userLoginResponse.response != null) {
@ -195,9 +196,10 @@ class _LoginScreenState extends State<LoginScreen> with WidgetsBindingObserver{
Future<void> callListeners() async { Future<void> callListeners() async {
try { try {
print("CallListners Init"); print("Call Listeners Init");
FlutterCallkitIncoming.onEvent.listen((CallEvent? event) async { FlutterCallkitIncoming.onEvent.listen((CallEvent? event) async {
switch (event!.event) { switch (event!.event) {
case Event.actionCallIncoming: case Event.actionCallIncoming:
break; break;
case Event.actionCallStart: case Event.actionCallStart:

Loading…
Cancel
Save