TestFairy requires that you call begin in order to start recording your sessions. However, developers have the option to invoke begin with some options that can change the behavior of the TestFairy SDK.

Here are some commonly used options:

Disable Crash Reporting

TestFairy provides a means of capturing and recording stack traces if your application crashes. Stack traces can be vital to understanding any underlying bugs in your app. However, some apps may want to disable TestFairy's crash handling. Invoke begin with the following option to disable crash reporting with TestFairy.

Syntax

Map<String, String> options = new HashMap<String, String>();
options.put("enableCrashReporter", "true");
TestFairy.begin(context, "<app token>", options);

Your app token is available from your account preferences once logged in.

Code Example

import com.testfairy.TestFairy;

public class MainActivity extends Activity {
    @Override
    public void onCreate() {
        super.onCreate();

        Map<String, String> options = new HashMap<String, String>();
        options.put("enableCrashReporter", "false");
        TestFairy.begin(this, "1234567890", options);
        // ..
    }
}
            

Syntax

[TestFairy begin:@"<app token>" withOptions:@{@"enableCrashReporter": @NO}];

Your app token is available from your account preferences once logged in.

Code Example

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [TestFairy begin:@"1234567890" withOptions:@{@"enableCrashReporter": @NO}];
    // ...
}