FIRMessagingDelegate's messaging:didReceiveMessage now supported
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
.
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).
Special thanks to @ostigley for mentioning the lack of support.