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.

😔 Notification pop-up appears while the App is open in Android

See original GitHub issue

Bug

On Android, when the App is open and a notification is received, I see that the notification pop-up appears, so, in the case the user taps the popup, the notification will be handled twice.

On iOS, when the App is open and a notification is received, I see no pop-ups and this is the correct behaviour I want.

Why on Android appears a notification pop-up when the App is open?

Environment info

Library version: 3.1.9

System:
    OS: macOS 10.15.4
    CPU: (8) x64 Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz
    Memory: 2.36 GB / 16.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.15.0 - ~/.nvm/versions/node/v12.15.0/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.13.4 - ~/.nvm/versions/node/v12.15.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
    Android SDK:
      API Levels: 26, 28, 29
      Build Tools: 28.0.3, 29.0.2
      System Images: android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom_64, android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom_64, android-R | Google APIs Intel x86 Atom_64, android-R | Google Play Intel x86 Atom
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.6010548
    Xcode: 11.4.1/11E503a - /usr/bin/xcodebuild
  npmPackages:
    react: ^16.9.0 => 16.13.0 
    react-native: 0.61.5 => 0.61.5 
  npmGlobalPackages:
    react-native-create-library: 3.1.2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20

github_iconTop GitHub Comments

1reaction
s-z-scommented, May 5, 2020

@strawberry-code I am on 3.3.0 and this doesn’t happen in my app. Updating will work for you.

0reactions
github-actions[bot]commented, Jul 17, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

android show notification with a popup on top of any application
The user's activity is in fullscreen mode (the app uses fullScreenIntent). The notification has high priority and uses ringtones or vibrations on devices...
Read more >
Control notifications on Android - Google Support
Open your phone's Settings app. · Tap Apps & notifications and then Notifications. · Under “Recently Sent,” tap an app. · Tap a...
Read more >
How to solve the pop-notifications problem on Android 10
Go to Settings app > Apps & notifications > See all apps. Find the app you are not receiving pop-up notifications from here....
Read more >
Got Pop-Up Ads on Android? How to Spot and Remove Them
Check the Currently Open Apps​​ When the pop-up ad appears, swipe up from the bottom of your screen and hold your finger in...
Read more >
Notifications Overview | Android Developers
When you issue a notification, it first appears as an icon in the status bar. ... Users can swipe down on the status...
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