ConnectyCube / connectycube-flutter-call-kit

A Flutter plugin for displaying call screen when the app in the background or terminated.
https://developers.connectycube.com/flutter
Apache License 2.0
57 stars 83 forks source link

Notification auto Hide if click somewhere or start play Ringtone #153

Open Kumargaurav11998 opened 5 months ago

Kumargaurav11998 commented 5 months ago

should come to full screen if click on the notification my code here ###

` await FlutterRingtonePlayer().playRingtone(looping: true) ; await flutterLocalNotificationsPlugin.cancelAll(); await ConnectycubeFlutterCallKit.setOnLockScreenVisibility(isVisible: true); GetStorage().write("Name", result["caller_name"]); GetStorage().write("calltype", result["call_type"]=="0"? false:true); String str = result['call_id']; int? number = int.tryParse(str); String urlList = result["caller_name"].split("/").last; String LastString = urlList.split(".").first; String imageName = "thumbnails__${LastString}.png"; CallEvent callEvent = CallEvent( sessionId: result['call_id'], callType: result["call_type"]=="0"? 2:1, callerId: number??1, callerName: result["caller_name"], opponentsIds: {number ?? 0}, callPhoto: "$ImageUrl${result["caller_image"]}".replaceAll(urlList, imageName) );

await ConnectycubeFlutterCallKit.showCallNotification(callEvent);`