Home > Mobile >  Firebase Crashlytics setup for flutter on flutter ios
Firebase Crashlytics setup for flutter on flutter ios

Time:05-02

Basically, I want to set up Crashlytics for flutter in the ios application but I don't find any proper docs dedicated to ios in the flutterfire docs and I try different tutorials but nothing works. please guide me !!

CodePudding user response:

after you define your app in firebase console and download the "GoogleService-Info.plist":

enter image description here

you must add it to ios folder in flutter app:

enter image description here

you must add the bellow package to pubspec.yaml file and use it like below link:

dependencies:
  firebase_crashlytics: ^2.7.1

enter image description here

"${PODS_ROOT}/FirebaseCrashlytics/run"

you must enable crashlytics in firebase console:

enter image description here

this works(enables) when you crash manually on the button tap (it means that after you launch your app you must make a crash to send a signal to your crashlytics) after that your crashlytics enables.

  • Related