Releases: andrehtissot/cordova-plugin-fcm-with-dependecy-updated
Reading package.json on Android build is optional
Now, for Android, when package.json is unreachable or unreadable, the build still goes on.
The user is warned in yellow, to make sure the exception is known.
Special thanks to @escanda for requesting this improvement on support, due to Phonegap Cloud Build path differences.
Cocoapods CDN only when pods minimal version is met
Now, on install, if the cocoapods version install supports CDN, the Github source is replaced by the faster CDN.
Set pods source to cocoapods Github instead of CDN
As many users reported issues to install pods from the new CDN.
The CDN source was replaced, in favour of the old one, hosted on Github.
Disabled handling of strings.xml
Back in the day, the app id and key were required to be accessible from res/strings.xml, which was handled by script. As the file changed path, this feature had been affected, and fixing it created a build error.
For this reason, the scripts have been rewritten for now, to get the majority of cases fixed.
Install configuration is now used on builds
Now, the variables given on install by --variable KEY=VALUE
, which were only effective for install, now are also used on build. Hence, the command cordova plugin add cordova-plugin-fcm-with-dependecy-updated --variable FCM_VERSION=18.0.0
would install and configure the plugin to use firebase-message version 18.0.0, instead of default 19.0.0.
Install nodejs script refactored
Before, on install, the script was only looking into "platforms/android/res/values/strings.xml" to add google service app id and key. Now, it also looks into "platforms/android/app/src/main/res/values/strings.xml". Which brings better support for newer cordova android versions.
Now, less exceptions will be silent, bringing more feedback to the user.
With colored output and bold letters for both warnings and errors.
Special thanks for @jringbox, for bringing this support issue.
Set pods source to cocoapods CDN
Replaced old github repository for the new cocoapods CDN (https://blog.cocoapods.org/CocoaPods-1.7.2/), which increases the speed of firebase dependencies download.
Special thanks to @luiscontrerasm for pointing this out and contributing to the implementation.
Improved compatibility with Androidx
Fixed lack of old support classes on newer installs.
Only internal fixes included.
Unnecessary firebase core dependency removed.
Now compatible with cordova-plugin-code-push
To be able to play well with cordova-plugin-code-push, the versions of Android's dependencies were upgraded:
com.google.firebase:firebase-messaging
:19.0.0
;com.google.gms:google-services
:4.3.3
;com.android.tools.build:gradle
:3.5.3
.
Special thanks to @aserranoo for requesting it via PR.
Configurable default notification icon for Android
Changelog
ANDROID_DEFAULT_NOTIFICATION_ICON included as a variable.
Now it is possible to define the default icon for notifications as com.google.firebase.messaging.default_notification_icon
To be configure, just install this plugin by using the variable, like:
cordova plugin add cordova-plugin-fcm-with-dependecy-updated --variable ANDROID_DEFAULT_NOTIFICATION_ICON="@mipmap/notification_icon"
Special thanks to @mauricioLopezRamirez for initial implementation #17.