Skip to content

[firebase-messaging] Missing 'foreground' property in onMessage callback on Android #182

Open
@prestopasto

Description

@prestopasto

In many instances it is desirable to handle notifications differently depending on if the message was received while the app is in the foreground vs when it is in the background. There is currently no way to determine this right now.

The old Firebase plugin by Eddy had a 'foreground' boolean property to accomplish this. Then in the 'onMessage' callback you could decide how to handle it.

https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/docs/MESSAGING.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions