Skip to content

feat(push-notifications): add banner and list presentation options for iOS#2529

Merged
OS-ruimoreiramendes merged 3 commits into
mainfrom
feat/RMET-5102/deprecate-alert
May 15, 2026
Merged

feat(push-notifications): add banner and list presentation options for iOS#2529
OS-ruimoreiramendes merged 3 commits into
mainfrom
feat/RMET-5102/deprecate-alert

Conversation

@OS-ruimoreiramendes
Copy link
Copy Markdown
Contributor

Description

Added .banner and .list as new presentationOptions values for iOS, replacing the deprecated .alert presentation option. For backwards compatibility, .alert is kept but now maps to both .banner and .list on iOS.
On Android, .banner and .list trigger the same behavior as .alert.

Reference: https://outsystemsrd.atlassian.net/browse/RMET-5102

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation

Rationale / Problems Fixed

.alert in UNNotificationPresentationOptions is deprecated since iOS 14 and replaced by the more granular .banner and .list.
This PR adds support for the new values while keeping .alert working for backwards compatibility.

Tests or Reproductions

Tested on a physical iOS device using the Xcode Push Notifications Console with the following presentationOptions combinations:

  • ["banner", "list", "sound"]: banner appears + sound plays + notification in notification center
  • ["banner", "sound"]: banner appears + sound plays
  • ["list", "sound"]: no banner + sound plays + notification in notification center
  • ["alert", "sound"]: backwards compatibility behaves like ["banner", "list", "sound"]

Platforms Affected

  • Android
  • iOS
  • Web

Copy link
Copy Markdown
Contributor

@OS-pedrogustavobilro OS-pedrogustavobilro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment

Comment thread push-notifications/src/definitions.ts Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 15, 2026

Released dev build of push-notifications with dev version: 8.0.5-dev-2529-20260515T105202.0

@OS-ruimoreiramendes OS-ruimoreiramendes merged commit f266d2e into main May 15, 2026
9 checks passed
@OS-ruimoreiramendes OS-ruimoreiramendes deleted the feat/RMET-5102/deprecate-alert branch May 15, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants