Fabric Crashlytics for iOS

ios

#1

Hi, ask ko lang kung may nakapagsetup na ng Crashlytics sa current project nila? Di ko kasi alam kung saang view controllers aside sa Appdelegate magandang lagyan ng Framework Imports.


#2

Gamit ko ngayon sa isang app. Typically sa AppDelegate kasi once lang kailangan matawag yon. Pwede ka rin mgcollect ng user information other than crash info pero ok lang sa AppDelegate. Siguro kung available yung info sa ibang controller pwede mo ilagay doon.

func logUser() {
// TODO: Use the current user’s information
// You can call any combination of these three methods
Crashlytics.sharedInstance().setUserEmail(“user@fabric.io”)
Crashlytics.sharedInstance().setUserIdentifier(“12345")
Crashlytics.sharedInstance().setUserName(“Test User”)
} (


#3

Hi!

Ako din sa AppDelegate nakasetup ang Crashlytics. Same setup with Sir @nmariano. But if you want to log non-fatal exceptions, you can log the NSError using this API:

Objective C : [CrashlyticsKit recordError:error];
Swift: Crashlytics.sharedInstance().recordError(error)

You can check this link for more details: https://docs.fabric.io/apple/crashlytics/logged-errors.html#using-the-api

Regards,
Elaine