Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fukemy opened this issue Sep 26, 2022 · 0 comments

Comments

@fukemy
Copy link

fukemy commented Sep 26, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant