79758008

Date: 2025-09-07 08:24:15
Score: 1.5
Natty:
Report link

based on https://github.com/invertase/notifee/issues/1140, Notifee requires id to be a defined string.

const notifId = notification.messageId != null
  ? String(notification.messageId)
  : `${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;

or

import { v4 as uuidv4 } from 'uuid';

const notifId = notification.messageId != null ? String(notification.messageId) : uuidv4();
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohammad Norozi