Skip to content

Commit

Permalink
Added onFirebaseDataNotificationIOS notes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrehtissot authored Apr 4, 2020
1 parent 789ed4d commit 48d4883
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 48d4883

Please sign in to comment.