We use cookies to ensure you get the best user experience on our website.Find Out More
Add this line to your build.gradle file:
You may also need to add the following to your project/build.gradle file:
Then, update the following sdkVersion to your app's `build.gradle` file:
1. In your Launching activity add this line to your onCreate method. This initializes Shake Bug with the default invocation event, Shake.
Java
Kotlin
1. If you want add event to any screen or activity use following methods.
Java
Kotlin
2. Add the following for enabling/disabling first time tutorial screen.
Java
Kotlin
To integrate ShakeBug into your Xcode project using CocoaPods, specify it in your Podfile:
Then, run the following command:
1. Import the ShakeBug framework header into your app delegate.
Swift
Objective-C
Note: If you are working React Native exported project then you also need to mention this line too
2. Add the following to your app delegate's application:didFinishLaunchingWithOptions: method.
Swift
Objective-C
3. Add the following to your Info.plist to request permission to access the Photo Library.
Be sure to replace with your application key which given by ShakeBug website.
Note: NSPhotoLibraryUsageDescription must be added in info.plist.
Want to know moreNavigate to your React Native project directory and install shakebug-react-native
Or if you prefer to use Yarn instead of npm:
For iOS project, developer must need to install Shakebug in xCode project using pod.
To install Shakebug SDK in xCode project. Please follow above "For iOS" guide.
Add this line to your build.gradle file.
Open package having MainActivity.java file and add following 2 lines in "onCreate" method.
Below the "onCreate" method, write all the following methods.
We no longer support the legacy JavaScript snippet. For modern web projects, use our official NPM package.
This package is suitable for React, Next.js, Express.js, and other JavaScript-based frameworks or applications.
Or, if you prefer Yarn:
Use the app key from your Shakebug dashboard and follow our detailed web integration guide to complete setup in your project.
Want to know more? Open the full Web SDK guideYou can seamlessly integrate Shakebug into your web project using our Google Chrome Extension:
First, ensure that the URL of your website is added to your Shakebug account. Log in to your Shakebug account and navigate to the project page to add your website URL.
Next, install the Shakebug Chrome Extension from the Chrome Web Store.
After installation, click on the Shakebug Extension icon in your browser's toolbar. That new icon/tool will allow you to report bugs directly from your Chrome browser.