πŸš€
Activation methods

Remote configuration

With Bugbattle v4 (and later) you can set activation methods remotely with our visual widget configurator.
The widget configuration is located within Bugbattle Dashboard / Project / Widget.
We offer the following activation methods for iOS:
BugBattle.NONE: No automatic activation.
BugBattle.SHAKE: Activation on device shake.
BugBattle.SCREENSHOT: Activation when user performs a screenshot trigger.
BugBattle.THREE_FINGER_DOUBLE_TAB: Activation on double tapping with three fingers.

Multiple activation methods

It's also possible to initialize the SDK with multiple activation methods. Simply check the activation methods you'd like to activate in the widget configurator.

Configuration by code

If you'd like to initialize the BugBattle SDK manually and control the activation methods, use the following method to initialize the BugBattle SDK. It's also important that you don't call the autoConfiguration method.
Swift
Objective-C
1
BugBattle.initWithToken("YOUR-API-KEY", andActivationMethod: SHAKE)
Copied!
1
[BugBattle initWithToken: @"YOUR-API-KEY" andActivationMethod: SHAKE];
2
​
3
​
Copied!
We currently offer the following activation methods:
BugBattle.NONE: No automatic activation.
BugBattle.SHAKE: Activation on device shake.
BugBattle.SCREENSHOT: Activation when user performs a screenshot trigger.
BugBattle.THREE_FINGER_DOUBLE_TAB: Activation on double tapping with three fingers.

Multiple activation methods

Bugbattle also supports the usage of multiple activation methods at once. Simply call the following method to initialize Bugbattle with multiple activation methods.
1
[BugBattle initWithToken: @"YOUR_API_KEY" andActivationMethods: @[@(THREE_FINGER_DOUBLE_TAB), @(SHAKE), @(SCREENSHOT)]];
Copied!

Manual activation

Some situations require more control about the activation of the bug reporting flow. By calling the startBugReporting method, you can simply start the flow manually. In order to also prevent the shake gesture, just initialize the Bugbattle SDK with the activation method NONE.
Swift
Objective-C
1
BugBattle.startBugReporting()
Copied!
1
[BugBattle startBugReporting];
Copied!
Last modified 3mo ago