Releases: andrehtissot/cordova-plugin-fcm-with-dependecy-updated
iOS: Added title, subtitle, body and badge from Notification.
For iOS: Added title
, subtitle
, body
and badge
to the data given to JS.
This data is coming from notification part of the push payload, instead of only from data.
Android has been responding this way for a long time with title
and body
.
Special thanks to @marcelocch, for pointing it out on issue #153.
Global Cordova v9 required due cocoapods management inconsistency
Defined minimal version of "cordova" package supported as version 9. Due to issues of supporting lower versions and "cordova-ios@5+" without deprecated configuration.
Removed explicit definition of "Firebase/Analytics" and "Firebase/Messaging" due to lack of matching “>=” definitions between plugins.
Special thanks for @DaedalusAB, for leaving a patch that led me to understand find the issue behind it.
getInitialPushPayload fix and small improvements
-
getInitialPushPayload: Conversion of NSData* into NSDictonary* fix -- Thanks to @medeirosrafael for debugging and fixing it!
-
Fixed local variable exception is accessed from within inner class error -- Thanks to @prteekagni for reporting!
-
Added native log for getAPNSToken with value, to help with debugging.
Small improvements
- Avoided execution of install_ionic_dependencies.bat after the app is installed;
- Removed old framework dependencies (Thanks for @QuentinFarizon, for pointing it out).
Removed auto-cdnfy and added AndroidXEnabled config
- Removed auto-cdnfy due to service issues;
- Set AndroidXEnabled for cordova-android-9.0.0 (https://cordova.apache.org/announcements/2020/06/29/cordova-android-9.0.0.html).
Simplified ionic/ngx/FCM.d.ts imports
Simplified ionic/ngx/FCM.d.ts imports
Necessary to fix error mentioned by @tiagotrigger on issue #123
Improved windows support
Renamed extension scripts/install_ionic_dependencies.sh to .bat, to have it running on windows.
Simplified ionic/FCM.js and ionic/ngx/FCM.js files
- Simplified ionic/FCM.js and ionic/ngx/FCM.js files to ease building with them;
- Improved scripts/install_ionic_dependencies.sh windows support.
Simplified ionic/v4/FCM.js
Simplified ionic/v4/FCM.js file by setting the FCM function in the global context.
Fixed importing .d.ts for older Typescript versions
Simplified .d.ts files by removing the new "type" from imports and exports.