Duplicated Notifications (2024)

Usually duplicate notifications occur due to sending the same push data multiple times. If you see multiple notifications sent in your Delivery Tab with the same message, check your server code that API requests are not repeated with retries or other code errors.

If you are moving to OneSignal and continue to send push from a previous messaging system, this can also cause duplicates and you should discontinue sending from the previous messaging system when you start sending from OneSignal.

Android: If using versions 4.4.1 - 4.6.2 of the Android Native SDK, update to 4.6.3 or higher.

Check to make sure you don't have another push notification plugin/SDK in your app as it could be trying to parse the OneSignal notification, showing it twice. Our Android SDKs prevent duplicate notifications by checking the notification payload for OneSignal specific data.

Android devices with 2 copies of the app installed on the device can also receive duplicate notifications. This could happen if you have a production and staging / dev app installed at the same time with different Android package names. This would result in two different player_ids and two different push tokens.

You can long press on each notification to ensure they are coming from the same app.

iOS: If there were 2 or more subscribed device records in our database with the same Push Token then the device would get 2 different notifications and each could be tapped on. We have checks to help prevent this from happening but can happen if you try importing the same token multiple times.

📘

Still having problems? We're happy to help!

Make sure you are using the latest version of the OneSignal SDK and try to get a log from the device if you can reproduce it.

Include as much as you can of the following to help us find your issue quicker:

  • Version of our SDK
  • Version of the SDK
  • Device OS version
  • Building on Mac or Windows
  • Xcode log or logcat of the app starting and the problem point
  • Any other libraries or plugins in your app
  • Details on reproducing your problem.

Web Push: Duplicate notifications happen when you add the OneSignal App ID to 2+ different origins and subscribe to those origins.

An origin is defined as: https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy

Since Web Push subscriptions are tied to the user's browser profile and site origin, when you send a notification from the OneSignal App ID, it will show a notification per origin the user is subscribed under.

To fix this on your browser, reset your browser data for each origin you used under this App ID.

If you suspect this is an issue for multiple users, you will need to create a brand new OneSignal App and add the new App ID to your site's OneSignal init code.

Users will need to return to the site and subscribe again.

You can also get duplicate notifications on web if you subscribe to the same site on multiple browsers and/or the same browser but multiple Browser Profiles. When you click the push, it should open the browser under the browser profile you are subscribed under. You can reset your browser data to stop it from showing on either or both.

On Android, our notification payload contains a “custom” key with a nested “i” value. If the notification payload received does not contain this, our SDK will not process the notification.

On iOS, we also have the same “custom” key with nested “i” value, however because Apple has a standard payload it will show all notification sent to the device. So if you send a push from your old platform to a device, do not send the same notification from OneSignal or the user will get it twice.

For iOS Click Handlers, depending on how you handle notification opens you might have to add a check for "custom": { "i": ""} as well. Or if you have your own format, we recommend checking for yours instead.

How to send push from a previous provider and OneSignal?

On Android, you should remove your previous provider's notification handling code upon adding OneSignal and releasing the app. As users update the app, the previous push code will be removed and they will not get push sent from that provider.

On iOS, you should add OneSignal and release the app update, but continue to send from the previous provider until you are ready to move only to OneSignal. If you send from both OneSignal and your previous provider to iOS, you may send duplicate notifications.

Updated over 1 year ago

Duplicated Notifications (2024)

FAQs

Why am I getting duplicate notifications? ›

You may get extra chat notifications if you have multiple apps like Gmail and Google Chat on your mobile device. To avoid duplicate notifications, you can turn off notifications for the Chat app. Important: Settings can vary by manufacturer. For more info, contact your device manufacturer.

What is duplicate notification? ›

Usually duplicate notifications occur due to sending the same push data multiple times. If you see multiple notifications sent in your Delivery Tab with the same message, check your server code that API requests are not repeated with retries or other code errors.

What is a phantom notification? ›

Phantom vibration syndrome or phantom ringing syndrome is the perception that one's mobile phone is vibrating or ringing when it is not.

How do I get rid of false notifications? ›

Change Chrome Notification Settings on Android
  1. Open the Chrome app.
  2. To the right of the address bar, tap More ⋮ > Settings.
  3. Tap Site Settings > Notifications.
  4. Tap the suspicious website, then tap either Block or Remove.
Jul 4, 2023

Why are my notifications appearing twice on my iPhone? ›

As such, just a few minutes later, your device lights up, vibrates, or rings again to remind you of the same message notification a second time. The reason for this is that Apple sets notifications and alerts to repeat once by default on iOS devices.

Why does my iPhone give notifications twice? ›

If your iPhone is ringing twice (or more) to alert you for every single text message you receive, then the repeating alert feature may currently be enabled on your device.

Why is iPhone double notifications? ›

One reason you may receive two notifications on your iPhone is due to having both the default Apple notifications enabled for an app and any additional notifications set up through the app itself.

What is a ghost push notification? ›

You send a push campaign to a user. 12 hours later, Iterable sends a "ghost push" (not visible or audible) to that same user. If the app has been uninstalled and the ghost push cannot be delivered, Iterable tracks an uninstall.

What is the difference between copy and duplicate on iPhone? ›

So the only major difference is that Duplicate will create a copy in the same folder/area (and name it copy) where the Copy function will allow you the freedom to paste to wherever we choose (and naming it the same)? That makes sense, if I understood the difference correctly. Yes, that's basically it.

What is duplicate SMS? ›

Duplicate text messages on Android are often a network problem but can be caused by incorrect settings in messaging apps or devices. Common reasons for duplicate SMS include duplicate text apps, using RCS instead of SMS, poor signal, malfunctioning of a messaging app or broken 3rd-party apps.

Why am I getting duplicate messages on my Iphone? ›

Head to Settings > Notifications > Messages and double-check that Repeat Alerts is set to 'Never'. Let's also check Settings > Messages > Send & Receive and make sure you don't see any duplicate listings there.

Why am I getting double message notifications on Instagram? ›

Instagram can sometimes send notifications twice as a result of app glitches, bugs, iOS settings, or push notifications enabled for multiple accounts.

How do I get rid of double notifications on Instagram? ›

Go to your Instagram profile and hit the three horizontal lines in the upper right corner. You can access your notification settings by choosing “Settings and Privacy” then “Notifications.” From there, you can adjust your notification settings for various actions like likes, comments, direct messages, and more.

How do I stop getting duplicate emails on my Iphone? ›

Customize Notifications

In the same Mail app settings go for Notifications -> Customize Notifications. Under Accounts try to keep notifications enabled only for a single account! Tap the account that you want to turn Off the alerts for and uncheck both Badges and Alerts.

Top Articles
Latest Posts
Article information

Author: Trent Wehner

Last Updated:

Views: 6008

Rating: 4.6 / 5 (76 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Trent Wehner

Birthday: 1993-03-14

Address: 872 Kevin Squares, New Codyville, AK 01785-0416

Phone: +18698800304764

Job: Senior Farming Developer

Hobby: Paintball, Calligraphy, Hunting, Flying disc, Lapidary, Rafting, Inline skating

Introduction: My name is Trent Wehner, I am a talented, brainy, zealous, light, funny, gleaming, attractive person who loves writing and wants to share my knowledge and understanding with you.