Git Product home page Git Product logo

instabug-cordova's Introduction

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 interfacing 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 

or

npm install instabug-cordova

Usage

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

Android

Change the name of the application class in your manifest file to android:name="com.instabug.cordova.plugin.MyApplication". You only 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 You can change the invocation event by changing this line InstabugInvocationEvent.FLOATING_BUTTON in the MyApplication class to any of the following:

InstabugInvocationEvent.SHAKE, 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 'swipe'.

License

This software is released under the Apache 2.0 License.

© 2016 Instabug. All rights reserved.

instabug-cordova's People

Contributors

devhossamhassan avatar figo0o avatar mzsoliman avatar salmatarzi avatar yousefhamza avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.