Initialize the SDK
In addition, you need to call the initialization function to initialize the Bugbattle SDK. Make sure that the initialization method gets called only once (i.e. by using
Your API key can be found in the project settings within BugBattle. Possible values for the activation method are
BugBattle.NONE: No automatic activation.
BugBattle.SHAKE: Activation on device shake.
BugBattle.SCREENSHOT: Activation on user making a screenshot.
Manually initiate the bug reporting flow
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
Customer email address
Sets the customer's email address.
Attach custom data
Sometimes you need to attach custom data to bug reports in order to solve them more quickly. Any simple dictionary can be attached.
Styling (iOS only)
NavigationBar Tint Color
NavigationBar tint color. Accepts an
Navigation Tint Color
Navigation tint color. Accepts an
NavigationBarTitle color. Accepts an
Sets the API url to your internal Bugbattle server. Please make sure that the server is reachable within the network.