question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicate Push Notifications

See original GitHub issue

Summary

Some users are reporting getting 20+ notifications of the same thing when ive only sent one request. Seems to have happened today for the first time with no code changes for 3 months and 150 DAU.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

bare

What platform(s) does this occur on?

Android

SDK Version (managed workflow only)

No response

Environment

expo-env-info 1.0.3 environment info: System: OS: macOS 12.3 Shell: 3.0.0 - /usr/local/bin/fish Binaries: Node: 14.19.0 - ~/.nvm/versions/node/v14.19.0/bin/node npm: 6.14.16 - ~/.nvm/versions/node/v14.19.0/bin/npm Watchman: 2022.03.21.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /Users/renato/.rbenv/shims/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5 IDEs: Android Studio: 3.6 AI-192.7142.36.36.6392135 Xcode: 13.3/13E113 - /usr/bin/xcodebuild npmPackages: babel-preset-expo: 9.0.2 => 9.0.2 expo: ^44.0.6 => 44.0.6 react: ^17.0.2 => 17.0.2 react-dom: ^17.0.2 => 17.0.2 react-native: ^0.67.4 => 0.67.4 Expo Workflow: bare

Reproducible demo

seems to not be related to local code.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:9

github_iconTop GitHub Comments

1reaction
antoinebrtdcommented, Nov 14, 2022

Same issue here, different expo notification tokens are created for a same Android device, resulting in multiple duplicate notifications. Not sure if this is caused by updating expo SDK

1reaction
zivesocommented, May 26, 2022

I’m facing the same experience here, all of the notifications are double.

I went through the different expo SDK versions, expo 42 and expo 45. turn out it has a different expo notification token. maybe that is a cause.

btw, the only difference from my project was that expo42 uses classic build and expo45 uses eas build.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Receiving duplicate push notification - Apple Developer
Lately I noticed the I get every push notification duplicate when the device is unlocked and the app is in the background.
Read more >
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 >
how to avoid duplicate Push Notification - Stack Overflow
Here i am trying to show push notification from firebase, but for every single notification getting two notifications.
Read more >
Solved: Duplicate 'Push Notifications' - Canvas Community
Solved: Hi, One of my students is receiving duplicate 'Push Notifications'. Is there a fix to this?
Read more >
[notifications] Duplicate push notifications sent occasionally
When we do this, sometimes (but not always) our users will get a flood of duplicate push notifications (sometimes 10+ of the same...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found