forked from fechanique/cordova-plugin-fcm
-
-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added onFirebaseDataNotificationIOS notes
- Loading branch information
1 parent
789ed4d
commit 48d4883
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,22 @@ | |
[![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) | ||
|
||
|
||
### Version 4.6.0 (04/04/2020) | ||
|
||
For the IOS, if app is on the foreground and the app receives a `data` push notification, the data can be retrieved by setting the callback to the new method: `FCMPlugin.onFirebaseDataNotificationIOS`. | ||
|
||
```javascript | ||
FCMPlugin.onFirebaseDataNotificationIOS( | ||
function(payload) { | ||
console.info("Message id: "+payload.messageID) | ||
console.info("Data parameters: "+payload.appData) | ||
} | ||
); | ||
``` | ||
|
||
This method is specifically implemented on IOS due to specific payload format ([src/FCMPlugin.d.ts](https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/blob/master/src/FCMPlugin.d.ts)). | ||
|
||
|
||
### Version 4.5.1 (30/03/2020) | ||
|
||
Due to a bug introduced in v4.4.3, the file `platforms/android/app/src/main/res/values/strings.xml` had two tags included on install, tags which, on build, are also included by [email protected]. Hence failing the build process. | ||
|