Skip to content

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

Description

@Kumargaurav11998

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions