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

Foreground and background notifications OK, but what about when the app is killed? #244

Open
daniele-andriani-io opened this issue Mar 6, 2024 · 3 comments

Comments

@daniele-andriani-io
Copy link

Hi,
The documentation talks about how the application state affects notifications while in foreground and background, but there is no information on when the application is killed. Is there anything we can do when an application is killed? Can we detect the if the application has been opened from a notification or something?

I have had complaints that the app I am working on "only" opens when a notification has been received and the application is killed, compared to when it's in the background and I change page when the notification is tapped on. I was wondering if there is something I'm missing or some logic I can add for this.

@ray007
Copy link

ray007 commented Aug 23, 2024

Not entirely sure if it's the same issue: on android I do get notification data when:

  • the notification arrives when the app is in the foreground
  • the notification arrives when the app is in the background in brought to the foreground by a tap on the system notification

When the app is not running, tapping the system notification does start it, but notification data seems to be missing.

Is this the same issue or should I open a new one?

@triniwiz
Copy link
Member

Sounds like it's being cleared before the app starts

@ray007
Copy link

ray007 commented Aug 26, 2024

Sounds like it's being cleared before the app starts

Anything I can do about that?

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

3 participants