I’m using Vaadin 24.6.0 and noticed that notifications are not opened in Safari and Chrome on iOS.
I’m using a helper class like this:
public class Notification {
private Notification() {
}
public static void success(String message) {
com.vaadin.flow.component.notification.Notification notification = createNotification(message);
notification.addThemeVariants(NotificationVariant.LUMO_SUCCESS);
notification.open();
}
public static void error(String message) {
com.vaadin.flow.component.notification.Notification notification = createNotification(message);
notification.addThemeVariants(NotificationVariant.LUMO_ERROR);
notification.open();
}
private static com.vaadin.flow.component.notification.Notification createNotification(String message) {
return new com.vaadin.flow.component.notification.Notification(message, 3000, com.vaadin.flow.component.notification.Notification.Position.TOP_END);
}
}
After save for example I call
Notification.success(translate("registration.success"));
In my desktop browsers (Chrome, Safari, Firefox) the notification is displayed but on my iPhone I don’t see any notifications.
Are there any know issues?