TestFairy Crash Handler
The TestFairy crash handler
In order to use the TestFairy SDK as a crash handler without any other TestFairy feature, please use the code samples below.
Syntax
TestFairy.installCrashHandler(this, "APP_TOKEN");
Code Example
import com.testfairy.TestFairy; public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); TestFairy.installCrashHandler(this, "APP_TOKEN"); } }
Syntax
[TestFairy installCrashHandler:@"APP_TOKEN"];
Code Example
@implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [TestFairy installCrashHandler:@"APP_TOKEN"]; }
Syntax
TestFairy.installCrashHandler("APP_TOKEN")
Code Example
@UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { TestFairy.installCrashHandler("APP_TOKEN"); } }
Last updated on 2023-03-23