github havesource/cordova-plugin-push 7.0.0

22 hours ago

What's Changed

Breaking Changes:

  • feat(android)!: bump library versions (#355)

    • androidx.core:core:1.16.0
    • com.google.firebase:firebase-messaging:24.1.0
  • feat(ios)!: bump pod Firebase/Messaging@11.8.0 (#356)

    Note: If you are using the Cordova-iOS platform version 7.x or lower, the deployment-target config preference must be set to at least 13.0 to work with Firebase/Messaging@11.8.0.

    Example config.xml:

    <platform name="ios">
      <preference name="deployment-target" value="13.0" />
    </platform>
  • fix(android)!: also clear notifications when clearBadge is true (#358)

    This fix ensures that notifications in the message center are also cleared when the clearBadge flag is set to true.

    Previously, the flag was only documented to clear the badge counter (or dots, in Android’s case). However, it was not possible to clear only the badge on Android. The badge counter/dot is not fully independent of notifications—attempting to clear the badge may fail if the associated notification is not also cleared. The behavior can also vary depending on the Android version or device.

    Additionally, there was an inconsistency between iOS and Android: iOS cleared both the badge and the notification, while Android attempted to clear only the badge.

    This update aligns the behavior across platforms, making it more consistent.

  • chore!: update dependencies (#360)

    While this commit is marked as a breaking change, it primarily affects plugin development, as it increases the required Node.js engine version. This should not impact plugin usage directly, but it is still recommended to use the latest supported Node.js release, preferably the Long-Term Support (LTS) release.

Chores, CI, & Docs:

  • chore: update package-lock.json (#361)
  • chore: move token higher and cleanup exception block (#359)
  • ci: update workflow (#362)
  • doc: clean & update

Full Changelog: 6.0.1...7.0.0

Don't miss a new cordova-plugin-push release

NewReleases is sending notifications on new releases.