In this article, you’ll learn: |
About Crashlytics
Crashlytics is a mobile app crash-reporting tool that helps developers identify and address issues quickly. It supports both iOS and Android platforms.
Integrating VWO with Crashlytics enables you to access your mobile session recordings from the crash reports in Crashlytics so as to centralize your app crash data for a broader analysis.
Integrating VWO With Crashlytics
Integrating your VWO account with Crashlytics is to be performed in the following two areas:
-
On the Integrations page in VWO. This enables you to apply the data from Crashlytics to be consumed for filtering the mobile session recordings.
NOTE: To avail of the Crashlytics integration for your account, reach out to support@vwo.com. - Perform a code operation in your mobile application to complete the integration.
NOTE: Besides these steps, this integration requires you to enable the Record App Crashes option in the Configurations page under Mobile Session Recordings. This is essential for VWO to track the app crash events.
Enabling Crashlytics Integration in VWO
To enable the VWO-Crashlytics integration for your VWO account, perform the following steps:
- Log in to your VWO account.
- From the left panel of your VWO dashboard, go to Configurations > Integrations.
- Search and click on the Crashlytics integration and enable it. Once enabled, the Crashlytics screen within the VWO’s Integration section looks like this:
Enabling Crashlytics Integration in Your Mobile Application
In order to complete the Crashlytics integration, you need to perform the following code operations in your mobile application:
For iOS
-
Implement the following protocol "VWOIntegrationCallback" in your AppDelegate class as shown below:
class AppDelegate: UIResponder, UIApplicationDelegate, VWOIntegrationCallback {
-
Call the following method from your mobile application:
VWO.enableIntegrations(integrationCallback: self)
- Add the following code snippet to your mobile application:
For Android
-
Implement the following Interface "IVWOIntegrationCallback" in your VWOApplication class as shown below:
class VWOApplication : Application(), IVWOIntegrationCallback {
-
Add the following line after val configuration = ClientConfiguration(accountId, apiKey, userId = null) in your mobile application:
configuration.enableIntegrations(this)
- Add the following code snippet to your mobile application:
NOTE: Both calling the method and appending the code snippets should be performed in the same class in which the VWO Insights Mobile SDK is initialized.
Viewing the Mobile Session Recordings Data in Crashlytics
To view your session recordings data in Crashlytics, perform the following steps:
- Log in to your Firebase account and open the respective Firebase project, which is linked to VWO.
- On the left panel, click on Crashlytics under Project shortcuts.
- Scroll down to the Issues section to view the list of crash events.
- To access the session recording URL of a crash event, click on the corresponding crash event and go to the Events section > Keys tab.
If you have any queries related to VWO-Crashlytics integration, please contact our support team at support@vwo.com.