Skip to content

Commit 48d4883

Browse files
authored
Added onFirebaseDataNotificationIOS notes
1 parent 789ed4d commit 48d4883

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,22 @@
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

1414

15+
### Version 4.6.0 (04/04/2020)
16+
17+
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`.
18+
19+
```javascript
20+
FCMPlugin.onFirebaseDataNotificationIOS(
21+
function(payload) {
22+
console.info("Message id: "+payload.messageID)
23+
console.info("Data parameters: "+payload.appData)
24+
}
25+
);
26+
```
27+
28+
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)).
29+
30+
1531
### Version 4.5.1 (30/03/2020)
1632

1733
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.

0 commit comments

Comments
 (0)