invertase / notifee

⚛️ A feature rich notifications library for React Native.
https://notifee.app
Apache License 2.0
1.88k stars 228 forks source link

incrementBadgeCount - createTriggerNotification #974

Closed sz-33 closed 8 months ago

sz-33 commented 10 months ago

Hello with I'd like to add a badgeCount that increments with createTriggerNotification

but badgeCount : ( await notifee.getBadgeCount()) + 1

add a single badge

Thanks for your comments

  try {
  await notifee.createTriggerNotification( 
    {
      id: channelId,
      title,
      body,
      ios: {
        sound: 'default',
       badgeCount: ( await notifee.getBadgeCount()) + 1,

      },
        android: {
        channelId: channelId,
      },
    },
    trigger
  );
github-actions[bot] commented 9 months ago

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.