Skip to content

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

Open
@daniele-andriani-io

Description

@daniele-andriani-io

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.

Activity

ray007

ray007 commented on Aug 23, 2024

@ray007

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

triniwiz commented on Aug 23, 2024

@triniwiz
Member

Sounds like it's being cleared before the app starts

ray007

ray007 commented on Aug 26, 2024

@ray007

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ray007@triniwiz@daniele-andriani-io

        Issue actions

          Foreground and background notifications OK, but what about when the app is killed? · Issue #244 · NativeScript/firebase