Skip to content

FIRMessagingDelegate's messaging:didReceiveMessage now supported

Compare
Choose a tag to compare
@andrehtissot andrehtissot released this 04 Apr 18:07
· 230 commits to master since this release
48d4883

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.