firebase icon indicating copy to clipboard operation
firebase copied to clipboard

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

Open daniele-andriani-io opened this issue 1 year ago • 3 comments

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.

daniele-andriani-io avatar Mar 06 '24 10:03 daniele-andriani-io

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?

ray007 avatar Aug 23 '24 07:08 ray007

Sounds like it's being cleared before the app starts

triniwiz avatar Aug 23 '24 09:08 triniwiz

Sounds like it's being cleared before the app starts

Anything I can do about that?

ray007 avatar Aug 26 '24 09:08 ray007