Firebase Crash Reporting automatically generates reports for fatal errors in android phone but not for iPhones? - crashlytics

I have setup firebase in my react native app.
But currently exceptions are not handled means not added any crashlytics logs or recorded errors
But for android app I am getting crashes in firebase but not for IOS.
Can someone explain this in detail?

Crashlytics may only be able to upload the data once the app starts again. Did you restart the app?

This can happen if you are testing while the Xcode debugger is attached.
Check this document, it explains how to test this in iOS.
If that doesn't work, enable debug logging and check if something is causing issues. For this:
After enabling debug mode, run the app.
Then hit "stop" in Xcode.
Run the app in the device and crash it
Run the app again from Xcode
Collect the output from Xcode

Related

How can you get React Native logging to appear in the iPhone console (instead/in addition to the Xcode console)

If you have a console.log("some logging) code line in a React Native app (i.e. in Javascript) and run the app on an iPhone then you can see the logging appear inside what I'm going to call the Xcode console, or if you shake the app then in a browser.
However you cannot see that logging appear in what I'm going to call the iPhone console.
My question is - is there a way of adding logging to React Native code where the output is visible in the iPhone console in addition to the Xcode console.
Further information on what I mean by iPhone console:
If you interactively run an iOS app using Xcode, then there is a logging console displayed. What I am terming here as the Xcode console.
But if from within Xcode you choose the menu option Window | Devices and Simulators | Open Console" Then you can see full iPhone logging (i.e. what the system is logging in addition to what your app is logging.
This is what I'm calling the iPhone console.
Viewing it via XCode is not the only way of viewing or obtaining the iPhone logs, there are other ways too.
When you do iPhone native development and use NSLog() then it will log to both the Xcode console and the iPhone console, however when logging using React Native console.log() the logging only appears in the Xcode console.
I want logging code added to React Native Javascript code to additionally appear in the iPhone console.
First shake your Iphone then you can see this screen.
Then click Debug JS remotely button.
After you might see React Native Debugger page like this.
And then open your inspector[f12], and go to console tab debug it! :)

React Native Release Signed APK crash on app start time

I have an issue with react native release APK.
The app run on debug mode but it crash immediately on release mode
Is that app running without any warnings/errors before building the APK?
The error message clearly says that it can't find a variable, maybe it got deleted or modified.
You can cross-check the app once by going to the development mode and see if you get the same error.
Try out clean your gradle and make the apk again.

Fabric issue App not showing after following instruction

I have carefully followed the instruction from fabric (https://fabric.io/kits/ios/crashlytics/manual-install) to install crashlytics in my app. However I cannot select my app after the instruction since my app is not showing. I have tried most of the solution that has been given in this question here (Crashlytics in iOS won't proceed past "Build Your Project" in Fabric app)
But I still failed to get my app in fabric.
I am using react native to develop my app and using Xcode Version 10.2.1
Fabric/Firebaser here - If you've gone through all the necessary instructions, try cleaning your project first before building and running again to try to get your app up on your dashboard. And if you haven't seen it, here are some instructions specifically for setting up react native apps with Crashlytics: https://www.npmjs.com/package/react-native-fabric#crashlytics-usage). And make sure that if you haven't, set the Debug Information Format to DWARF with dSYM file for both debug and release as specified in that SO post you linked.
You can also see more debug information about Fabric if you set Fabric to debug mode in your initialization statement: https://docs.fabric.io/apple/fabric/advanced-settings/debugging.html. Check to see if the settings requests are being made to Fabric or if there is anything unusual.
If you're still having trouble, reach out to support(at)fabric(dot)io with your app's bundle ID and support will be able to help you out more.

React-native ios app is not responding

when i install the ios app , app screen is not responding. After refreshing and clear the background process the app is working fine.
How to fix the issue?
Yeah, you'll need to include some code or more details as to what is happening. It sounds like you have some code that is failing on initialization but is not depended upon for the rest of the app. If you run react-native log-ios from the command line in your repo, do you get any interesting messages that might contribute to the unresponsiveness?

Expo on iOS crashed without error

I am developing react native application via expo. Earlier everything worked well, but after I decided to translate my app into redux with one monster commit it began crash on iOS , but on Android well. What can be reason of such behavior? In debugger I put a lot of breakpoints, but I couldn't find where is that crashes. If I install osx on virtualbox with xcode and read logs will it help?
In my case there was problem with AsyncStorage. I tried to save null into AS. On android it won't cause any error, but not on ios