Skip to content

Commit 42374cb

Browse files
committed
v3.0.3
1 parent 4e75382 commit 42374cb

32 files changed

+73
-96
lines changed

.DS_Store

0 Bytes
Binary file not shown.

README.md

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
## BugBattle JavaScript SDK
2-
Achieve better app quality & ratings with comprehensive in-app bug reporting. BugBattle offers affordable In-App Bug Reporting for Apps, WebApps & Websites.
1+
# Bugbattle iOS SDK
2+
3+
![Bugbattle JavaScript SDK Intro](https://github.com/BugBattle/JavaScript-SDK/blob/master/imgs/JavaScriptSDK.png)
4+
5+
The Bugbattle SDK for JavScript is the easiest way to integrate Bugbattle into your apps! Achieve better app quality & ratings with comprehensive in-app bug reporting. BugBattle offers affordable In-App Bug Reporting for Apps, WebApps & Websites.
6+
7+
## Docs & Examples
8+
9+
Checkout our [documentation](https://docs.bugbattle.io/docs/javascript-sdk) for full reference.
310

411
## ❤️ Demo
512

@@ -20,49 +27,65 @@ Achieve better app quality & ratings with comprehensive in-app bug reporting. Bu
2027

2128
2.) Include the BugBattle JS SDK within your apps.
2229

23-
NPM / YARN:
30+
### Installation via nom
31+
32+
Install the **bugbattle** package via npm or yarn.
2433
```
2534
npm install bugbattle --save
2635
```
2736

28-
OR add the following lines to your website's / webapp's head-tag:
37+
Import the **bugbattle** package.
38+
```
39+
import BugBattle from 'bugbattle';
40+
```
41+
42+
### Manual installation
43+
44+
Add the following lines to your website's / webapp's ```<head>```-tag:
2945
```
3046
<link href="https://jssdk.bugbattle.io/latest/index.css" rel="stylesheet">
3147
<script src="https://jssdk.bugbattle.io/latest/index.js"></script>
3248
<script>let BugBattle = window.BugBattle.default;</script>
3349
```
3450

35-
3.) Initialize the SDK
51+
### Initialize the SDK
3652

37-
Add the following code to your app / website to initialize the BugBattle JavaScript SDK. Replace "YOUR-SDK-TOKEN-HERE" with your actual sdk token.
53+
Add the following code to to initialize the BugBattle JavaScript SDK. Replace "YOUR-SDK-TOKEN-HERE" with your actual SDK token from the [Bugbattle dashboard](https://app.bugbattle.io).
3854

3955
```
40-
<script>
4156
BugBattle.initialize("YOUR-SDK-TOKEN-HERE", BugBattle.FEEDBACK_BUTTON);
42-
</script>
4357
```
4458

4559
Congrats, you are now all set! Report your first bug by using the feedback button.
4660

47-
## 🤤 Customization / tracking more data
61+
## 🤤 Customization
4862

4963
You can track more data (i.e. the app build number, version code or custom data) by using one of the following functions.
5064

5165
```
52-
// Set's the main color (color schema).
66+
// Sets the main color (color schema).
5367
BugBattle.setMainColor("#086EFB");
5468
55-
// Set's the app's build number.
69+
// Sets the app's build number.
5670
BugBattle.setAppBuildNumber(5);
5771
58-
// Set's the app's version code.
72+
// Sets the app's version code.
5973
BugBattle.setAppVersionCode("v5.0");
6074
6175
// Attaches custom data to the bug reports.
6276
BugBattle.setCustomData({
6377
test1: "Battle",
6478
data2: "Unicorn"
6579
});
80+
81+
// Enables the privacy policy check.
82+
BugBattle.enablePrivacyPolicy(true);
83+
84+
// Sets the privacy policy.
85+
BugBattle.setPrivacyPolicyUrl("https://someawesomesite...");
86+
87+
// Enables the automatic detection of crashes.
88+
BugBattle.enableCrashDetector(true);
6689
```
6790

6891
## 🤠 Activation methods

build/index.css

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/.DS_Store

6 KB
Binary file not shown.

demo/bugbattlelogo.png

11.9 KB
Loading

0 commit comments

Comments
 (0)