react-native-push-notification icon indicating copy to clipboard operation
react-native-push-notification copied to clipboard

duplicate notification in custom sound

Open mahdiyeh1994 opened this issue 3 years ago • 1 comments

Question

I'm using react-native-push-notification and firebase for receiving notifications in my app. I receive duplicate notifications when the app is both in the foreground and background. Does it possible duplicate messages received because the back-end sends a notification message in the 'notification' object of the data property? If yes, please inform me how I can prevent multiple receives without back-end changes?

Also, The application has 6 custom sounds, the user can choose one and change the notification sound. Because of this, I wrote createChannel for each sound. And when the notification is sent, based on its sound, there is a condition in which channelId will be played. if this is the reason for the duplicate message, what else can I do?

P.S. I don't have GCM in my AndroidManifest.xml.

mahdiyeh1994 avatar Jul 17 '22 08:07 mahdiyeh1994

same problem . Duplicate notification for scheduled notifications.

nahidmbstu avatar Aug 24 '22 06:08 nahidmbstu

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Nov 17 '23 00:11 github-actions[bot]