Created
November 21, 2020 00:02
-
-
Save flurrydev/81bf35e155b5e47a3c7697ba1d052341 to your computer and use it in GitHub Desktop.
iOS Crash Analytics Swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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