Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/sdk/react_native/appearance.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ Each property exists on Android, on iOS, or on both:
| `cellBackgroundColor` | | `reportCellBackgroundColor`: the background of the table cells. |
| `navigationBarColor` | | `reportNavigationBarColor` |
| `placeholderColor` | | `reportPlaceholderColor`: the input fields' placeholder text. |
| `sendButtonColor` | | `reportSendButtonColor`. **Not applied** in iOS SDK 7.0.0-beta7, whose report screen uses the system Done button. |
| `closeButtonColor` | | `reportCloseButtonColor`. **Not applied** in iOS SDK 7.0.0-beta7, whose report screen uses the system Cancel button. |
| `sendButtonColor` | | `reportSendButtonColor`. **Not applied** in iOS SDK 7.0.0-beta6 and later, where the setting is deprecated and the report screen uses the system Done button. |
| `closeButtonColor` | | `reportCloseButtonColor`. **Not applied** in iOS SDK 7.0.0-beta6 and later, where the setting is deprecated and the report screen uses the system Cancel button. |

Check `Platform.OS` before setting a property that exists on one platform only: setting it on the other throws.

Expand Down
12 changes: 6 additions & 6 deletions docs/sdk/react_native/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ import {

const options = createDefaultLaunchOptions();
if (options instanceof AndroidLaunchOptions) {
options.triggerByNotification = false;
options.triggerByNotification = true;
} else if (options instanceof IOSLaunchOptions) {
options.captureDiskSpace = true;
}
Expand Down Expand Up @@ -101,6 +101,7 @@ These accessors exist on both platforms.
| `captureBreadcrumbs` | `com.bugsee.option.capture.breadcrumbs` | boolean | `false` | Record breadcrumbs. While off, `Bugsee.addBreadcrumb` records nothing, on both platforms. |
| `detectAndReportCrash` | `com.bugsee.option.detect.crash` | boolean | `true` | Report crashes. `false` also turns off the reporting of uncaught JavaScript errors, unhandled promise rejections and uncaught render errors. See [Turning automatic reporting off](/sdk/react_native/manual/crash-error-reporting#turning-automatic-reporting-off). |
| `detectAndReportHang` | `com.bugsee.option.detect.hang` | boolean | `false` | Report when the main thread is blocked long enough to count as a hang. |
| `crashSignals` | `com.bugsee.option.capture.crash-signals` | number (bit set) | `128` (every signal) | The fatal signals the native crash handler intercepts (iOS crash reporter, Android NDK handler): `ABRT` 1, `SEGV` 2, `BUS` 4, `ILL` 8, `FPE` 16, `TRAP` 32. Add the values to combine them. The default, 128, means every signal only when it is the whole value. On Android it is read once, when the handler is armed. |

The **Default** column applies to both platforms unless the row gives one per platform. Read the values in effect with [`getLaunchOptions()`](#reading-the-effective-options).

Expand All @@ -117,7 +118,7 @@ The **Default** column applies to both platforms unless the row gives one per pl
| `detectAndReportExitLowMemoryBackgroundAsError` | `com.bugsee.option.detect.exit.bg_low_memory_as_error` | boolean | `false` | Report a low-memory kill of a process that was not in the foreground as a non-fatal error rather than a crash. Applies only while `detectAndReportExitLowMemory` is on. |
| `maxPendingReports` | `com.bugsee.option.config.max-pending-reports` | number | `30` | Most reports kept waiting to be sent. |
| `maxPendingReportAge` | `com.bugsee.option.config.max-pending-report-age` | number (days) | `30` | Oldest a report waiting to be sent may get; `0` or less keeps reports until they are sent or evicted. |
| `triggerByNotification` | `com.bugsee.option.reporting.triggers.notification-bar` | boolean | `true` | Show a notification-bar entry that opens the report UI. |
| `triggerByNotification` | `com.bugsee.option.reporting.triggers.notification-bar` | boolean | `false` | Show a notification-bar entry that opens the report UI. Off by default since Android SDK 7.6.0. |

The other Android-only keys are reachable with `setCustomOption`: see [Platform-only keys](#platform-only-keys).

Expand All @@ -131,7 +132,6 @@ The other Android-only keys are reachable with `setCustomOption`: see [Platform-
| `captureAVPlayer` | `com.bugsee.option.capture.avplayer` | boolean | `false` | Capture video that plays through `AVPlayerLayer` and `AVPlayerViewController` in the recording. |
| `captureDiskSpace` | `com.bugsee.option.capture.disk-space` | boolean | `false` | Monitor available disk space and include it in reports as a system trace and device properties. |
| `crashHandlerType` | `com.bugsee.option.capture.crash-handler-type` | `CrashHandlerType` | `MachAndBSD` | How the crash reporter intercepts crashes. |
| `crashSignals` | `com.bugsee.option.capture.crash-signals` | number (bit set) | every signal | The fatal signals the crash reporter intercepts: `ABRT` 1, `SEGV` 2, `BUS` 4, `ILL` 8, `FPE` 16, `TRAP` 32. Add the values to combine them. |

## Other shared keys

Expand Down Expand Up @@ -172,7 +172,7 @@ These keys are accepted by both native SDKs but have no accessor. Set them with

| Key | Type | Default | Description |
| --- | --- | --- | --- |
| `com.bugsee.option.reporting.triggers.shake` | boolean | `true` | Open the report UI when the device is shaken. |
| `com.bugsee.option.reporting.triggers.shake` | boolean | `false` | Open the report UI when the device is shaken. Off by default since iOS SDK 7.1.0 and Android SDK 7.6.0. |
| `com.bugsee.option.reporting.triggers.screenshot` | boolean | `false` | Open the report UI when the user takes a screenshot. |
| `com.bugsee.option.reporting.defaults.crash-priority` | `IssueSeverity` | `Blocker` | Severity of crash reports. |
| `com.bugsee.option.reporting.defaults.error-priority` | `IssueSeverity` | `High` | Severity of error reports. |
Expand Down Expand Up @@ -346,11 +346,11 @@ options.duration = 90;
options.captureBreadcrumbs = true;
options.captureLogsLevel = LogLevel.Info;
options.detectAndReportHang = true;
options.setCustomOption('com.bugsee.option.reporting.triggers.shake', false);
options.setCustomOption('com.bugsee.option.reporting.triggers.shake', true);
options.setCustomOption('com.bugsee.option.reporting.defaults.bug-priority', IssueSeverity.Medium);

if (options instanceof AndroidLaunchOptions) {
options.triggerByNotification = false;
options.triggerByNotification = true;
} else if (options instanceof IOSLaunchOptions) {
options.crashHandlerType = CrashHandlerType.MachAndBSD;
}
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/react_native/expo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ See [Installation](/sdk/react_native/installation#4-launch-bugsee) for what `lau
| `symbolicateReactNativeFrameworks` | boolean | `false` | Make `pod install` download React Native's own dSYMs, so React frames in iOS crashes symbolicate. See [React Native's dSYMs](#react-native-dsyms-on-ios). |
| `autoLaunch` | boolean | `false` | Android only. Writes the `com.bugsee.app-token` manifest meta-data, so the native SDK launches at process start. See [Auto-launch on Android](#auto-launch-on-android). |
| `endpoint` | string | none (production) | A self-hosted, staging or regional Bugsee API base. See [Custom endpoint](#custom-endpoint). |
| `gradlePluginVersion` | string | the version the package is built against (4.0.8 in `7.0.0-beta3`) | The `com.bugsee.android.gradle` version to declare. |
| `gradlePluginVersion` | string | the version the package is built against (4.0.8 in `7.0.0-beta4`) | The `com.bugsee.android.gradle` version to declare. |

## What the plugin changes

Expand Down
6 changes: 3 additions & 3 deletions docs/sdk/react_native/feedback.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Bugsee includes an in-app chat that lets your users talk to your support team an

## Installation

Add the feedback package next to `@bugsee/react-native`. The two must be the **same release**: install both at the same version, or both with the `@beta` tag. Nothing enforces it: the package's peer dependency accepts any `@bugsee/react-native` from `7.0.0-beta3` on.
Add the feedback package next to `@bugsee/react-native`. The two must be the **same release**: install both at the same version, or both with the `@beta` tag. Nothing enforces it: the package's peer dependency accepts any `@bugsee/react-native` from `7.0.0-beta4` on.

```sh
yarn add @bugsee/react-native@beta @bugsee/react-native-feedback@beta
Expand All @@ -25,8 +25,8 @@ The native side comes with the package, at the versions the core package pins:

| Platform | What is added |
| --- | --- |
| Android | Autolinking adds the Android feedback module, `com.bugsee:bugsee-android-feedback`, at the same version as the core Android SDK (7.4.2 in this beta). No Gradle changes. |
| iOS | With CocoaPods, run `pod install`: the podspec fetches the sources of the iOS feedback package, `bugsee/feedback-spm`, at the same version as the core iOS SDK (7.0.0-beta7 in this beta), and compiles them. With React Native 0.87 and later, Swift Package Manager resolves that package instead. |
| Android | Autolinking adds the Android feedback module, `com.bugsee:bugsee-android-feedback`, at the same version as the core Android SDK (7.6.0 in this beta). No Gradle changes. |
| iOS | With CocoaPods, run `pod install`: the podspec fetches the sources of the iOS feedback package, `bugsee/feedback-spm`, at the same version as the core iOS SDK (7.1.0 in this beta), and compiles them. With React Native 0.87 and later, Swift Package Manager resolves that package instead. |

The package has no Expo config plugin.

Expand Down
10 changes: 5 additions & 5 deletions docs/sdk/react_native/manual/bug-reporting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ The native SDKs can open the report dialog on their own, without any call from y

| Key | Accessor | Platforms | Default | Opens the report dialog when |
| --- | --- | --- | --- | --- |
| `com.bugsee.option.reporting.triggers.shake` | none | both | `true` | The user shakes the device. |
| `com.bugsee.option.reporting.triggers.shake` | none | both | `false` | The user shakes the device. |
| `com.bugsee.option.reporting.triggers.screenshot` | none | both | `false` | The user takes a screenshot. |
| `com.bugsee.option.reporting.triggers.notification-bar` | `triggerByNotification` | Android | `true` | The user taps the Bugsee entry in the notification bar. |
| `com.bugsee.option.reporting.triggers.notification-bar` | `triggerByNotification` | Android | `false` | The user taps the Bugsee entry in the notification bar. |
| `com.bugsee.option.reporting.triggers.broadcast` | none | Android | `false` | An Android broadcast intent asks for a report. |

Turn the shake trigger off, and the screenshot trigger on, at launch:
The shake and notification-bar triggers are off by default (since iOS SDK 7.1.0 and Android SDK 7.6.0). Turn the shake and screenshot triggers on at launch:

```ts
import Bugsee, { AndroidLaunchOptions, createDefaultLaunchOptions } from '@bugsee/react-native';

const options = createDefaultLaunchOptions();
options.setCustomOption('com.bugsee.option.reporting.triggers.shake', false);
options.setCustomOption('com.bugsee.option.reporting.triggers.shake', true);
options.setCustomOption('com.bugsee.option.reporting.triggers.screenshot', true);
if (options instanceof AndroidLaunchOptions) {
options.triggerByNotification = false;
options.triggerByNotification = true;
}

Bugsee.launch('<your app token>', options);
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/react_native/manual/crash-error-reporting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Crashes in native code are captured too:
- **Android**: uncaught exceptions in Java and Kotlin code, and crashes in native (NDK) code.
- **iOS**: uncaught Objective-C exceptions (`NSException`), and fatal signals (`SIGABRT`, `SIGSEGV`, `SIGBUS`, `SIGILL`, `SIGFPE` and `SIGTRAP`, which includes Swift runtime traps), whether raised by a hardware fault or by software (with the default `crashHandlerType`).

On iOS, `crashHandlerType` and `crashSignals` choose how crashes are intercepted; see [iOS accessors](/sdk/react_native/configuration#ios-accessors). Other detectors (hangs, low-memory exits, HTTP errors) are launch options too; see [Detection](/sdk/react_native/configuration#detection).
On iOS, `crashHandlerType` chooses how crashes are intercepted; see [iOS accessors](/sdk/react_native/configuration#ios-accessors). `crashSignals` chooses which fatal signals are intercepted, on both platforms; see [Shared accessors](/sdk/react_native/configuration#shared-accessors). Other detectors (hangs, low-memory exits, HTTP errors) are launch options too; see [Detection](/sdk/react_native/configuration#detection).

:::caution[iOS Simulator]
In this beta, the iOS Simulator produces no crash reports: neither native crashes nor JavaScript crashes. Test crash reporting on a physical iPhone.
Expand Down
8 changes: 4 additions & 4 deletions docs/sdk/react_native/migration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This page documents Bugsee React Native SDK **7.x**, which is in beta and can ch
:::

:::note
This guide compares `react-native-bugsee` 6.0.x with `@bugsee/react-native` `7.0.0-beta3`. If you are setting up a new project, start from [Installation](/sdk/react_native/installation) instead.
This guide compares `react-native-bugsee` 6.0.x with `@bugsee/react-native` `7.0.0-beta4`. If you are setting up a new project, start from [Installation](/sdk/react_native/installation) instead.
:::

This guide walks through every public-API change between the 6.x package (`react-native-bugsee`) and the 7.x package (`@bugsee/react-native`, plus `@bugsee/react-native-feedback` for the feedback chat).
Expand Down Expand Up @@ -74,7 +74,7 @@ On the legacy architecture the 7.x package fails when it is imported. See [Overv
| | 6.x | 7.x |
| --- | --- | --- |
| iOS SDK | The `Bugsee` pod from CocoaPods trunk, or `Bugsee.xcframework` copied in by hand | Brought by the package: its `Package.swift` with React Native's Swift Package Manager integration (0.87 and later), or its podspec, which downloads and vendors the XCFramework during `pod install`. Remove a hand-copied `Bugsee.xcframework`. |
| Android SDK | `com.bugsee:bugsee-android:+` (any version) | `com.bugsee:bugsee-android` 7.4.2, plus its NDK and OkHttp modules, pinned by the package |
| Android SDK | `com.bugsee:bugsee-android:+` (any version) | `com.bugsee:bugsee-android` 7.6.0, plus its NDK and OkHttp modules, pinned by the package |
| Android Gradle plugin | Not needed | The Bugsee Gradle plugin (`com.bugsee.android.gradle`), for `fetch`/XHR network capture on Android and for the R8 mapping and native-symbol uploads. See [Symbolication: Android](/sdk/react_native/symbolication/android). |

Without the Bugsee Gradle plugin, a 7.x Android app builds and runs, but records no `fetch` or `XMLHttpRequest` traffic. See [Installation](/sdk/react_native/installation#android).
Expand Down Expand Up @@ -147,8 +147,8 @@ Because 7.x sends only what you set, the native defaults apply where 6.x sent it

| Behavior | 6.x default (set by the 6.x package) | 7.x default (native) |
| --- | --- | --- |
| Shake to report (`com.bugsee.option.reporting.triggers.shake`) | Off | On |
| Default bug severity (`com.bugsee.option.reporting.defaults.bug-priority`) | `Low` | `High` |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Medium — the defaults-change table loses the notification-bar behavior change

Problem: Removing the shake row is right: 6.x had it off and 7.x now has it off too. The same release also turns the Android notification-bar trigger off, and that is a real 6.x → 7.x change. docs/sdk/react_native/v6/configuration.mdx:119 lists notificationBarTrigger as true in 6.x, and this PR sets the 7.x default to false. The table has no row for it.

Impact: A 6.x Android app that relied on the notification entry, which was on by default, loses the trigger after migrating. This table is where the page tells readers about defaults that change without any code of theirs changing.

Fix: Add a row, for example:

Suggested change
| Default bug severity (`com.bugsee.option.reporting.defaults.bug-priority`) | `Low` | `High` |
| Default bug severity (`com.bugsee.option.reporting.defaults.bug-priority`) | `Low` | `High` |
| Notification-bar trigger on Android (`triggerByNotification`) | On | Off |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the Android notification-bar row (6.x On, 7.x Off) to the defaults-change table in ebe54a0.

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
| Notification-bar trigger on Android (`triggerByNotification`, `com.bugsee.option.reporting.triggers.notification-bar`) | On | Off |
| Screenshot to report on iOS (`com.bugsee.option.reporting.triggers.screenshot`) | On | Off |
| Disk space for pending reports on Android (`maxDataSize`) | 50 MB | 150 MB |
| Android video mode (`videoMode`) | `V3` | `V2` |
Expand Down Expand Up @@ -221,7 +221,7 @@ In the tables below, a 7.x accessor is a property of the options object; a key w

### 3.4 New in 7.x

Options with no 6.x counterpart include `captureLogsLevel`, `captureBreadcrumbs`, `detectAndReportHang`, `endpoint`, Android's `logsUseAllSources`, `detectAndReportExitLowMemory`, `maxPendingReports` and `maxPendingReportAge`, iOS's `crashHandlerType` and `crashSignals`, and keys such as `com.bugsee.option.detect.http-errors`, `com.bugsee.option.capture.network.default-sanitizer` and `com.bugsee.option.performance.enabled`. See [Configuration](/sdk/react_native/configuration).
Options with no 6.x counterpart include `captureLogsLevel`, `captureBreadcrumbs`, `detectAndReportHang`, `endpoint`, Android's `logsUseAllSources`, `detectAndReportExitLowMemory`, `maxPendingReports`, `maxPendingReportAge` and `crashSignals` (on both platforms), iOS's `crashHandlerType`, and keys such as `com.bugsee.option.detect.http-errors`, `com.bugsee.option.capture.network.default-sanitizer` and `com.bugsee.option.performance.enabled`. See [Configuration](/sdk/react_native/configuration).

---

Expand Down
8 changes: 4 additions & 4 deletions docs/sdk/react_native/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The SDK turns problems into reports automatically:
- **JavaScript exceptions**: `Bugsee.launch()` installs global handlers for uncaught errors and unhandled promise rejections. An [error boundary](/sdk/react_native/error-boundary) reports render errors.
- **Native crashes**: on Android, uncaught Java and Kotlin exceptions and native (NDK) crashes; on iOS, uncaught Objective-C exceptions and fatal signals, including Swift runtime traps. See [Native crashes](/sdk/react_native/manual/crash-error-reporting#native-crashes).
- **Handled errors** you report yourself; see [Crash & error reporting](/sdk/react_native/manual/crash-error-reporting).
- **Manual reports**: let users shake the device to report, or open the report dialog or upload a report from code; see [Bug reporting](/sdk/react_native/manual/bug-reporting).
- **Manual reports**: turn on shake-to-report (off by default), or open the report dialog or upload a report from code; see [Bug reporting](/sdk/react_native/manual/bug-reporting).

## How it works

Expand Down Expand Up @@ -59,12 +59,12 @@ Hermes is required. JavaScriptCore (Hermes off) is not supported: React Native r

## Versions

This beta, `7.0.0-beta3`, is built on these native SDKs:
This beta, `7.0.0-beta4`, is built on these native SDKs:

| Platform | Native SDK | Notes |
| --- | --- | --- |
| Android | `com.bugsee:bugsee-android` 7.4.2 | Bugsee Gradle plugin 4.0.8 for release uploads and Android network capture |
| iOS | Bugsee iOS SDK 7.0.0-beta7 | The iOS SDK is itself a beta |
| Android | `com.bugsee:bugsee-android` 7.6.0 | Bugsee Gradle plugin 4.0.8 for release uploads and Android network capture |
| iOS | Bugsee iOS SDK 7.1.0 | A stable release of the iOS SDK |

`@bugsee/react-native` 7.x replaces `react-native-bugsee` 6.x. They are different packages with different APIs, not an upgrade in place: remove the old package and follow [Migrating from 6.x to 7.x](/sdk/react_native/migration).

Expand Down
Loading
Loading