Open W1nstar opened 2 years ago
Did some more digging, tried an xhr instead of a fetch and it only chages state when I open it, it never gets sent. Changes state to status 0 readyState 1 on open, though.
A console.log of the fetch function shows { [Function: O] polyfill: true }, so it seems like it's there.
Still, I don't know what's happening. It's like the apk isn't capable of networking after crash or something, but since nothing errors I can't confirm it.
After some more digging, I found that if I do callbackHolder.invoke() right as it's stored, it does have access to internet and makes the fetch corrrectly, or any other operation like post or calling to your crash api.
It'd seem that there are no network capabilities once the app has crashed with a native exception, but I don't have enough knowledge to ensure that, and it goes against what we can see in the docs of this project.
Hope someone can throw some light here.
I get the native UI when the rn-test-exception-handler is called, and the JS code executes till the fetch, where it stops without error of any kind.
And this is how the logcat reads:
Android Studio's network inspector shows no internet usage at all.
Any idea of what's going on? Workaround? Tried axios, same thing happens. Tried referencing methods defined outside the handler function and they work. It looks like any http request will fail, but without error.