Announcing Code Ownership and Teams for Crash Reporting - Learn More

Bug Reporting and User Feedback for Cordova

Take your app quality and stability to the next level with the Instabug SDK for Cordova

Receive Detailed Bug Reports From Your Native Cordova Apps

See network logs for server issues, examine view hierarchy in 3D for UI bugs, and get device and session data to help triage, investigate, and fix problems faster.

Manual

Cocoapods

Carthage

Language:

1 - Download the SDK zip file and extract it to get the .framework file.

2 - Drag & drop Instabug.framework to your project's "Embedded Binaries" section under the    "General" tab, and make sure that the "Copy items if needed" checkbox is checked.

3 - Import the framework in the appDelegate.


import Instabug

4 - Call the SDK by including this line in "application didFinishLaunchingWithOptions"


Instabug.start(withToken:"YOUR_APP_TOKEN_HERE", invocationEvents: [.shake, .screenshot])

5 -If your app doesn’t already access the microphone or photo library, you’ll need to add the following 2 keys to your  app’s info.plist file:


NSMicrophoneUsageDescription
NSPhotoLibraryUsageDescription

6 - Create a new "Run Script Phase" in your project’s target "Build Phases" and add the following snippet


bash
"${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Instabug.framework/Instabug.bundle/
strip-frameworks.sh"

1 - Download the SDK zip file and extract it to get the .xcframework file.

2 - Drag & drop Instabug.framework to your project's "Embedded Binaries" section under the "General" tab, and make sure that the "Copy items if needed" checkbox is checked.

3 - Import the framework in the appDelegate.


#import <Instabug/Instabug.h>

4 - Call the SDK by including this line in "application didFinishLaunchingWithOptions"


[Instabug startWithToken:@"YOUR_APP_TOKEN_HERE" invocationEvents: IBGInvocationEventShake | IBGInvocationEventScreenshot];

5 -If your app doesn’t already access the microphone or photo library, you’ll need to add the following 2 keys to your  app’s info.plist file:


NSMicrophoneUsageDescription
NSPhotoLibraryUsageDescription

6 - Create a new "Run Script Phase" in your project’s target "Build Phases" and add the following snippet


bash 
"${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Instabug.framework/Instabug.bundle/
strip-frameworks.sh"

1 - Add the following line to your "Podfile":


pod 'Instabug' 

2 - Run pod install in your Xcode project directory. CocoaPods should download and install the SDK and all the required

3 - Import the framework in the appDelegate.


#import <Instabug/Instabug.h>

4 - Call the SDK by including this line in "application didFinishLaunchingWithOptions"


[Instabug startWithToken:@"YOUR_APP_TOKEN_HERE" invocationEvents: IBGInvocationEventShake | IBGInvocationEventScreenshot];

5 - If your app doesn’t already access the microphone or photo library, you’ll need to add the following 2 keys to your 
 app’s info.plist file:


NSMicrophoneUsageDescription
NSPhotoLibraryUsageDescription

1 - Add the following line to your "Podfile":


pod 'Instabug' 

2 - Run pod install in your Xcode project directory. CocoaPods should download and install the SDK and all the required

3 - Import the framework in the appDelegate.


import Instabug

4 - Call the SDK by including this line in "application didFinishLaunchingWithOptions"


Instabug.start(withToken:"YOUR_APP_TOKEN_HERE", invocationEvents: [.shake, .screenshot])

5 - If your app doesn’t already access the microphone or photo library, you’ll need to add the following 2 keys to your 
 app’s info.plist file:


NSMicrophoneUsageDescription
NSPhotoLibraryUsageDescription

1 - To integrate Instabug into your Xcode project using Carthage, add it to your Cartfile:


binary "https://raw.githubusercontent.com/Instabug/Instabug-iOS/master/Instabug.json"

2 - Run the following command:


$ carthage update

3 - Import the framework in the appDelegate


#import <Instabug/Instabug.h>

4 - Call the SDK by including this line in "application didFinishLaunchingWithOptions"


[Instabug startWithToken:@"YOUR_TOKEN_HERE" invocationEvents:IBGInvocationEventFloatingButton | IBGInvocationEventShake];

5 - If your app doesn’t already access the microphone or photo library, you’ll need to add the following 2 keys to your 
 app’s info.plist file:


NSMicrophoneUsageDescription
NSPhotoLibraryUsageDescription

1 - To integrate Instabug into your Xcode project using Carthage, add it to your Cartfile:


binary "https://raw.githubusercontent.com/Instabug/Instabug-iOS/master/Instabug.json"

2 - Run the following command:


$ carthage update

3 - Import the framework in the appDelegate


import Instabug

4 - Call the SDK by including this line in "application didFinishLaunchingWithOptions"


Instabug.start(withToken:"YOUR_APP_TOKEN_HERE", invocationEvents: [.shake, .screenshot])

5 - If your app doesn’t already access the microphone or photo library, you’ll need to add the following 2 keys to your 
 app’s info.plist file:


NSMicrophoneUsageDescription
NSPhotoLibraryUsageDescription

Simple Steps To Get Started

1- Open your command line and navigate to your project directory. Then, run the following command.


cordova plugin add instabug-cordova

iOS Configuration

2- To start using Instabug in your iOS app, initialize the SDK through the activate method. It takes as parameter your app token, the desired invocation event and a range of optional parameters.


cordova.plugins.instabug.activate(
  { ios: "YOUR_APP_TOKEN_HERE"
  },
  "shake",
  {
    commentRequired: true,
    colorTheme: "dark"
  },
  function () {
    console.log("Instabug initialized.");
  },
  function (error) {
    console.log("Instabug could not be initialized - " + error);
  }
);

Android Configuration

3- To start using Instabug in your Android app, change the name of the application class in your
"AndroidManifest.xml" file to android:name="com.instabug.cordova.plugin.MyApplication" Then, Replace "ANDROID_APP_TOKEN" in MyApplication class with your App Token which you will get on signup. You can find this class under the following path "YourProjectName/plugins/com.instabug.cordova.plugin/src/android/MyApplication.java".

You can also check out our API Reference for more detailed information about our SDK

Text Link

25,000 Innovative Mobile Teams Rely on Instabug

Himadri Sarkar

Himadri Sarkar

T-Mobile

“Customers love our product, and they show their love with a 4.8/5.0 rating for SyncUP KIDS in the app store. We really appreciate Instabug which provides a mechanism to build a communication channel with our customers and is an active ear for our customers' feedback.”

Justin Ing

Justin Ing

Loblaw

“Instabug has allowed us to really connect to our store colleagues. We have given them an easy and simple method to provide feedback to our support teams. It helped us diagnose, triage, and solve problems affecting our stores easier and faster. Our colleagues love it!"

Alex Ma

Alex Ma

Poparazzi

"I would highly recommend Instabug to anyone on the product development journey. Listening to feedback from users, and making sure you're building an app that works and that is high quality, is critical and crucial to finding product-market fit."

Kimberly Kalb

Houseparty

"With the Instabug + Slack integration, the Houseparty team is always updated about incoming issues reported through Instabug. And with the Instabug + Front integration, Houseparty’s Trust and Safety Team can receive, sort, and address all Instabug reports."

Wells Riley

Wells Riley

Envoy

"I've had plenty of apps break on me and I try to take a screenshot so that I can send it to support and I always get a little disappointed when I don’t see Instabug. Instabug has made it easier for Envoy’s customers to report problems.”

Jamie Scanlon

Jamie Scanlon

CommentSold

"Instabug not only gave us the ability to obtain accurate data about the health of the apps in the wild, it gave us the ability to address issues quickly and proactively."

Shelby Kozlowski

Shelby Kozlowski

Unigroup

“Instabug has helped us better understand our users' feedback and opened a communication channel with our users to accommodate features and functionally they're looking for more effectively.”

Mohammad Hariri

Mohammad Hariri

Verizon

"If you look at our crash rate over the last two to four years, the trend was down, we were making headway, but not as fast as we wanted to, and Instabug provided us the ability to make a major impact in a rather short time.”

partner logos
partner logos
partner logos
partner logos
partner logos

Frequently Asked Questions

Start Your 14-Day Free Trial for Realtime Contextual Insights

In less than a minute, integrate the Instabug SDK for iOS, Android, React Native, Xamarin, Cordova, Flutter, and Unity mobile apps