We have a project where we use Firebase Crashlytics to collect crash reports from our iOS and Android app. Currently, the console is not showing any crash reports. Initially we assumed something was wrong with our project setup, but today I discovered that Crashlytics actually has been receiving the crash data, since I can see it on the Project Overview page:
However, when I open the Crashlytics page it is empty (it only shown me the guide on how to integrate Crashlytics in your app):
This is the case for both out iOS and Android app. We also have another project that is set up in the same way, but here the reports are shown correctly.
Is there perhaps some console configuration we are missing?
Related
So I built a React Native App with expo. I wanted to add Firebase Analytics so I followed expo's instructions:
https://docs.expo.dev/guides/using-firebase/
My app is already published in Google Play Store and Apple Store, and my Firebase Dashboard only show's Android's analytics. It's as if IOS was never activated, yet I followed the instructions rigorously. My app.json looks like this picture (1):
app.json image
I have both services files in the correct folder, so i don't know what could be going wrong.
I finally could solve this. Apparently Firebase in IOS through Expo, takes a little bit more time to activate. After 2 weeks runing in Android, Firebase Analytics started to run on IOS
Need Help !!
We are getting caution message on top of the Dashboard in Firebase Crashlytics. We are tried with different technical advises in different forums.
But nothing has worked out for us. We are still seeing the caution message at the top (in red strip) and crashes count is incrementing on every crash but doesn't come to Dashboard.
Here we go with our Firebase Crashlytics integration with project :
We are using Firebase Crashlytics with Xamarin Forms project to record any crashes in Mobile Application.
Since, Firebase Crashlytics SDK & Documentation are mostly on Native Platforms (Android & iOS). But, we still got provision to get packages from NuGet.
Here is the checklist which ensures we are on right direction:
1) Is App released with proper Apple Distribution Provision Profile and Certificate- YES
2) Is Distribution Provision Profile valid in terms expiration date - YES, it is valid till Next year from now.
3) Is GoogleService-Info.plist correctly placed. YES- it was downloaded from Crashlytics console with proper identifier configured. File was placed at root of iOS Project and set Build Action as BundleResource.
4) Did we call required initialisation function at proper place. - YES. Below set of codes ensures we initialised properly Firebase Crashlytics in AppDelegate.cs class.
5) Is your build configuration rightly placed in Release mode. YES
6) Important Point: Firebase Crashlytics was able to process the reported crashes with earlier version of iOS build which were having same project and package configuration and we could able to see the Crashes in readable format till for immediate previous versions.
But suddenly it stopped working when we promoted to production in AppStore (means LIVE in AppStore)
7) Have we uploaded to dSYM file manually to Firebase Crashlytics - YES we TRIED. We followed the steps to upload dSYM using XCode-SWIFT project with POD files.
Here is the setup and step.
POD was installed in appropriate XCode workspaces.
Run Script was executed with recommended POD commands.
Build was succeeded.
Hence, as you see, we are practiced with every advises whichever mentioned in any forum. We have applied, but we don't see, it is coming to Crashlytics Dashboard even then.
Try below command. May be help full.
msbuild "/Users/xxx/projects/myApp/myApp/myApp.iOS/myApp.iOS.csproj" /t:"build" /p:Configuration="AppStore" /p:Platform="iPhone" /p:BuildIpa=true /p:FirebaseCrashlyticsUploadSymbolsEnabled=true
I have tried this command and it is working in my case. I get it from this git thread : https://github.com/xamarin/GoogleApisForiOSComponents/issues/386
I wanted to run my swiftui app on macos, unfortunately i can still see error That
Running InstanceID on a simulator doesn't have APNS. Use prod
profile by default.
I used the code from firebase messaging docs to initialize firebase messaging and later on I wanted to get instance id token.
While using Xcode I don't get any other errors instead of this which I mentioned. That's why I decided to archive my app and run it independently
outside Xcode. Unfortunately I still can see in console error message about running in simulator. When I run that code on my physical iPhone everything works properly.
Xcode log
Mac console log
Does anyone know what should I change or how should I archive the app properly in order to firebase not detect my app as simulator?
We are using Firebase for push notifications for Android and iOS, and all the notifications are working perfectly.
But when I log into firebase, and try to see the activity in “Streamview”, I see only iOS activity, and nothing for Android.
I do see the activity in Cloud messaging’s Report section, for both iOS and Android.
The application we have built is built using Xamarin forms.
One thing to note from the Firebase console is that it doesn’t appear as though the console recognizes that SDK setup was fully complete.
When going into the link where it says “Continue SDK Setup”.
Finally, when proceeding to step #4 it tries to verify that there has been communication between the app and Google’s servers and it doesn’t seem to find anything and it just sits there looking.
Notifications appear to work, but the app just doesn’t seem to be registering as being used under the Android side.
Any pointers in this direction will be very helpful.
i don't have any idea what is wrong here.
I want to watch complete report of my push notifications sending count, for both platform Android and iOS. but i am getting only iOS report in stream view tab not for Android.
I made the comment above and now I have found an answer, at least for my situation. I had added Xamarin.Firebase.Core to the PCL project as the documentation suggests. Later I saw documentation for Android Java that showed Firebase Core being added to the gradle file at the app level. So I added Xamarin.Firebase.Core NuGet package to the Android project also and now I can see data for Android in the Firebase Console.
I'm using #ionic-native/firebase plugin in our Ionic App, and crash reporting is included in this plugin. Since Firebase Crash Reporting will no longer be accessible after September 9, we are trying to switch to Firebase Crashlytics. But we're not getting any crash data on Crashlytics dashboard. Here's what I've tried:
First, I followed Get started with Firebase Crashlytics, built and ran our App.
Then I found I could access Crashlytics dashboard, which I thought the SDK was implemented successfully. But after I crashed the app for a few times and waited for at least one day, but nothing showed up on either Crash Reporting or Crashlytics dashboard.
Then, I reversed the changes made to our app and built & ran again, firebase console didn't change back. I found this plugin cordova-plugin-firebase-crash and installed it to my app successfully.
After crashing the app, almost immediately I got the crash data on Crash Reporting dashboard but no crashes on Crashlytics dashboard, but I could see the change on Crash-free statistics graph, which is weird. Now the Crashlytics dashboard looks like this:Crashlytics dashboard
.
My question is: does crashlytics not work when crash reporting is used in the App? Or did I implement crashlytics wrong? Any help would be appreciated.
For those who are stuck with cordova , try get capacitor (which also supports cordova out-of-box)
There’s a plugin for crashlytics
once you got the stuff set up you'll only have to
import { Crashlytics } from 'capacitor-crashlytics';
const crashlytics = new Crashlytics();
//
// log user
crashlytics
.logUser({
name: "John Doe",
email: "john#doe.com",
id: "123"
})
.then(() => alert(`user logged`))
.catch(err => alert(err.message));
//
// force a crash
crashlytics.crash();
Check this out to learn more
https://github.com/stewwan/capacitor-crashlytics
side note: I’m the creator, feel free to PR or file issues.
Finally I found my mistake.
I am using cordova-plugin-firebase and to check the crash I am using the logEvent and logError method of that plugin ttlo check whether it is reflecting to console or not but I for the first time I am not able to see any of the log.. I waited like 24 hours but then I read the documentation about the Non-Fatal error here and check the Firebase-plugin.java and come to conclution that this 2 methods are basically logging the non-fatal error so you have to apply filter in firebase console to see you manual logs like this..
And when you app actually crashed by any reason you will defnalty see the logs in Crashes section..
You can use the Sentry Capacitor plugin here.
Sentry's Capacitor SDK enables automatic reporting of errors,
exceptions, and messages. It includes native crash support on iOS and
Android.
Official doc: https://docs.sentry.io/platforms/javascript/guides/capacitor/