Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

instabug-cordova

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

instabug-cordova

The purpose of this plugin is to simplify the process of integrating the Instabug SDK in a hybrid application, as well as to provide an interface to interfacing with the SDK through JavaScript.

  • 1.3.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
115
increased by79.69%
Maintainers
1
Weekly downloads
 
Created
Source

Cordova Instabug Plugin

The purpose of this plugin is to simplify the process of integrating the Instabug SDK in a hybrid application, as well as to provide an interface to interact with the SDK through JavaScript.

Installation

Currently, this plugin can only be installed via the Command-Line Interface.

cordova plugin add https://github.com/Instabug/instabug-cordova

Usage

To initialize Instabug in your app, you need to do the following:

Android

  1. Change the name of the application class in your manifest file to android:name="com.instabug.cordova.plugin.MyApplication".

  2. You need to add your app token in the MyApplication class, by replacing YOUR_ANDROID_TOKEN. (You can find this class under this path YourProjectName/plugins/com.instabug.cordova.plugin/src/android/MyApplication.java)

  3. You can change the invocation event by changing this line InstabugInvocationEvent.SHAKE in the MyApplication class to any of the following:

InstabugInvocationEvent.FLOATING_BUTTON, InstabugInvocationEvent.SCREENSHOT_GESTURE, InstabugInvocationEvent.TWO_FINGER_SWIPE_LEFT, or InstabugInvocationEvent.NONE.

iOS

You can initialize the SDK by using this method in your JS class

cordova.plugins.instabug.activate(
    {
        ios: 'MY_IOS_TOKEN'
    },
    'shake',
    function () {
        console.log('Instabug initialized.');
    },
    function (error) {
        console.log('Instabug could not be initialized - ' + error);
    }
);

You can change the invocation event with any of the following: 'button', 'screenshot', 'swipe', or 'shake'.

License

This software is released under the Apache 2.0 License.

© 2016 Instabug. All rights reserved.

FAQs

Package last updated on 05 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc