πŸš€ 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 ReactNative:

BugBattle.NONE: No automatic activation.

BugBattle.SHAKE: Activation on device shake.

BugBattle.SCREENSHOT: Activation when user performs a screenshot trigger.

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.

BugBattle.initWithToken('YOUR_API_KEY', ActivationMethod.SHAKE);

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.

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.

BugBattle.initializeMany("YOUR_TOKEN", [ActivationMethod.SCREENSHOT, ActivationMethod.SHAKE]);

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.

BugBattle.startBugReporting()