Skip to content

Instantly share code, notes, and snippets.

@flurrydev
Created November 21, 2020 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flurrydev/81bf35e155b5e47a3c7697ba1d052341 to your computer and use it in GitHub Desktop.
Save flurrydev/81bf35e155b5e47a3c7697ba1d052341 to your computer and use it in GitHub Desktop.
iOS Crash Analytics Swift
//Enable crash analytics when you start your Flurry session
let builder = FlurrySessionBuilder.init()
...
.withCrashReporting(true)
.withSessionContinueSeconds(10)
// Replace YOUR_API_KEY with the api key in the downloaded package
Flurry.startSession("YOUR_API_KEY", with: builder)
//Caught Exceptions
Flurry.logError("Error ID", message: "log with exception message", exception: exception)
//Logged Errors
Flurry.logError("Error ID", message: "log with Error message", error:error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment