-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
🔥Crashlytics: recordError method not working on iOS #3594
Comments
Hi there! Current version is 6.7.1 now though I don't think that will change things. |
@mikehardy I tried what you suggested (upgraded to 6.7.1) and also built a production build, but no luck. No errors are being logged from |
Unsure - I did just check through those docs while reviewing #3580 and they have some pretty specific callouts about the difference between a crash and a recorded error. I don't have personal experience and don't want to mislead by misquoting the docs but I recommend you check upstream SDK docs to see what they have to say on the differences and see if that's possibly related? |
Hello 👋, to help manage issues we automatically close stale issues.
|
I can confirm this is still happening with
A simple |
Not sure if the PR for switch to crashlytics will affect it or not but I'm hesitant to spend any time until that PR is integrated. Let me see if I can nudge that one, in the meantime, the quickest way to move this forward is to move into the module via direct addition of console.log() calls in the javascript for this module inside node_modules and the same but in the Objective-C underneath the javascript to see if everything is actually being called. That will help us determine if it's a problem here in this module or in the underlying API. |
I did a tiny bit of print debugging. I can confirm that on the JS side,
(
is also being called and we make it all the way to the
call, it seems. There,
|
And turns out it shows up in the console after all. 😅 The only remaining issue seems to be that by default |
@mikehardy This can be closed as far as I'm concerned. At some point it'd be nice to think about how we could get filename consistency on the JS side. Thanks for your help!! |
Okay - seems good to close then, but for the sanity of future developers you might do a PR to the docs on this API call mentioning that by default the console filters them out - this is clearly a time sink for people :-) 🙏 - there's an edit button top-right of every docs page and the github UI makes PRs for docs really easy There's no way to sync up file names I think? That's been discussed before but the toolchains people use to render the bundle are widely varied, the only way I can think of is to use some of the existing reverse-mapping tools based on tags from the original code in your codebase, so you can feed it the logged index.bundle-referencing stack and get your original code |
I have this issue. I'm able to get crashes in firebase console but not the recordError. "@react-native-firebase/app": "^8.2.0", |
@abdulghanitech recordError shows up fine, typically it is filtered on the console though and you have to unfilter crashes so you get errors too. Easy mistake to make, can you check? |
Same for me with a slight difference: |
@christophby: I am also facing the same issue, did you get any solution? |
Unfortunately I didn't |
Same for me here |
*Bump* Facing same issue on both Android and iOS (and no, removing the filter in the dashboard doesn't help)
|
Issue
I am adding
recordError
calls to my app on eachcatch
clause in Javascript.I then test it by throwing a Javascript error in the
try
clauseAfter I confirm through the chrome debug console that the error was triggered and
recordError
was called, I close the app and re-open it (I read somewhere that errors report only after you reopen the app. Not sure if it applies torecordError
, but did it just in case)I expected this error to be reported in Crashlytics, but it never reports.
If I force a native crash inside the
try
clause, the native error does report into Crashlytics:The javascript error doesn't report. Just the native
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:iOS
Click To Expand
ios/Podfile
:AppDelegate.m
:I am not working with Android
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:6.4.1-alpha.0
Firebase
module(s) you're using that has the issue:@react-native-firebase/crashlytics 6.4.1-alpha.0
TypeScript
?No
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: