Duplicate onNotification calls
See original GitHub issueHey,
I appear to be getting duplicate notifications for both iOS and Android. For a given push (without interaction) I get the onNotification handler called twice. For noisy/mixed notifications this means two notifications are shown in the notification centre.
E.g. from Android This one appears to have the google metadata
{
color: null
data: {someData: "example"}
finish: ƒ finish()
foreground: true
google.delivered_priority: "normal"
google.message_id: "0:1559037885338181%6af40c24f9fd7ecd"
google.original_priority: "normal"
google.sent_time: 1559037885334
google.ttl: 2419200
id: "1513948521"
message: "aBody"
pinpoint.campaign.campaign_activity_id: "ad08775a9d21480aab6768c024060627"
pinpoint.campaign.campaign_id: "24d11aa26b934153b5bde9205993e33e"
pinpoint.campaign.treatment_id: "0"
sound: "default"
title: "aTitle"
userInteraction: false
}
This one appears is the same but without google metadata
{
color: null
data: {someData: "example"}
finish: ƒ finish()
foreground: true
id: "1505484046"
message: "aBody"
pinpoint.campaign.campaign_activity_id: "ad08775a9d21480aab6768c024060627"
pinpoint.campaign.campaign_id: "24d11aa26b934153b5bde9205993e33e"
pinpoint.campaign.treatment_id: "0"
sound: "default"
title: "aTitle"
userInteraction: false
}
is anybody else experiencing this?
Issue Analytics
- State:
- Created 4 years ago
- Comments:9
Top Results From Across the Web
Duplicated Notifications - OneSignal Documentation
Usually duplicate notifications occur due to sending the same push data multiple times. If you see multiple notifications sent in your Delivery Tab...
Read more >Duplicate notifications - react-native-push-notification
So, all I had to do was to call PushNotification.deleteChannel('DUPLICATE_CHANNEL_ID') for the unnecessary channel. I called the dfelete ...
Read more >Duplicate CIs - ServiceNow Docs
When the instance encounters duplicate CIs during identification and reconciliation, it groups each set of duplicate CIs into a de-duplication task for ......
Read more >Start an Activity from a Notification - Android Developers
To start an activity that includes a back stack of activities, you need to create an instance of TaskStackBuilder and call ...
Read more >react-native-push-notification - npm
... remote notifications (for prevent duplicating while showing local ... if true onNotification will be called (Android) onAction: function ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@SilwalUjjwal Thank you very much. You were bang on the money.
https://developers.google.com/cloud-messaging/android/android-migrate-fcm agrees with you stating
I removed
and no longer receive them twice
Thanks again
@hukpavlo , no, but I updated my implementation to make sure it doesn’t affect the app functionality when user clicks on notification.