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();