-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
Using Code Push along with enableNative set to false does not send errors from sdk. #2998
Comments
Thank you for the message,
|
okay. I have a doubt If I use autoInitializeNativeSdk as false. |
If Is that your desired behavior? |
yes, Thanks |
closing the issue. Getting desired behavior with |
Happy to help. |
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: 4.9.0
react-native
version: 0.68.5Are you using Expo?
Are you using sentry.io or on-premise?
Configuration:
(
@sentry/react-native
)I have following issue:
I want to initialise the sdk on native side as soon as the App starts. Sometimes crash occurs when javascript is not initialized. To fix this I am following this doc.
In MainActivity
Steps to reproduce:
System.out.println(2/0);
afterSentryAndroid.init
and successfully received the trace on sentry dashboard.System.out.println(2/0);
from MainActivity and put logs inside javascript side using methodsSentry.nativeCrash() and throw new Error("Test Error")
Actual result:
when followed step 2. I was not able to see error on dashboard.
using debug flag logs error on console
Sentry Logger [warn]: Event was skipped as native SDK is not enabled.
Expected result:
errors triggered by Sentry.nativeCrash() and throw new Error("Test Error")
should be successfully reported to sentry Dashboard.
Related issue: #2006
closed because person who reported this issue turned
enableNative
to true which I can not do. Because I want to get errors on sentry even before js initialization.The text was updated successfully, but these errors were encountered: