Skip to content

Commit

Permalink
add notes about bringing in crashlytics to ios (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlawrencer authored Nov 4, 2024
1 parent 039e709 commit 7910992
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/ios/open-source/getting-started/crash-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,17 @@ Embrace can either use its own internal crash reporting logic or work alongside

## Setting up the Crash Reporter

The first step in initializing crash reporting is configuring which mode you want Embrace to operate in. Embrace can be your primary crash reporter, or you can add Firebase Crashlytics as the crash reporter to send crashes to both Embrace ~and~ Firebase. If you choose to use Crashlytics, Embrace will mirror reports sent to Crashlytics so you will still have that data available in the Embrace Dashboard.
The first step in initializing crash reporting is configuring which mode you want Embrace to operate in. Embrace can be your primary crash reporter, or you can add Firebase Crashlytics as the crash reporter to send crashes to both Embrace ~and~ Firebase.

The crash reporter is added in the [SDK configuration step](/docs/ios/open-source/integration/embrace-options.md). If you do not add another crash reporter, Embrace's will be used by default. If you wish to use Crashlytics, do the following:
The crash reporter is added in the [SDK configuration step](/docs/ios/open-source/integration/embrace-options.md). If you do not add another crash reporter, Embrace's will be used by default.
Import the dependency with import EmbraceCrashlyticsSupport

If you choose to use Crashlytics, Embrace will mirror reports sent to Crashlytics so you will still have that data available in the Embrace Dashboard. First, add the module:

- import `EmbraceCrashlyticsSupport` when using Swift Package Manager
- pod `EmbraceIO/EmbraceCrashlyticsSupport` when using Cocoapods

Then, import the dependency when you initialize the SDK:

```swift
//import Embrace support module so that Embrace dashboard mirrors Crashlytics data
Expand Down

0 comments on commit 7910992

Please sign in to comment.