Crashlytics provides real-time monitoring of crashes even the exact line of code your app crashed on
The following guide explains how to associate a UXCam session URL with Crashlytics event enabling you to see a step by step session replay for your every event.
Sign up and Integrate UXCam
UXCam website will walk you through how to sign up and set up UXCam. To create a Crashlytics account, visit Crashlytics's website.
Integrate with Crashlytics
// Import UXCam and Crashlytics header at the top of your AppDelegate.m
#import <Fabric/Fabric.h>
#import <Crashlytics/Crashlytics.h>
#import <UXCam/UXCam.h>
// Add this call as the first line of your
// application:didFinishLaunchingWithOptions: method
[Fabric with:@[[Crashlytics class]]];
[UXCam startWithKey:@"App-key from https://www.uxcam.com" appVariantIdentifier:nil completionBlock:^(BOOL started) {
if (started) {
[[Crashlytics sharedInstance] setObjectValue:[UXCam urlForCurrentSession] forKey:@"UXCam: Session Recording link"];
[[Crashlytics sharedInstance] setObjectValue:[UXCam urlForCurrentUser] forKey:@"UXCam: User Recordings link"];
}
else {
NSLog(@“UXCam session did not start recording”);
}
}];
//Import UXCam and Crashlytics header at the top of your AppDelegate.swift
import UXCam
import Fabric
import Crashlytics
// Add this call as the first line of your application:didFinishLaunchingWithOptions: method
Fabric.with([Crashlytics.self])
UXCam.startWithKey(_:"App-key from UXCam",
appVariantIdentifier: nil,
completionBlock: {(started : Bool) in
if started
{
let userURL = UXCam.urlForCurrentUser;
let sessionURL = UXCam.urlForCurrentSession;
Crashlytics.sharedInstance().setObjectValue(_:sessionURL(), forKey: "UXCam: Session Recording link")
Crashlytics.sharedInstance().setObjectValue(_:userURL(), forKey: "UXCam: User Recordings link")
}
else
{
print("UXCam session did not start recording")
}
} );
// Override point for customization after application launch.
return true
}
// Inside onCreate method of all activity that is an entry point to your app add
UXCam.startWithKey("App-key from UXCam");
UXCam.addVerificationListener(new UXCam.OnVerificationListener() {
@Override
public void onVerificationSuccess() {
Crashlytics.setString("UXCam: Session Recording link", UXCam.urlForCurrentSession());
Crashlytics.setString("UXCam: User Recordings link", UXCam.urlForCurrentUser());
}
@Override
public void onVerificationFailed(String errorMessage) {
}
});
UXCam URL in Crashlytics
