Server Endpoint
Beta release
Every Mobile App Distribution deployment has its own server endpoint: the public instances per region as well as Private Cloud instances. The SDK's built-in default server is no longer in service, so every app must pass its endpoint to setServerEndpoint before beginWithoutCrashHandler; an app that skips this call starts no sessions.
Setting Your Endpoint
Copy the Server Endpoint from Organization Settings > SDK Settings on your dashboard (see Organization Settings). It has the form https://<host>/services/ and must be passed to the SDK before beginWithoutCrashHandler is called. If it reads Not configured, contact Sauce Labs support.
- Android
- iOS
- React Native
TestFairy.setServerEndpoint("<server-endpoint>");
// Be sure to import the SDK
import com.testfairy.TestFairy;
TestFairy.setServerEndpoint("https://<host>/services/");
TestFairy.beginWithoutCrashHandler(context, "<sauce-mobile-beta-token>");
[TestFairy setServerEndpoint:@"<server-endpoint>"];
// Be sure to import the SDK
#import "TestFairy.h"
[TestFairy setServerEndpoint:@"https://<host>/services/"];
[TestFairy beginWithoutCrashHandler:@"<sauce-mobile-beta-token>"];
TestFairy.setServerEndpoint("<server-endpoint>");
// Be sure to import the SDK
import TestFairy from '@saucelabs/mobile-beta-react-native';
TestFairy.setServerEndpoint("https://<host>/services/");
TestFairy.beginWithoutCrashHandler("<sauce-mobile-beta-token>");