Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Kumargaurav11998 opened this issue Jun 20, 2024 · 0 comments
Open

Comments

@Kumargaurav11998
Copy link

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);`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant