react-native-notifications icon indicating copy to clipboard operation
react-native-notifications copied to clipboard

Notification count/badge doesn't show on the app icon IOS.

Open tdammy92 opened this issue 2 years ago • 5 comments

Notification count doesn't show on Ios App icon but shows on the android app icon. have gone through the documentation, I cant find anything on that.

can anyone help here 🙏🏽

tdammy92 avatar Aug 31 '23 11:08 tdammy92

I am also looking for same issue.

sharadedkey avatar Sep 29 '23 11:09 sharadedkey

I am also looking for same issue.

@sharadedkey have you found any useful fix for this ???

tdammy92 avatar Jan 17 '24 17:01 tdammy92

@tdammy92 No. I am just displaying count 1 if have notifications.

sharadedkey avatar Jan 18 '24 06:01 sharadedkey

@sharadedkey do you mind sharing that part of ur code ??. i actually tried something like that. but noticed users on ios started getting multiple notifications.

tdammy92 avatar Jan 28 '24 11:01 tdammy92

@tdammy92 Sure. var pushIdentifierFG = '' Notifications.events().registerNotificationReceivedForeground((notification, completion) => { console.log('Notification received in foreground: ', notification);

        if(pushIdentifierFG != notification.identifier){
            pushIdentifierFG = notification.identifier
            console.log('iOS TEST : SINGLE NOTIFICAIONS ')
            completion({ alert: true, sound: true, badge: true });
          } else {
            pushIdentifierFG = ''
            console.log('iOS TEST : DOUBLE NOTIFICAIONS registerNotificationReceivedForeground')
          }
     
    
});

sharadedkey avatar Jan 29 '24 02:01 sharadedkey

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Jan 31 '25 22:01 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Feb 24 '25 23:02 stale[bot]