Comments (4)
What you are encountering is an expected behavior of iOS for the API used - if you look at the implementation of setBadgeAsync, it is quite straightforward:
expo/packages/expo-notifications/ios/EXNotifications/EXBadgeModule.m
Lines 19 to 34 in 949423c
setApplicationIconBadgeNumber
, which has the side effect that you describe.
One thing you could try is setting the value to -1 (source: StackOverflow). It also looks like iOS 16 may have introduced a new API that doesn't have this quirk (source: also StackOverflow).
cc @douglowder
from expo.
Hi there! It looks like your issue requires a minimal reproducible example, but it is invalid or absent. Please prepare such an example and share it in a new issue.
The best way to get attention to your issue is to provide a clean and easy way for a developer to reproduce the issue on their own machine. Please do not provide your entire project, or a project with more code than is necessary to reproduce the issue.
A side benefit of going through the process of narrowing down the minimal amount of code needed to reproduce the issue is that you may get lucky and discover that the bug is due to a mistake in your application code that you can quickly fix on your own.
Resources
Common concerns
"I've only been able to reproduce it in private, proprietary code"
You may not have spent enough time narrowing down the root cause of the issue. Try out the techniques discussed in this manual debugging guide to learn how to isolate the problem from the rest of your codebase.
"I didn't have time to create one"
That's understandable, it can take some time to prepare. We ask that you hold off on filing an issue until you are able to fully complete the required fields in the issue template.
"You can reproduce it by yourself by creating a project and following these steps"
This is useful knowledge, but it's still valuable to have the resulting project that is produced from running the steps, where you have verified you can reproduce the issue.
from expo.
Setting the value to -1 does seem to work, thank you! It would be great to add a note in the docs if possible so that others don't have the same issue
from expo.
@kaitlyn-lighthouse - makes sense! can you send a pull request for that?
from expo.
Related Issues (20)
- `openDrawer` and close are missing from `useNavigation` from `expo-router`
- react-native-dotenv incompatible with expo-router HOT 1
- [SDK 51] Fonts with spaces fail to load on Android HOT 1
- Expo App not building on windows system HOT 1
- [SDK 51] Project created with expo-router entry not accessable via web in monorepo HOT 3
- [SDK 51] promise.resolve(null) is throwing NullPointerException in java code HOT 2
- EAS Build variants not reflected in expo plugins HOT 3
- Unresolved reference: BuildConfig on expo-notifications 28 HOT 5
- [expo-font] Could not unregister the CGFont HOT 4
- [SDK 51][expo-router] expo-router's Head element is not working anymore HOT 2
- ReferenceError: Property 'Platform' doesn't exist, js engine: hermes HOT 7
- [expo-contacts]: Contacts.presentFormAsync breaks on Android HOT 1
- Submitting iOS app through eas submit is failing because of a fastlane pilot error HOT 2
- @expo/vector-icons doesnt work on SDK 51 HOT 2
- Location.startLocationUpdatesAsync task callback does not receive any location updates on Android HOT 10
- Cannot find native module 'ExpoVideo' HOT 2
- Expo AV `setProgressUpdateIntervalAsync()` doesn't work on Windows browser in development build HOT 1
- Expo prebuild error which can not create the android and ios folder. HOT 6
- React Native Gesture Handler not detecting gestures in conjunction with CameraView starting in SDK 51 HOT 1
- [expo-contacts] getContactsAsync/getContactByIdAsync serialization crash on iOS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expo.