With BugBattle we’ve put the lame task of bug fixing upside down and turned it into a gaming experience for you and the whole development team. As if by magic the quality of your apps and websites improves – and your customers will be delighted.
Open your App in your preferred development tool, for e.g. Android Studio.
In the same file ( build.gradle ) add the dependency to include the library.
dependencies {
...
implementation 'io.bugbattle:bugbattle-android-sdk:5.0.4'
}
You are now ready to use our SDK in your App. Let's carry on with the initialisation 🎉
Open your preferred development tool and add the following imports.
import bugbattle.io.bugbattle.BugBattle;
import bugbattle.io.bugbattle.BugBattleActivationMethod;
Add the initialise method to your main activity's onCreate method.
@Override protected void onCreate(Bundle savedInstanceState) {
....
BugBattle.initialise("5c5d811215244ab6e48e9751", BugBattleActivationMethod.SHAKE, this);
}
The initialise method takes two parameters. The api key and the activation method. There are two ways to start the bug reporting flow. The default option is to activate the flow by shaking the device (BugBattleActivationMethod.SHAKE). You can also choose BugBattleActivationMethod.NONE and start the flow by yourself in order to implement a custom integration.
Please notice, that the shake gesture wont work in the simulator.
Need help? Check out our documentation or contact us.