Skip to content

feat(local-notifications): add relevanceScore and interruptionLevel test inputs#786

Merged
OS-ruimoreiramendes merged 5 commits intomainfrom
feat/RMET-5104/dep-warning
May 8, 2026
Merged

feat(local-notifications): add relevanceScore and interruptionLevel test inputs#786
OS-ruimoreiramendes merged 5 commits intomainfrom
feat/RMET-5104/dep-warning

Conversation

@OS-ruimoreiramendes
Copy link
Copy Markdown
Contributor

Description

Add a new LocalNotificationsOptionsTest component to test the new iOS 15+ properties relevanceScore and interruptionLevel introduced in the local-notifications plugin.

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation

Rationale / Problems Fixed

PR for the local-notifications plugin changes in ionic-team/capacitor-plugins#2520

Tests or Reproductions

The new LocalNotificationsOptionsTest component is visible in the Local Notifications page. It allows setting a custom relevanceScore (0.0–1.0) and interruptionLevel (active, critical, passive, timeSensitive) and scheduling a notification with those options. On Android the component displays "Not supported on Android".

Platforms Affected

  • Android
  • iOS
  • Web

@OS-ruimoreiramendes
Copy link
Copy Markdown
Contributor Author

The CI is failing because @capacitor/local-notifications (currently published on npm) does not yet include the relevanceScore and interruptionLevel properties. This PR depends on ionic-team/capacitor-plugins#2520 being merged and published.
To test locally in the meantime, update @capacitor/local-notifications in package.json to point to your local path.

@OS-ruimoreiramendes OS-ruimoreiramendes marked this pull request as draft May 6, 2026 16:11
@OS-ruimoreiramendes OS-ruimoreiramendes marked this pull request as ready for review May 7, 2026 17:27
@OS-ruimoreiramendes OS-ruimoreiramendes merged commit 3b4933f into main May 8, 2026
2 checks passed
@OS-ruimoreiramendes OS-ruimoreiramendes deleted the feat/RMET-5104/dep-warning branch May 8, 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.

3 participants