Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: [UIApplication applicationIconBadgeNumber] must be used from main thread only #1743

Open
2 of 3 tasks
edukapi opened this issue Sep 23, 2024 · 0 comments
Open
2 of 3 tasks

Comments

@edukapi
Copy link

edukapi commented Sep 23, 2024

What happened?

Hi! When I am running my react-native project in xcode i get the following warning from the "Main Thread Checker":

my-project/mobile/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:103 -[UIApplication applicationIconBadgeNumber] must be used from main thread only

The app is working fine. but I don't want to encounter any future issues because it is not running on the main thread.

I was looking for similar issues, but didn't find any.

Hope you can help me with this! Thanks!

Steps to reproduce?

1. I am using "react-native-onesignal": "^5.1.2"
2. I am using "react-native": "0.73.6"

What did you expect to happen?

I would have expected this warning didn't appear.

React Native OneSignal SDK version

Release 5.1.2

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant