react-native-notifications
react-native-notifications copied to clipboard
Notification count/badge doesn't show on the app icon IOS.
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 🙏🏽
I am also looking for same issue.
I am also looking for same issue.
@sharadedkey have you found any useful fix for this ???
@tdammy92 No. I am just displaying count 1 if have notifications.
@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 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')
}
});
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
The issue has been closed for inactivity.