NativeScript/firebase

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

daniele-andriani-io opened this issue · 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.

ray007 commented

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?

Sounds like it's being cleared before the app starts

ray007 commented

Sounds like it's being cleared before the app starts

Anything I can do about that?