Skip to content

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

Open
OS-ruimoreiramendes wants to merge 1 commit into
mainfrom
feat/RMET-5102/deprecate-alert
Open

feat(push-notifications): add banner and list presentation options for iOS#2529
OS-ruimoreiramendes wants to merge 1 commit 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

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