thudugala / Plugin.LocalNotification

The local notification plugin provides a way to show local notifications from .Net MAUI and Xamarin Forms apps .
MIT License
401 stars 66 forks source link

How does group notification work? #501

Open dg2k opened 1 month ago

dg2k commented 1 month ago

First of all, I do not think the code for group notification Wiki is correct. There is no Group property for NotificationRequest.Android and the code examples shown won't compile.

var notification = new NotificationRequest { NotificationId = 100, Title = "Summary", Description = "Summary Description", Android = { Group = "example.GROUP_01", IsGroupSummary = true } }; LocalNotificationCenter.Current.Show(notification);

The property setting Group = "example.GROUP_01", is an issue.

The example code being erroneous, what is the correct way to set a group notification whereby notifications are shown as stacked under a group (to be expanded and collapsed)?

thudugala commented 3 weeks ago

@dg2k documentation updated, can you try again