We use cookies to ensure you get the best user experience on our website.Find Out More

Install Shakebug SDK

Stuck on setup? Ask in our Slack community →

Watch 2-Minute Android Setup Walkthrough

Add this line to your build.gradle file:

implementation 'com.softnoesis.shakebug:ShakeBug:1.2.52'

You may also need to add the following to your project/build.gradle file:

buildscript {
    repositories {
        mavenCentral()
        maven { url 'https://jitpack.io' }
   }
}

Then, update the following sdkVersion to your app's `build.gradle` file:

android {
    compileSdk 36
        defaultConfig {
             ...
             targetSdk 36
             ...
        }
        ...
}

Code

1. In your Launching activity add this line to your onCreate method. This initializes Shake Bug with the default invocation event, Shake.

Java

ShakeBug.sharedInstance().initiateWithKey(this, "<Your Key>");


Kotlin

ShakeBug.sharedInstance().initiateWithKey(this,"<Your Key>");


Optional Settings

1. 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 value


Kotlin

ShakeBug.sharedInstance().addEventKey(this,"<Key>","<Key Value>") // pass any key or value


2. Add the following for enabling/disabling first time tutorial screen.

Java

ShakeBug.sharedInstance().showTutorialScreenFirstTime(true); // Default value True


Kotlin

ShakeBug.sharedInstance().showTutorialScreenFirstTime(true) // Default value True


Want to know more
Watch 2-Minute iOS Swift Setup Walkthrough
Swift Package Manager (Recommended)

To integrate ShakeBug into your Xcode project using Swift Package Manager, add the repository URL below in Xcode under File > Add Package Dependencies...

https://github.com/softnoesis/ShakeBug/

Choose version 1.0.48 or later and add the package to your app target.

https://github.com/softnoesis/ShakeBug/releases/tag/1.0.48

Note: Latest version of Shakebug iOS SDK is 1.0.48.   Open Detail

Code

1. Import the ShakeBug framework header into your app delegate.

Swift

import ShakeBug


Objective-C

#import <ShakeBug/ShakeBug.h>


Note: If you are working React Native exported project then you also need to mention this line too

#import <ShakeBug/ShakeBug-Swift.h>

2. Add the following to your app delegate's application:didFinishLaunchingWithOptions: method.

Swift

ShakeBugSDK.sharedInstance().initiate(withKey: "Your Key")


Objective-C

[[ShakebugSDK sharedInstance] initiateWithKey: "Your Key"];


3. Add the following to your Info.plist to request permission to access the Photo Library.


<dict>
  <key>NSPhotoLibraryUsageDescription</key>
  <string>Require access for reporting bugs.</string>
</dict>


Be sure to replace with your application key which given by ShakeBug website.

Note: NSPhotoLibraryUsageDescription must be added in info.plist.

Want to know more
Watch 2-Minute React Native Setup Walkthrough
React Native SDK

Shakebug provides an official React Native package (shakebug-react-native) supporting iOS and Android.

Note: The latest version of the Shakebug React Native SDK is 2.4.17.   View on npm

1. Install the package

Navigate to your React Native project directory and install shakebug-react-native:

npm install shakebug-react-native

Or if you prefer to use Yarn:

yarn add shakebug-react-native

2. iOS CocoaPods Setup

For iOS, install CocoaPods dependencies in your ios directory:

cd ios && pod install && cd ..

3. Usage

Import and wrap your application root with ShakebugView in App.js (or App.tsx):

import ShakebugView from 'shakebug-react-native';

export default function App() {
  return (
    <ShakebugView
      Android_appkey="YOUR_ANDROID_APP_KEY"
      iOS_appkey="YOUR_IOS_APP_KEY"
    >
      {/* Your app content */}
    </ShakebugView>
  );
}

Crash reporting is enabled by default. Shake the device to report a bug with screenshots, console logs, and device diagnostics.

Want to know more? Open the full React Native guide
Watch 2-Minute Flutter Setup Walkthrough
Add the Shakebug package

Add Shakebug to your Flutter project from pub.dev — run this in your project root:

flutter pub add shakebug


Or add it manually to your pubspec.yaml (see pub.dev for the latest version):

dependencies:
  shakebug: ^1.0.6


Usage

1. Import the Shakebug package:

import 'package:shakebug/shakebug.dart';


2. Wrap your app with ShakebugSDK and pass your Android and iOS app keys from your Shakebug dashboard:

ShakebugSDK(
  androidAppKey: 'your_android_appkey',
  iosAppKey: 'your_ios_appkey',
  child: MaterialApp(
    home: const HomeScreen(),
  ),
);


3. Build and run, then shake the device to report a bug. Shake-to-report is enabled by default.

Want to know more? Open the full Flutter guide
NPM Package for React & Next.js

The official @softnoesis/shakebug-js NPM package delivers in-browser visual bug reporting, console logs, and session replays for React, Next.js, and modern bundled JavaScript applications.

React & Next.js Latest version: v1.0.26  •  View on npm
1. Install with NPM or Yarn

Add the package to your React or Next.js project:

npm install @softnoesis/shakebug-js

Or if you prefer Yarn:

yarn add @softnoesis/shakebug-js

2. Import the Stylesheet

Import the Shakebug stylesheet once in your root layout or main entry file (e.g. App.tsx or main.tsx):

import '@softnoesis/shakebug-js/dist/index.css';

3. Add Component at App Root

Mount the Shakebug component near the root of your app using your App Key and Website URL from the Shakebug dashboard:

import { Shakebug } from '@softnoesis/shakebug-js';

function App() {
  return (
    <div>
      <Shakebug
        appKey="YOUR_APP_KEY"
        bundleId="YOUR_WEBSITE_URL"
        showFloatingButton={true}
      />
      {/* Your app content */}
    </div>
  );
}

Set showFloatingButton={false} if you prefer to trigger the reporter exclusively via the global keyboard shortcut.

Watch 2-Minute React & Next.js Setup Walkthrough
Keyboard Shortcuts

Anyone on your site can trigger the bug reporter instantly with a global keyboard shortcut:

  • macOS: Cmd + Alt + K
  • Windows / Linux: Ctrl + Alt + K
Want to know more? Open the full React & Next.js NPM guide
Shakebug Web SDK (Standalone Script Tag)

The standalone Web SDK is a lightweight, zero-dependency browser bundle targeting Shakebug API v1.6. Works on any website — HTML, PHP, Laravel, Shopify, Webflow, Squarespace — or injected via Google Tag Manager (GTM). No bundler or build steps required.

Universal CDN Zero dependencies  •  Open Shadow DOM encapsulation  •  shakebug.min.js
1. Add the Script Snippet

Add this snippet right before the closing </body> tag of your website, or paste it as a Custom HTML Tag in Google Tag Manager (GTM):

<!-- Shakebug Web SDK v1.6 -->
<script src="https://www.shakebug.com/sdk/web/v1/shakebug.min.js"></script>
<script>
  Shakebug.init({
    appKey: "YOUR_APP_KEY"
  });
</script>

Zero CSS Conflicts: All reporter styles, dialogs, and drawing canvas tools are isolated inside an open Shadow DOM. Host page stylesheets will never interfere with Shakebug.

2. Configuration Options (Shakebug.init)
Option Type Default Description
appKey string required Your project App Key found in the Shakebug dashboard.
appVersion string "1.0.0" Your web application or site version string.
showFloatingButton boolean true Show floating report button in the corner of your page.
Keyboard Shortcuts

Trigger the bug reporter from anywhere on your site with the global shortcut:

  • macOS: Cmd + Alt + K
  • Windows / Linux: Ctrl + Alt + K
Want to know more? Open the full Standalone Web SDK guide
Google Chrome Extension

You can seamlessly integrate Shakebug into your web workflow without modifying your website's codebase using our official Google Chrome Extension:

Chrome Web Store Zero code integration  •  In-browser screenshot markup  •  Install Extension
1. Add Website URL

First, ensure the URL of your website is added to your Shakebug account. Log in to your Shakebug account and navigate to the project settings to register your website URL.

2. Install from Chrome Web Store

Install the Shakebug Chrome Extension directly from the Chrome Web Store.

3. Capture & Report Bugs

After installation, click the Shakebug Extension icon in your browser toolbar to capture full-page or visible screenshots, annotate issues with arrows, text, and blur tools, and send reports directly to your dashboard.

Want to know more? Open the Chrome Extension guide
Official WordPress Plugin

Add Shakebug to any WordPress site with our official plugin — no code required. It captures bug reports with annotated screenshots, screen recordings, console logs, crashes, and user sessions straight from your site.

WordPress.org Verified plugin  •  WordPress 6.0+ & PHP 7.4+  •  wordpress.org/plugins/shakebug
1. Install from WordPress Admin

In WordPress admin, open Plugins → Add New, search for “Shakebug”, then click Install Now and Activate. You can also download the zip from wordpress.org/plugins/shakebug and upload it via Plugins → Add New → Upload Plugin.

2. Connect Your Project

Open Shakebug in your WordPress admin sidebar and paste your API key from your Shakebug dashboard. Don’t have an account yet? Create one free. Reports then flow into your Shakebug project automatically.

View the plugin on WordPress.org

Still stuck? Ask in our Slack community →

Start saving time now!

Sign up free

No credit card required