IOS 14 UNNotificationPresentationOptions.list, .banner vs alert

  • [.list] will only show the notification in the notification center (the menu that shows when you pull down from the top)
  • [.banner] will only pop down a banner from the top like a normal push notification
  • [.list, .banner] will do both: show the banner and also make sure it’s on the list.

[.alert] does essentially the same as having [.list, .banner], from what I can tell. They just added these two options to give more granular control.

I just tested this locally and it did what I expected, so if it doesn’t work for you it may not be hitting those lines. Did you add some breakpoints to verify that those lines were getting hit?

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)