<key>ubertesters_organization_token</key>
<string>{your_ubertesters_organization_sdk_token}</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>ubertesters</string>
</array>
<key>NSPhotoLibraryUsageDescription</key>
<string>To use photos as issue attachments.</string>
Open https://dashboard.ubertesters.com/projects and select your project, go to SDK Integration.
#import <UbertestersSDK/Ubertesters.h>
-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[Ubertesters shared] initialize];
}
Initialize Ubertesters with different options
It is possible to initialize Ubertesters in 2 ways:
Using initializer with the default parameters. When you are using the initializer with the default parameters – UbertestersActivationModeWidget for activation mode and UbertestersLockingModeDisableUbertesters for locking mode:
[[Ubertesters shared] initialize];
Using customized initializer
[[Ubertesters shared] initializeWithOptions: UbertestersActivationModeWidget | UbertestersLockingModeDisableUbertesters];
The customized initializer is used with the Ubertesters SDK options which determine the behavior of Ubertesters widget (with the help of which you call the bug reporting screen) and the behavior of the Ubertesters app when the build/app is not available in Ubertesters system. According to their functions, all the options can be divided in two groups: Activation mode options and Locking mode options.
You can use the following options for the customized initializer:
UbertestersActivationModeWidget | The Ubertesters widget (an orange bubble) is shown, and you need to click on it to call a bug submission screen. |
UbertestersActivationModeShake | The widget is not shown, you need to shake your phone to call a menu for a bug submission or take a screenshot. |
UbertestersActivationModeManual | The Ubertesters widget is not shown, a menu should be called with the help of our API methods. You can specify the conditions under which the Ubertesters menu will be shown. |
Locking mode options:
UbertestersLockingModeDisableUbertesters | This option will not lock your application if the build is not uploaded on our server |
UbertestersLockingModeLockApplication | Ubertesters SDK locks the app completely if the build is not located on our server, it is impossible to navigate through the app |
NB: Ubertesters SDK is used for beta-testing. Please make sure you’ve removed Ubertesters SDK before publishing your app to App Store.
NB: Make sure you are using Apple LLVN compiler 4.2 and greater. Go to BuildSettings of your target and find BuildOptions. There will be row Compiler for C/C++/Objective-C.
API methods allow the developers to call additional methods and customize our SDK according to their needs.
Remote Logging
To perform remote logging you can use the UTLog method. UT log is a function with a text and a log level. Remote logging allows you to send an important system event information to Ubertesters server dedicating to storing and archiving this data. You can check the sent logs in your Ubertesters account in Activity > Feeds > Activity Stream
UTLog methods:
UTLogLevelInfo | Sends info logs |
UTLogLevelWar | Sends warning logs |
UTLogLevelError | Sends error logs |
To add UTLog, please use the following line:
[[Ubertesters shared] UTLog:@"text message" withLevel:UTLogLevelInfo];
API methods used with UbertestersActivationModeManual
These methods allow to specify the behavior of Ubertesters bug submission screen in case Manual mode is used.
Method | Action | Example |
– (void)makeScreenshot; | Captures screenshot in the app you are testing | [[Ubertesters shared] makeScreenshot]; |
– (void)showMenu; | Shows Ubertesters menu | [[Ubertesters shared] showMenu]; |
– (void)hideMenu; | Shows Ubertesters menu | [[Ubertesters shared] hideMenu]; |
Disable Crash Handler
Method | Action |
– (void) disableCrashHandler; | Disables Ubertesters crash handler. Allows using our platform along with third party crash reporters. |
Example:
[[Ubertesters shared] disableCrashHandler];
<key>ubertesters_organization_token</key>
<string>{your_ubertesters_organization_sdk_token}</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>ubertesters</string>
</array>
<key>NSPhotoLibraryUsageDescription</key>
<string>To use photos as issue attachments.</string>
Open https://dashboard.ubertesters.com/projects and select your project, go to SDK Integration.
Import Ubertesters to your project *-Bridging-Header.h file. Here is an article that describes what the “Bridging Header” is.
#import <UbertestersSDK/Ubertesters.h>
Initialize Ubertesters SDK in your app delegate file.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
Ubertesters.shared().initialize()
return true
}
Initialize Ubertesters with different options
It is possible to initialize Ubertesters in 2 ways:
Using initializer with the default parameters. When you are using the initializer with the default parameters – UbertestersActivationModeWidget for activation mode and UbertestersLockingModeDisableUbertesters for locking mode:
Ubertesters.shared().initialize()
Using customized initializer
Ubertesters.shared().initialize(with: UbertestersOptions(UbertestersActivationModeWidget.rawValue | UbertestersActivationModeWidget.rawValue))
The customized initializer is used with the Ubertesters SDK options which determine the behavior of Ubertesters widget (with the help of which you call the bug reporting screen) and the behavior of the Ubertesters app when the build/app is not available in Ubertesters system. According to their functions, all the options can be divided in two groups: Activation mode options and Locking mode options.
You can use the following options for the customized initializer:
UbertestersActivationModeWidget | The Ubertesters widget (an orange bubble) is shown, and you need to click on it to call a bug submission screen. |
UbertestersActivationModeShake | The widget is not shown, you need to shake your phone to call a menu for a bug submission or take a screenshot. |
UbertestersActivationModeManual | The Ubertesters widget is not shown, a menu should be called with the help of our API methods. You can specify the conditions under which the Ubertesters menu will be shown. |
Locking mode options:
UbertestersLockingModeDisableUbertesters | This option will not lock your application if the build is not uploaded on our server |
UbertestersLockingModeLockApplication | Ubertesters SDK locks the app completely if the build is not located on our server, it is impossible to navigate through the app |
NB: Ubertesters SDK is used for beta-testing. Please make sure you’ve removed Ubertesters SDK before publishing your app to App Store.
NB: Make sure you are using Apple LLVN compiler 4.2 and greater. Go to BuildSettings of your target and find BuildOptions. There will be row Compiler for C/C++/Objective-C.
API methods allow the developers to call additional methods and customize our SDK according to their needs.
Remote Logging
To perform remote logging you can use the UTLog method. UT log is a function with a text and a log level. Remote logging allows you to send an important system event information to Ubertesters server dedicating to storing and archiving this data. You can check the sent logs in your Ubertesters account in Activity > Session > Session Tracking
UTLog methods:
UTLogLevelInfo | Sends info logs |
UTLogLevelWar | Sends warning logs |
UTLogLevelError | Sends error logs |
To add UTLog, please use the following line:
Ubertesters.shared().utLog("text message", with: UTLogLevelInfo)
API methods used with UbertestersActivationModeManual
These methods allow to specify the behavior of Ubertesters bug submission screen in case Manual mode is used.
Method | Action | Example |
– (void)makeScreenshot; | Captures screenshot in the app you are testing | Ubertesters.shared().makeScreenshot() |
– (void)showMenu; | Shows Ubertesters menu | Ubertesters.shared().showMenu() |
– (void)hideMenu; | Shows Ubertesters menu | Ubertesters.shared().hideMenu() |
Disable Crash Handler
Method | Action |
– (void) disableCrashHandler; | Disables Ubertesters crash handler. Allows using our platform along with third party crash reporters. |
Example:
Ubertesters.shared().disableCrashHandler()
Get in touch, fill out the form below, and an Ubertesters representative will contact you shortly to find out how we can help you.
Want to see the Ubertesters platform at work? Please fill out the form below and we'll get in touch with you as quickly as possible.
Fill out a quick 20 sec form to get your free quote.
Please try again later.