xamarin / GoogleApisForiOSComponents

MIT License
225 stars 161 forks source link

Update to Firebase Crashlytics iOS SDK 4.0.0 #468

Closed Freezor closed 3 years ago

Freezor commented 3 years ago

Any news when Xamarin.Firebase.iOS.Crashlytics will be updated to the Firebase Crashlytics iOS SDK 4.0.0?

We currently use

and the Firebase console will not process any of our crashes.

Thanks in advance

tentom commented 3 years ago

Its already out there! 🥳

https://www.nuget.org/packages/Xamarin.Firebase.iOS.Crashlytics/

I'm currently using Version 4.6.2

I had some issues setting it up. But the gist of it was:

  1. Get the GoogleServices-Info.plist file and add it to the iOS project.
  2. Make sure the build action for the file is "BundleResource"
  3. Install Xamarin.Firebase.iOS.Crashlytics.
  4. Add something similar to this to your FinishedLaunching() function in the AppDelegate.cs file:
    
    var foo = typeof(Analytics) // I have no Idea why this removes some compilation errors 
    Firebase.Core.App.Configure(); // not sure if this is needed
    // you might also need:
    var crashlytics = Crashlytics.SharedInstance;
    crashlutics.SendUnsentReports();

5 . Clean, remove obj, bin folder, restart VS ( Do not know if this is necessary YMMW)
6. Crash the app and see if something is reported, might take some time, I found that the Event and Realtime tabs under Analytics updated faster than the Crashlytics tab under release & monitor.

Hope this helps you. 

PS.  Also look at #443 #436 
PPS you might also need the analytics package firebase/firebase-ios-sdk#3798
Freezor commented 3 years ago

@tentom yes. that this somehow work. Thanks