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

How do i tell if the user open the app by tapping the notification? #176

Closed
liuzhen2008 opened this Issue Sep 29, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@liuzhen2008

I want to navigate to a specific page when user taps a notification to open the app.

But i don't want to trigger the navigation when user has the app running in foreground.

It seems that the notification callback is fired even when the app is in foreground.. So how do i differentiate between the two situations?

@macdonst

This comment has been minimized.

Show comment
Hide comment
@macdonst

macdonst Sep 29, 2015

Member

@liuzhen2008 when you receive a notification when the app is running the value of data.additionalData.foreground is set to true. When the app is in the background and the user clicks on the notification shade then the value is false when the notification call back is invoked.

Member

macdonst commented Sep 29, 2015

@liuzhen2008 when you receive a notification when the app is running the value of data.additionalData.foreground is set to true. When the app is in the background and the user clicks on the notification shade then the value is false when the notification call back is invoked.

@macdonst macdonst closed this Sep 29, 2015

@liuzhen2008

This comment has been minimized.

Show comment
Hide comment
@liuzhen2008

liuzhen2008 Sep 29, 2015

WOW so awesome!

WOW so awesome!

@lock

This comment has been minimized.

Show comment
Hide comment
@lock

lock bot Jun 5, 2018

This thread has been automatically locked.

lock bot commented Jun 5, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.