-
Notifications
You must be signed in to change notification settings - Fork 134
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
Android not sending fetch in setNativeExceptionHandler #155
Comments
I have the same issue, Im trying to send Crashlytics info in the native error handler on the Android app but nothing inside this function runs. |
Still happening on 2022. Method gets executed in a js thread, logs are shown in logcat but a simple does not work. It doesn't even throw an error to catch, so I'm out of ideas. Of cource, Sentry isn't working either. @bombillazo did you find any workaround? |
@W1nstar I think it did, I implemented it like this: const nativeExceptionhandler: NativeExceptionHandler = (error) => {
console.debug('NATIVE EXCEPTION!');
crashlytics().recordError(new Error(error));
};
setNativeExceptionHandler(nativeExceptionhandler, false, false); |
@bombillazo I'm unfamiliar with crashlytics, but I guess it writes a file with the exception, for a later use? By my own findings, it seems like theres no way to make an http request of any kind inside nativeExceptionHandler. |
Verify your Android HTTP setup, I believe by default some modern android versions block |
Yeah, I did, everything works correctly. Tested it on Androids 5 to 9, emulators and phyiscal terminals, same issue. Guess I'll have to store the event and somehow send it later. |
I am trying to send an error to a webhook on native crashes. Everything works fine on iOS but does not work on android. Does anyone have a solution?
I have confirmed that the setNativeExceptionHandler is running for android since it does print the console log. Any Idea?
The text was updated successfully, but these errors were encountered: