invertase / react-native-notifee

Moved to https://github.com/invertase/notifee
https://invertase.io/blog/open-sourcing-notifee
Other
466 stars 31 forks source link

Tag is null #382

Closed andidev closed 2 years ago

andidev commented 3 years ago

When displaying a notification with tag

  notifee.displayNotification({
      title: 'Title',
      body: 'Body',
      android: {
          channelId: 'DELIVERY',
          tag: 'DELIVERY',
      },
  });

and the calling

await notifee.getDisplayedNotifications();

notification tag is null when it should be DELIVERY

[
    {
        "notification": {
            "title": "Title",
            "id": "165401543",
            "body": "Body",
            "android": {
                "channelId": "DELIVERY",
                "group": null,
                "tag": null
            }
        },
        "date": "1631268354598",
        "id": "165401543"
    }
]
helenaford commented 3 years ago

Ah, thanks for reporting the issue. sorry for the inconvenience. I've just taken a look. I can see why this would be the case. Will mark this as a bug.

We are also working on a way to cancel by tag which will be needed if we fix this.

helenaford commented 2 years ago

fixed in release v3.0.0 (https://notifee.app/react-native/docs/release-notes#300)