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

Sample code from readme vid does not produce a notification on 10.1.8 #435

Open
AzureOle opened this issue Jul 14, 2023 · 1 comment
Open
Assignees
Labels
Android Android only issue Configuration Issue Configuration Issue

Comments

@AzureOle
Copy link

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)

@AzureOle AzureOle added the bug Something isn't working label Jul 14, 2023
@thudugala
Copy link
Owner

@thudugala thudugala added Configuration Issue Configuration Issue Android Android only issue and removed bug Something isn't working labels Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Android only issue Configuration Issue Configuration Issue
Projects
None yet
Development

No branches or pull requests

2 participants