You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Sample code described in Gerald Versluis' video does not work on latest (10.1.8). No error is thrown, but no notification is shown
Downgrading to nearest available version to the one described in the vid (10.0.3) causes this to function as expected.
To Reproduces.
Create a bew default MAUI multiplatform project in visual studio.
Navigate to MainPage.xaml.cs and update the OnCounterClicked method body to the following:
var request = new NotificationRequest
{
NotificationId = 1337,
Title = "Test Notification",
Subtitle = "Foo",
Description = "Bar",
BadgeNumber = 42,
CategoryType = NotificationCategoryType.Reminder,
Schedule = new NotificationRequestSchedule
{
NotifyTime = DateTime.Now.AddSeconds(5)
}
};
LocalNotificationCenter.Current.Show(request);
Run on Android emulator, and tap the button
Expected behavior
Within 5 seconds, a notification should appear
Platform (please complete the following information):
Pixel 5 - API 31 (Android 12.0 - API 31)
The text was updated successfully, but these errors were encountered:
Describe the bug
Sample code described in Gerald Versluis' video does not work on latest (10.1.8). No error is thrown, but no notification is shown
Downgrading to nearest available version to the one described in the vid (10.0.3) causes this to function as expected.
To Reproduces.
Create a bew default MAUI multiplatform project in visual studio.
Navigate to MainPage.xaml.cs and update the OnCounterClicked method body to the following:
Run on Android emulator, and tap the button
Expected behavior
Within 5 seconds, a notification should appear
Platform (please complete the following information):
Pixel 5 - API 31 (Android 12.0 - API 31)
The text was updated successfully, but these errors were encountered: