HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center
These docs are for v8.6. Click to read the latest docs for v12.0.0.

Building Instabug

You can use these methods to build Instabug in your project so that you can invoke it. This method takes a string token and any number of invocation events as an argument. This method will require that you have Instabug already installed. For more information on how to fully install and integrate Instabug, please refer to the relevant documentation sections here:

Instabug.start(withToken: "YOUR-TOKEN-HERE", invocationEvents: [.shake, .screenshot]);
[Instabug startWithToken:@"YOUR-TOKEN-HERE" invocationEvents: IBGInvocationEventShake | IBGInvocationEventScreenshot]
new Instabug.Builder(this, "APP_TOKEN").build();
//iOS
Instabug.startWithToken('IOS_APP_TOKEN', [Instabug.invocationEvent.shake]);

//Android
new RNInstabugReactnativePackage.Builder("TOKEN",MainApplication.this)
							.build();
cordova.plugins.instabug.activate(
    {
        ios: 'MY_IOS_TOKEN'
    },
    function () {
        console.log('Instabug initialized.');
    },
    function (error) {
        console.log('Instabug could not be initialized - ' + error);
    }
);
//iOS
Instabug.StartWithToken("YOUR_APP_TOKEN", IBGInvocationEvent.Shake | IBGInvocationEvent.Screenshot);

//Android
new Instabug.Builder(this, "TOKEN").Build();
Invocation Event Parameters:

//No Trigger
.none
//Shake
.shake
//Screenshot
.screenshot
//Two Finger Swipe Left
.twoFingersSwipeLeft
//Right Edge Pan
.rightEdgePan
//Floating Button
.floatingButton
//No Trigger
IBGInvocationEventNone
//Shake
IBGInvocationEventShake
//Screenshot
IBGInvocationEventScreenshot
//Two Finger Swipe Left
IBGInvocationEventTwoFingersSwipeLeft
//Right Edge Pan
IBGInvocationEventRightEdgePan
//Floating Button
IBGInvocationEventFloatingButton
//No Trigger
NONE
//Shake
SHAKE
//Screenshot
SCREENSHOT_GESTURE
//Two Finger Swipe Left
TWO_FINGER_SWIPE_LEFT
//Floating Button
FLOATING_BUTTON
//iOS
//No Trigger
Instabug.invocationEvent.none
//Shake
Instabug.invocationEvent.shake
//Screenshot
Instabug.invocationEvent.screenshot
//Two Finger Swipe Left
Instabug.invocationEvent.twoFingersSwipe
//Floating Button
Instabug.invocationEvent.floatingButton

//Android
"none"
"shake"
"screenshot"
"swipe"
"button"
//No Trigger
cordova.plugins.bugReporting.invocationEvents.none
//Shake
cordova.plugins.bugReporting.invocationEvents.shake
//Floating Button
cordova.plugins.bugReporting.invocationEvents.button
//Screenshot
cordova.plugins.bugReporting.invocationEvents.screenshot
//Two Finger Swipe Left
cordova.plugins.bugReporting.invocationEvents.swipe
//iOS
IBGInvocationEvent.None
IBGInvocationEvent.Shake
IBGInvocationEvent.Screenshot
IBGInvocationEvent.TwoFingersSwipeLeft
IBGInvocationEvent.RightEdgePan
IBGInvocationEvent.FloatingButton

//Android 
InstabugInvocationEvent.Shake
InstabugInvocationEvent.Screenshot
InstabugInvocationEvent.FloatingButton
InstabugInvocationEvent.ScreenshotGesture
InstabugInvocationEvent.TwoFingerSwipeLeft
InstabugInvocationEvent.None