Closed techday84 closed 5 months ago
Hi @techday84,
Thanks for reaching out with your question. This error message can be safely ignored and we should probably change this to a VERBOSE level log instead of an ERROR.
This is why it is being logged so often: the SDK gets the activity/context info when an Android activity is resumed, but if the SDK already has it, it will output this log. Therefore, the SDK will log this whenever an activity is resumed and it already has the information needed.
What happened?
E/OneSignal: Already initialized the OneSignal React-Native SDK.
This issue happens with 4.5.1 and 4.5.0
"react-native-onesignal": "^4.5.1", "react-native-share": "^8.1.0", "react-native-inappbrowser-reborn": "^3.7.0",
Steps to reproduce?
What did you expect to happen?
I don't understand why it always get an error that it is already initialized when the app changes state or when you open things in the app that make it change the app state.
React Native OneSignal SDK version
4.5.1
Which platform(s) are affected?
Relevant log output
Code of Conduct