Giter Club home page Giter Club logo

web-sdk-sample's Introduction

Instabug web SDK 1.2.1-beta

Overview

Instabug web sdk is a javascript library provides an easy way to report bugs from your website or webapp.

To use the sdk you need to have application_token, you can get it from your Instabug Dashboard

Installation

Requirements

Instabug Web SDK requires no special requirements, and has no dependecies on other liberaries or frameworks, and has been tested in all modern browsers with LocalStorage capability

Manual Installation

You can include instabug web sdk to your website just copy the below lines into the end of your page <body> tag

<script src='https://s3.amazonaws.com/instabug-pro/sdk_releases/instabugsdk-1.2.1-beta.min.js'></script>

bower installation (recommended)

You can install the SDK using

bower install instabug-sdk --save

npm installation

You can install the SDK using

npm install instabug-sdk --save

Initialize the SDK

After including the sdk js file, you can start it by invoke the .init() method and pass the application token as parameter

<script>
  ibgSdk.init({
     token: <INSTABUG_APP_TOKEN>
  });
</script>

API Refrence

.init(options)

the init function is used to used to initialize the SDK and render the report bug button.

Parameters

options: Object required - pass the application token

.disable()

used to hide the report bug button

.enable()

used to show the report bug button

.invoke()

show the report bug view without clicking on the report bug button,

  • You can use this function to start the reporting bug process programmatically from your own script, By run ibgSdk.invoke() after initialize the sdk

.dismiss()

cancel annotations and close all instabug sdk windows

web-sdk-sample's People

Contributors

migaber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

sipike nrjain

web-sdk-sample's Issues

need to know where my console.log come from

i use console.log a lot so i can figure out if the app works as expected while development, since i enabled instabug for web my logs in the console doesn't tell me from what file it come from

This with instabug enabled

selection_006

This when instabug disabled (and that what i need to have while enabling instabug)

selection_007

Support webpack, ES6, babel builds

Hi,

I tried importing via:

yarn add instabug-sdk

But then I can't import it because you're only supporting direct browser fetches.

The way I got around this was to import it into index.html which is a bit messy because we keep that file light. Then use window.ibgSdk.init({...})` to make it work, which is fine temporarily but you guys only have the min files up so can you guys support imports?

Our stack is yarn + VueJS + webpack 3...

If you support in our main.js

import 'ibgSdk` from 'instabug-sdk`

Then I'm sure not just VueJS, but also Angular and React people would very much appreciate it!

Thanks

Console error in react-app

When i use ibgSdk.enable() in my react web application i had this error in the console but everything still work fine

instabugsdk-1.2.1-beta.min.js:1  Uncaught TypeError: Cannot read property 'classList' of null
    at Object.removeClass (instabugsdk-1.2.1-beta.min.js:1)
    at Object.r [as enable] (instabugsdk-1.2.1-beta.min.js:1)
    at (index):64

requires extension for screenshot

requiring a browser extension to take screenshots is a bad user experience. consider that the user is already running into a bug when doing this. adding an extension on top of this is a barrier

test

this is a test issue

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.