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
Notification expiration TimeSpan is not working on iOS.
To Reproduce
Steps to reproduce the behavior:
SetUp the WindowNotificationManager
Create a simple notification with the default Expiration.
Show the Notification.
The Notification doesn't disappear in 5 seconds(default).
Expected behavior
The notification should hide like on desktop or android after the expiration time.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
OS: iOS
Avalonia-Version: 11.0.6
Additional context
This is how I set up the NotificationService:
public void Initialize(object? visual)
{
var topLevel = TopLevel.GetTopLevel(visual as Visual);
_windowNotificationManager = new WindowNotificationManager(topLevel)
{
Position = NotificationPosition.BottomRight,
MaxItems = 1,
};
}
How I create my notification:
public object GetComingSoonNotification()
{
return new Notification(
title: string.Empty,
message: _languageService.GetResourceFromName(COMING_SOON_MESSAGE));
}
How I show the notification:
public async Task ShowNotification(object? notification)
{
if (notification is INotification notificationObject)
{
_windowNotificationManager?.Show(notificationObject);
}
}
This same code is working well on android but on iOS the Expiration is not applying and I need to tap over any kind of button in order to hide the notification.
The text was updated successfully, but these errors were encountered:
Describe the bug
Notification expiration TimeSpan is not working on iOS.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The notification should hide like on desktop or android after the expiration time.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Additional context
This is how I set up the NotificationService:
How I create my notification:
How I show the notification:
This same code is working well on android but on iOS the Expiration is not applying and I need to tap over any kind of button in order to hide the notification.
The text was updated successfully, but these errors were encountered: