Fixes:
- fix(ios): correctly set
foreground
flag whenforceShow
is enabled (#338)
- Updated the plugin version in
plugin.xml
. (It was missed in the last three patches :D)
Important Note:
This patch release fixes the implementation of the forceShow
option on iOS to align with Android's behavior.The original goal was to provide identical functionality, but the iOS implementation included unintended platform-specific behavior. While this might feel like a breaking change from version 5.0.0 (2024/11/21), it is classified as a patch release because it corrects a bug where notifications were processed without user interaction and did not align with Android's implementation. This update eliminates the need for developers to handle platform-specific cases, ensuring consistency with Android.
Fixes:
- fix(ios): dont trigger
notificationReceived
on app reload (#333) - fix(ios):
forceShow
to display toast but trigger event until tapped (#332)
Fixes:
- fix(android): add missing
import androidx.core.app.ActivityCompat
(#331)
Fixes:
- fix(ios): revert accidental change to category "
callback
" (#328) - fix(ios): update reset flags placement in
notificationReceived
(#329) - fix(ios): request new permissions based on ios config changes (#326)
- fix(android): prevent permission dialog appearing when already denied (#325)
- fix(ios): exclude configure if
FIRApp
is already configured (#321) - fix(ios): reset flags & store message after processing notification received (#319)
- fix(ios): make sure
notificationMessage
is immutable (#317)
Others:
- chore(*): typings - update comments & iOS
forceShow
option (#327) - ci: replace lock app with lock-threads workflow
Breaking:
- chore(android)!: remove before compile hook script (#307)
- fix(ios)!: duplicate notification presentation on iOS 18.0 (#303)
- feat(ios)!: move
AppDelegate
logic toPushPlugin.m
(#300) - feat(ios)!: bump
[email protected]
(#294) - feat(ios)!: extract FCM related logic to
PushPluginFCM
(#293) - chore(ios)!: remove unused & deprecated code & styling formatting (#291)
Features:
- feat(ios): extract settings into
PushPluginSettings
(#292) - feat(ios): implement
forceShow
(#276)
Fixes:
- fix(android):
getCircleBitmap
not displaying image (#311) - fix(*): add
clearNotification
to typescript definitions (#309) - fix(ios): on notification event payload & stop background task (#301)
- fix(ios): run
setApplicationIconBadgeNumber
on main thread (#302) - fix(android): clipped notification text and expand arrow (#286)
- fix(ios): add missing
critical
to typings (#271)
Others:
- chore: bump plugin.xml to 5.0.0 (#310)
- chore: revert back to
AppDelegate
(#306) - chore(ios): update all NSLog to include
[PushPlugin]
prefix (#290) - doc: update link to iOS payload keys (#312)
- doc: formatting and including 5.0.0 (#308)
Breaking:
- feat(android)!: bump platform requirement cordova-android>=12.0.0 (#243)
- feat!(ios): update Firebase Messaging to ~> 8.1.1 (#152)
- fix(windows)!: remove deprecated platform (#245)
Features:
- feat(android): bump gradle plugin kotlin to 1.7.21 (#246)
- feat(android): bump GradlePluginGoogleServicesVersion to 4.3.15 (match w/ [email protected]) (#244)
- feat(android): support targetSdkVersion >= 31 (Android 12) (#185)
Fixes:
- fix(ios): callback not called when foreground is true #101 (#102)
- fix(android): deprecated warning Html.fromHtml (#230)
- fix(android): Ask for POST_NOTIFICATIONS permission if necessary (#238)
- fix(android): PushHandlerActivity permissions regression (#183)
Others:
- dep: resolve audit with rebuilt package-lock & rebuilt push.js with new packages (#248)
- dep(npm): bump all devDependencies (#241)
- ci: bump github action workflow and dependencies (#242)
Fixes:
- fix(android): add service exported flags w/ intent-filter (#173)
- fix(android): processPushBundle flipped returned value (#160)
- fix: doc typo (#159)
Chores:
- chore: correct Bower metadata to MIT license (#166)
- chore(npm): rebuilt package-lock.json & fix audit
Docs:
- doc: add 2.x and 3.x to PLATFORM_SUPPORT.md
Overview:
In this major release, there are many breaking changes to the Android platform. The primary changes in this release are dropping Android Support Library for AndroidX, updating the Google Services Gradle Plugin requirement, refactoring the code to Kotlin, and upgrading all other third-party libraries. See below for more details.
Requirement Changes:
- Cordova-Android: 9.x
Libraries & Dependencie Updates and Changes:
- Bumped
me.leolin:[email protected]
- Bumped
Google Services Gradle [email protected]
- Migrated from Android Support Library to AndroidX
- Added
androidx.core:[email protected].+
- Added
Breaking:
- feat!(android): migrate source code to kotlin w/ refactors (#123)
- [email protected]
- add before_compile hookscript for cordova-android 9.x support
- converted all java files to kotlin
- updted target-dir path for kotlin files
- refactored with improved null checks
- removed some duplicated code
- updated logging (more logging & better tagging)¥
- feat!(android): bump platform requirements (#122)
- feat!(android): bump me.leolin:[email protected] (#121)
- feat!(android): bump Google Services Gradle [email protected] (#120)
- feat!(android): Migrate to AndroidX (#119)
- feat!(android): migrate ASL to AndroidX
- feat!(android): swap framework support-v13 w/ androidx.core
- feat!(android): force AndroidXEnabled to true
- feat!(android): bump androidx.core:[email protected].+
- doc(android): add androidx core version
Fixes:
- fix(docs): update TS type import to new package name (#109)
Chores:
- chore: rebuilt package-lock.json (#131)
- chore: bump npm dev dependencies (#132) (#133)
- chore(npm): bump devDep, rebuild package-lock & fix audit (#110)
- chore(npm): bump devDep @cordova/eslint-config@^4.0.0 w/ fixes (#144)
CI:
- ci: remove old travis configs (#128)
- ci: add codacy badge (#129)
- ci: add gh-actions badge to readme (#130)
Docs:
- doc: fixed minor typo (#98)
Overview:
This release contains breaking changes. One of these needed changes resolved issues of restoring the plugin from npm.
With this breaking change, the havesource-cordova-plugin-push
package name is no longer used. Please completely uninstall the old version before installing the new version. This will ensure that the correct package name @havesource/cordova-plugin-push
is used.
There is also an update to the installation requirements:
Version | |
---|---|
Cordova CLI | 10.0.0 |
Cordova Android | 8.0.0 |
Cordova iOS | 6.0.0 |
CocoaPods | 1.8.0 |
Breaking:
- breaking(ios): requirement bump #80
- breaking: fixed incorrect initial cordova-cli requirement 79333b2
Feature:
Chore:
- chore(
npm
): rebuiltpackage-lock.json
67e4e4b - chore(
android
): remove duplicate code #81 - chore: bump dev dependencies #79
CI & Docs:
- ci(gh-actions): bump dependencies #78
Breaking:
- breaking(android): bump fcm@18.+ #19
- breaking(android): drop phonegap-plugin-multidex dependency #21
- breaking(android): move clearAllNotifications to destroy from pause #13
Feature:
- feat(android): notification data pass #31
- feat(ios): support critical alert notifications #12
- feat(ios): increase firebase framework to 6.32.2 #42
- feat: remove cordova-support-google-services dependency #8
Fix:
- fix(android): missing channel description crash #53
- fix(android): Use app name for default channel #49
- fix(android): enable lights when lightColor is set #15
- fix(browser): corrected path to manifest file. #32
Chore:
- chore(android): set requirement >= 8.0.0 #52
- chore(android): cleanup & format #26
- chore(android): bump com.android.support:support-v13:28.0.0 #20
- chore(ios): use latest firebase library #24
- chore(npm): rebuilt package-lock.json #55
- chore(npm): properly configure for scope package #33
- chore(type-definition): Update PushNotificationStatic #14
- chore(github-pages): remove config #4
- chore: update ticket management #27
- chore: add missing build of push.js #22
- chore: match plugin.xml version w/ package.json #10
- chore: update xml namespace #9
- chore: update version requirements #7
- chore: update npm & git ignore list #6
- chore: update plugin package #1
- chore: remove unused dependencies #2
Refactor & Style:
CI & Docs:
- ci(gh-actions): add workflow #23
- ci: update travis configs #5
- doc(android): enable & set notification light with lightColor #54
- doc: cleanup docs #51
- doc: update various markdown docs #28
Since this repo is a fork from the original Adobe PhoneGap push plugin, you can continue to read the previous changelog here:
https://github.com/havesource/cordova-plugin-push/blob/phonegap-2.3.0/CHANGELOG.md