Open Kumargaurav11998 opened 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);`
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);`