Skip to content

get notification data when user click into notification => app opened ( when app killed) #1154

@fukemy

Description

@fukemy

Hi.
I tested with android when app totally closed. I got this function triggered when received notification:


messaging().onNotificationOpenedApp(remoteMessage => {
  console.log('Notification caused app to open from background state:', remoteMessage)
})

messaging()
  .getInitialNotification()
  .then(remoteMessage => {
    console.log('Notification caused app to open from quit state:', remoteMessage)
})

But when user click into notification, app opened without any callback, then i can not get message data. Can someone help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions