|
11 | 11 | [](https://snyk.io/test/github/andrehtissot/cordova-plugin-fcm-with-dependecy-updated?targetFile=package.json) |
12 | 12 | [](https://deepscan.io/dashboard#view=project&tid=3417&pid=5068&bid=39495) |
13 | 13 |
|
14 | | -### Version 7.0.0 Beta (04/06/2020) |
| 14 | +## Features |
15 | 15 |
|
16 | | -JS methods refactored for a more modern approach: |
17 | 16 | - [As its own](https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/blob/v7.0.0-beta/README.md#as-its-own) |
18 | 17 | - [FCM.clearAllNotifications()](https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/blob/v7.0.0-beta/README.md#fcmclearallnotifications) |
19 | 18 | - [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) => { |
97 | 96 | }) |
98 | 97 | ``` |
99 | 98 |
|
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. |
101 | 100 |
|
102 | 101 | ##### FCM.onTokenRefresh() |
103 | 102 |
|
@@ -191,6 +190,12 @@ this.fcm.onTokenRefresh().subscribe((token: string) => { |
191 | 190 |
|
192 | 191 | 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. |
193 | 192 |
|
| 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 | + |
194 | 199 | ### Version 6.4.0 (21/05/2020) |
195 | 200 |
|
196 | 201 | 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 |
464 | 469 | { |
465 | 470 | "notification":{ |
466 | 471 | "title":"Notification title", |
467 | | - "body":"Notification body", |
| 472 | + "body":"Notification body", // required |
468 | 473 | "sound":"default", |
469 | | - "click_action":"FCM_PLUGIN_ACTIVITY", |
| 474 | + "click_action":"FCM_PLUGIN_ACTIVITY", // required |
470 | 475 | "icon":"fcm_push_icon" |
471 | 476 | }, |
472 | 477 | "data":{ |
473 | 478 | "param1":"value1", |
474 | 479 | "param2":"value2" |
475 | 480 | }, |
476 | | - "to":"/topics/topicExample", |
477 | | - "priority":"high", |
478 | | - "restricted_package_name":"" |
| 481 | + "to":"/topics/topicExample", |
| 482 | + "priority":"high", |
| 483 | + "restricted_package_name":"" |
479 | 484 | } |
480 | 485 | //sound: optional field if you want sound with the notification |
481 | 486 | //click_action: must be present with the specified value for Android |
|
0 commit comments