Releases: andrehtissot/cordova-plugin-fcm-with-dependecy-updated
Removed JS injection through webview context
Replaced native to JS context messaging, from JS injection to event subscription.
Fixes webView.sendJavascript() deprecation (https://issues.apache.org/jira/browse/CB-6851)
As a result, FCM.onNotification()
and FCM.onTokenRefresh()
should become slightly more reliable on Android.
First version of API and documentation refactor
A lot has been done and reworked to enable users of ionic to have access to new features, and non-ionic users to be able to "async-await" out-of-the-box instead of the callbacks. And Readme rewritten to bring more clarity on how to use the current available features.
Small build improvements
FCM.onNotification() and FCM.onTokenRefresh() now returns disposables.
Improvements on removing duplicate JSDoc on src.
ionic's onRefreshToken now listens to the correct event
For Ionic's wrapper, onRefreshToken was listening to the same event as onNotification, which is now fixed.
Special thanks to @dalobstah for pointing it out.
Small improvements and fixes
- Lowered cordova-ios required version; (As requested by @Nogatz)
- Removed exported="true" for FCMPluginActivity; (As implemented by @apoorvakorde)
- Fixed build bug for apps with short name. (As requested by @apoorvakorde)
- ionic/ngx support improvements.
Small improvements and fixes
- Lowered cordova-ios required version; (As requested by @Nogatz)
- Removed exported="true" for FCMPluginActivity; (As implemented by @apoorvakorde)
- Fixed build bug for apps with short name. (As requested by @apoorvakorde)
Fixed incompatibility with [email protected]
Now, on iOS, the newly created FCMNotificationCenterDelegate class handles the sharing of UNUserNotificationCenter
delegation methods. Which allows FCM and LocalNotification to work together.
Fixed incompatibility with [email protected]
Now, on iOS, the newly created FCMNotificationCenterDelegate class handles the sharing of UNUserNotificationCenter delegation methods. Which allows FCM and LocalNotification to work together.
Js methods now return Promise and Ionic support
A lot has been done and reworked to enable users of ionic to have access to new features, and non-ionic users to be able to "async-await" out-of-the-box instead of the callbacks.
More information can be found in the Readme.
onTokenRefresh and requestPushPermissionIOS fixed for Android
Bug fixes!
Setting a callback by calling FCMPlugin.onTokenRefresh(callback)
was only triggering for iOS, although the token shouldn't commonly refresh, it is possible.
Setting a callback by calling FCMPlugin.requestPushPermissionIOS(callback)
, was not triggering the callback on Android. Now it always does with the first argument as true
.
Special thanks to @expcapitaldev, for reporting the FCMPlugin.onTokenRefresh
bug.