Notifications.setBadgeCountAsync(0); Does not work on Android
See original GitHub issueSummary
Notifications.setBadgeCountAsync(0); Does not work on Android.
Also when the badge number is sent with the expo notification to the android device, the badge number gets added to the current badge number instead of overriding the badge number like the ios functionality.
Managed or bare workflow? If you have ios/
or android/
directories in your project, the answer is bare!
managed
What platform(s) does this occur on?
Android
SDK Version (managed workflow only)
41
Environment
Expo CLI 4.4.3 environment info: System: OS: macOS 10.15.7 Shell: 3.2.57 - /bin/bash Binaries: Node: 10.16.3 - /usr/local/bin/node npm: 6.14.5 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: API Levels: 25, 26 Build Tools: 23.0.1, 23.0.3, 25.0.0, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 27.0.1, 27.0.3 System Images: android-25 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom IDEs: Android Studio: 3.0 AI-171.4443003 Xcode: 11.5/11E608c - /usr/bin/xcodebuild npmPackages: expo: ^41.0.0 => 41.0.1 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz => 0.63.2 react-native-web: ~0.13.12 => 0.13.18 react-navigation: ^4.4.0 => 4.4.4 npmGlobalPackages: expo-cli: 4.4.3 Expo Workflow: managed
Reproducible demo or steps to reproduce from a blank project
Use Notifications.setBadgeCountAsync(0); in the Android app.
Also, try sending a badge # in the Expo notification. The badge number is added rather than overrwritten.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:17 (5 by maintainers)
Top GitHub Comments
@mikeRChambers610 - it was closed automatically because there was no activity for several months and nobody responded when prompted about it being closed. can you open a new issue with a minimal reproducible example? we’re a small team and trying to stay up on top of everything and the best ways to get help are:
I am having the same problem. Did someone manage to solve it ?