Skip to content

Commit 7addec0

Browse files
committed
Merge branch 'v7.0.0-beta' of github.com:andrehtissot/cordova-plugin-fcm-with-dependecy-updated into v7.0.0-beta
2 parents 5a0a413 + 1052e3a commit 7addec0

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
[![Known Vulnerabilities](https://snyk.io/test/github/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/badge.svg?targetFile=package.json)](https://snyk.io/test/github/andrehtissot/cordova-plugin-fcm-with-dependecy-updated?targetFile=package.json)
1212
[![DeepScan grade](https://deepscan.io/api/teams/3417/projects/5068/branches/39495/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=3417&pid=5068&bid=39495)
1313

14-
### Version 7.0.0 Beta (04/06/2020)
14+
## Features
1515

16-
JS methods refactored for a more modern approach:
1716
- [As its own](https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/blob/v7.0.0-beta/README.md#as-its-own)
1817
- [FCM.clearAllNotifications()](https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/blob/v7.0.0-beta/README.md#fcmclearallnotifications)
1918
- [FCM.createNotificationChannel()](https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/blob/v7.0.0-beta/README.md#fcmcreatenotificationchannel)
@@ -97,7 +96,7 @@ FCM.onNotification((payload: object) => {
9796
})
9897
```
9998

100-
:warning: This doesn't re-trigger the initial push event, as it used to do. Alternatively, you can have access of the notification that started the app by calling the `FCM.getInitialPushPayload()`.
99+
:warning: If the subscription to notification events happens after the notification has been fired, it'll be lost. As it is expected that you'd not always be able to catch the notification payload that the opened the app, the `FCM.getInitialPushPayload()` method was introduced.
101100

102101
##### FCM.onTokenRefresh()
103102

@@ -191,6 +190,12 @@ this.fcm.onTokenRefresh().subscribe((token: string) => {
191190

192191
After a lot of work, the first release of the plugin https://github.com/andrehtissot/cordova-plugin-fcm-image-support is out. Which should enable the support, just by installing it.
193192

193+
## Changelog
194+
195+
### Version 7.0.0 Beta (04/06/2020)
196+
197+
JS methods refactored for a more modern approach and Ionic support included.
198+
194199
### Version 6.4.0 (21/05/2020)
195200

196201
The `FCMPlugin.requestPushPermissionIOS` function now, not only triggers the request alert, but also returns, as boolean, if the permission was given.
@@ -464,18 +469,18 @@ Free testing server: https://cordova-plugin-fcm.appspot.com
464469
{
465470
"notification":{
466471
"title":"Notification title",
467-
"body":"Notification body",
472+
"body":"Notification body", // required
468473
"sound":"default",
469-
"click_action":"FCM_PLUGIN_ACTIVITY",
474+
"click_action":"FCM_PLUGIN_ACTIVITY", // required
470475
"icon":"fcm_push_icon"
471476
},
472477
"data":{
473478
"param1":"value1",
474479
"param2":"value2"
475480
},
476-
"to":"/topics/topicExample",
477-
"priority":"high",
478-
"restricted_package_name":""
481+
"to":"/topics/topicExample",
482+
"priority":"high",
483+
"restricted_package_name":""
479484
}
480485
//sound: optional field if you want sound with the notification
481486
//click_action: must be present with the specified value for Android

0 commit comments

Comments
 (0)