Shakebug allows you to receive feedback from your beta testers or real users and improve the quality of your application in a simple way. Here users just need to shake their mobile and all the data regarding bugs & crashes can be seen by developers through their log in panel. It also helpful to analyse your users, session, location etc. Addition, you can add events on each action of your application and track it using this Shakebug framework.
Sign up for a service at https://www.shakebug.com
Add this line to your build.gradle file.
implementation 'com.softnoesis.shakebug:ShakeBug:1.2.43'In your Application class or Launching activity add this line to your onCreate method.
Java
ShakeBug.sharedInstance().initiateWithKey(this, "<Your Key>");Kotlin
ShakeBug.sharedInstance().initiateWithKey(this,"<Your Key>")Be sure to replace <Your Key> with your application key which given by ShakeBug website.
Then, update the following sdkVersion to your app's build.gradle file:
android {
compileSdk 33
defaultConfig {
...
targetSdk 33
...
}
...
}```You may also need to add the following to your project/build.gradle file:
buildscript {
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}For a seamless experience with our SDK, include maven { url 'https://jitpack.io' } in your build.gradle file under allprojects > repositories . Avoid potential issues and enjoy smooth integration.
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}- If you want add event to any screen or activity use following methods
Java
ShakeBug.sharedInstance().addEventKey(this,"<Key>","<Key Value>"); //pass any key or valueKotlin
ShakeBug.sharedInstance().addEventKey(this,"<Key>","<Key Value>") // pass any key or value- Add the following for enabling/disabling first time tutorial screen
Java
ShakeBug.sharedInstance().showTutorialScreenFirstTime(true); // Default value TrueKotlin
ShakeBug.sharedInstance().showTutorialScreenFirstTime(true) // Default value True- Add the following to set custom language for shakebug
Java
ShakeBug.sharedInstance().setShakebugLanguage(ShakebugLanguage.SPANISH,this);Kotlin
ShakeBug.sharedInstance().setShakebugLanguage(ShakebugLanguage.SPANISH,this)- Add the following to set custom Theme color for shakebug
Java
ShakeBug.sharedInstance().setShakebugThemeColor(134,235,52);Kotlin
ShakeBug.sharedInstance().setShakebugThemeColor(134,235,52)- Add the following to set custom Screen title for shakebug
Java
ShakeBug.sharedInstance().changeSDKScreenTitle("Annotate your Bug", "Feedback");Kotlin
ShakeBug.sharedInstance().changeSDKScreenTitle("Annotate your Bug", "Feedback")- Add the following to set custom error message for shakebug
Java
ShakeBug.sharedInstance().changeSDKErrorAlertMessage("Something wrong...");Kotlin
ShakeBug.sharedInstance().changeSDKErrorAlertMessage("Something wrong...")- Add the following to set custom endpoint for shakebug
Java
ShakeBug.sharedInstance().setShakebugSDKEndPointURL("","","");Kotlin
ShakeBug.sharedInstance().setShakebugSDKEndPointURL("","","")- Add the following to set trigger shakebug
Java
ShakeBug.sharedInstance().triggerBugReporting();Kotlin
ShakeBug.sharedInstance().triggerBugReporting()- Add the following to allow report bug by shaking mobile
Java
ShakeBug.sharedInstance().allowToReportBugByShakingMobile(true);Kotlin
ShakeBug.sharedInstance().allowToReportBugByShakingMobile(true)- Add the following to allow report bug by screenshot capture event
Java
ShakeBug.sharedInstance().allowToReportBugByScreenCapture(true)Kotlin
ShakeBug.sharedInstance().allowToReportBugByScreenCapture(true)- If you want add custom user for accurate sessions use following methods
Java
ShakeBug.sharedInstance().addCustomUser(id, email, name, etc.); //pass any key or valueKotlin
ShakeBug.sharedInstance().addCustomUser(id, email, name, etc.) // pass any key or valueBuild & run your app. Once your app is running, shake your device to report a bug! Bug/Crash reports are sent directly to login panel of Shakebug.com and also notify on your registered email address.
Visit on: https://www.shakebug.com
Contact us on support@shakebug.com in case of any use.