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
Android works fine but iOS Tested on real phones and simulators notification not received.
To Reproduce
Brand new .Net7 project add Plugin.LocalNotification
`if (await LocalNotificationCenter.Current.AreNotificationsEnabled() == false)
{
await LocalNotificationCenter.Current.RequestNotificationPermission();
}
var notification = new NotificationRequest
{
NotificationId = 100,
Title = "Test",
Description = "Test Description",
ReturningData = "Dummy data", // Returning data when tapped on notification.
Schedule =
{
NotifyTime = DateTime.Now.AddSeconds(2) // Used for Scheduling local notification, if not specified notification will show immediately.
}
};
await LocalNotificationCenter.Current.Show(notification);`
System.NullReferenceException: Object reference not set to an instance of an object.
at Plugin.LocalNotification.Platforms.UserNotificationCenterDelegate.WillPresentNotification(UNUserNotificationCenter center, UNNotification notification, Action`1 completionHandler)
Describe the bug
Android works fine but iOS Tested on real phones and simulators notification not received.
To Reproduce
Brand new .Net7 project add Plugin.LocalNotification
`if (await LocalNotificationCenter.Current.AreNotificationsEnabled() == false)
{
await LocalNotificationCenter.Current.RequestNotificationPermission();
}
And of course use this :
.UseLocalNotification()
Getting this output on simulator :
Plugin.LocalNotification.LocalNotificationCenter: Error: WillPresentNotification:
System.NullReferenceException: Object reference not set to an instance of an object.
at Plugin.LocalNotification.Platforms.UserNotificationCenterDelegate.WillPresentNotification(UNUserNotificationCenter center, UNNotification notification, Action`1 completionHandler)
Sample : http://xamaringuyshow.com/wp-content/uploads/2023/06/iOSlatestNotWorking.zip
The text was updated successfully, but these errors were encountered: