Skip to content

fix(local-notifications)!: read config from LocalNotifications plugin object - #170

Open
jcesarmobile wants to merge 1 commit into
nextfrom
RMET-5365
Open

fix(local-notifications)!: read config from LocalNotifications plugin object#170
jcesarmobile wants to merge 1 commit into
nextfrom
RMET-5365

Conversation

@jcesarmobile

Copy link
Copy Markdown
Member

Description

fix deprecation warnings on CapConfig getString by replacing it with PluginConfig and use LocalNotifications objects to get the values from there.

Technically is a breaking change since before the change is expecting the configuration on the root of the capacitor config object, but it's not really documented and it's a bug as there is no accessors for those values (that should be in Capacitor itself, not in the plugin). Plugins should declare their own configuration, not expect them to be in Capacitor.

Also fixed some code warnings in packages/capacitor-plugin/android/src/main/java/io/ionic/backgroundrunner/plugin/api/Notification.kt

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation
  • Other (CI, chores, etc.)

Rationale / Problems Fixed

CapConfig.getString is deprecated, replace CapConfig with PluginConfig as it's not deprecated and it's what should be using.

Tests or Reproductions

Screenshots / Media

Platforms Affected

  • Android
  • iOS
  • Web

Notes / Comments

@jcesarmobile jcesarmobile changed the title fix(local-notifications): read config from LocalNotifications plugin object fix(local-notifications)!: read config from LocalNotifications plugin object Aug 28, 2026
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