MaikuB / flutter_local_notifications

A Flutter plugin for displaying local notifications on Android, iOS, macOS and Linux
2.45k stars 1.39k forks source link

Call Style Ongoing Notification - Android #2367

Closed swarupbc closed 2 months ago

swarupbc commented 2 months ago

Describe the bug Call Style Ongoing Notification (Android only)

I want to achieve non-dismissible notifications for Ongoing Call like Whatsapp voice call with this plugin. https://developer.android.com/develop/ui/views/notifications/call-style#ongoing_call https://developer.android.com/about/versions/14/behavior-changes-all#non-dismissable-notifications

To Reproduce If I use ongoing true, user will be dismiss the notification easily.

Expected behavior I want the notification to be sticky as it's a ongoing voice call

Sample code to reproduce the problem Basic android configuration with ongoing true.

MaikuB commented 2 months ago

Please make sure you check the docs and example app as this is already supported

Edit: to clarify, this is in regards to ongoing notifications and was why I originally closed the issue. If you're after call style, then this is submitted you would need to look at submitting a PR for

swarupbc commented 2 months ago

Hi @MaikuB, I’ve already explained what I want to achieve, user can easily swipe and dismiss the ongoing notification in android 14, I want call style notification, I’ve attached the links to official documentation with the issue details.

MaikuB commented 2 months ago

As mentioned in the update to my previous response, you would need to submit a PR for that functionality yourself