Skip to content

[firebase-messaging] onNotificationTap not called when app was closed  #77

Closed
@jessorlisa

Description

@jessorlisa

Issue with message handlers in @nativescript/firebase-messaging

Angular flavor

Handlers are added in a service: FirebaseService (src/app/core/services/firebase/firebase.service.ts)

3 test scenarios:

  • ✅ FCM message received while in foreground: onMessage (Android/iOS)
  • ✅ notification tapped while in background: onNotificationTap (Android/iOS)
  • ❗ notification tapped while closed: none (Android/iOS)

Expected result: onNotificationTap is called when app was closed and notification was tapped.

I set up a simple demo project to show the current issue:
https://github.com/jessorlisa/demo-issues-nativescript-ng/tree/issue/firebase-messaging

All relevant information can be found in the "Issue description" and "Reproduction" section.

Initially reported here: #42

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions