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
12 changes: 8 additions & 4 deletions docs/sdk/android/configuration/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -178,25 +178,29 @@ Bugsee.launch(this, "<APP_TOKEN>", options);

| `Options` constant | Manifest key | Type | Default | Description |
| --- | --- | --- | --- | --- |
| `ReportingTriggerByShake` | `com.bugsee.option.reporting.triggers.shake` | boolean | `true` | Open the bug-reporting UI when the device is shaken. |
| `ReportingTriggerByShake` | `com.bugsee.option.reporting.triggers.shake` | boolean | `false` | Open the bug-reporting UI when the device is shaken. The default was `true` before 7.6.0. |
| `ReportingTriggerByScreenshot` | `com.bugsee.option.reporting.triggers.screenshot` | boolean | `false` | Open the bug-reporting UI when the user takes a screenshot. |
| `ReportingTriggerByNotification` | `com.bugsee.option.reporting.triggers.notification-bar` | boolean | `true` | Show a notification-bar entry that opens the bug-reporting UI when tapped. |
| `ReportingTriggerByNotification` | `com.bugsee.option.reporting.triggers.notification-bar` | boolean | `false` | Show a notification-bar entry that opens the bug-reporting UI when tapped. The default was `true` before 7.6.0. |
| `ReportingTriggerByBroadcast` | `com.bugsee.option.reporting.triggers.broadcast` | boolean | `false` | Allow a report to be triggered by an Android broadcast intent. |

:::note[Changed in 7.6.0]
All four triggers are off by default. In 7.5.1 and earlier, shake and the notification-bar entry were on. If your app relies on either, set it to `true` explicitly. An app that already sets it keeps working unchanged. A device that last launched an older SDK can restore the old `true` values from the saved configuration until the app has launched once on 7.6.0.
:::

<Tabs groupId="config">
<TabItem value="manifest" label="AndroidManifest.xml">

```xml
<meta-data android:name="com.bugsee.option.reporting.triggers.shake"
android:value="false" />
android:value="true" />
```

</TabItem>
<TabItem value="programmatic" label="Programmatic">

```java
HashMap<String, Object> options = new HashMap<>();
options.put(Options.ReportingTriggerByShake, false);
options.put(Options.ReportingTriggerByShake, true);
Bugsee.launch(this, "<APP_TOKEN>", options);
```

Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/android/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ Each module ships its own consumer ProGuard rules inside the AAR. No manual rule

## 5. Verify

Build and run the app. On next launch, the Bugsee floating report button should appear. Trigger a test report (shake the device, or call `Bugsee.showReportDialog()`) to confirm end-to-end delivery to your dashboard.
Build and run the app. On next launch, the Bugsee floating report button should appear. Trigger a test report by calling `Bugsee.showReportDialog()` to confirm end-to-end delivery to your dashboard. (Shake and the notification-bar entry are off by default since 7.6.0; see [reporting triggers](/sdk/android/configuration#reporting-triggers) to turn them on.)

Next:

Expand Down
18 changes: 11 additions & 7 deletions docs/sdk/android/manual/bug-reporting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,25 @@ Bug reports cover something that is wrong but did not crash the app. Your users

## Built-in report triggers

The SDK can surface the report dialog through two user-facing gestures. Both are controlled by manifest options (or programmatic overrides at `Bugsee.launch(...)` time):
The SDK can surface the report dialog through four built-in triggers. Each is controlled by a manifest option (or a programmatic override at `Bugsee.launch(...)` time). Since 7.6.0 every trigger is off by default; turn on the ones you want:

| Option | Manifest key | Default |
| --------------------------------- | ------------------------------------------------------ | ------- |
| `ReportingTriggerByShake` | `com.bugsee.option.reporting.triggers.shake` | `true` |
| `ReportingTriggerByShake` | `com.bugsee.option.reporting.triggers.shake` | `false` |
| `ReportingTriggerByScreenshot` | `com.bugsee.option.reporting.triggers.screenshot` | `false` |
| `ReportingTriggerByNotification` | `com.bugsee.option.reporting.triggers.notification-bar`| `true` |
| `ReportingTriggerByNotification` | `com.bugsee.option.reporting.triggers.notification-bar`| `false` |
| `ReportingTriggerByBroadcast` | `com.bugsee.option.reporting.triggers.broadcast` | `false` |

Disable the shake trigger in `AndroidManifest.xml`:
:::note[Changed in 7.6.0]
Shake and the notification-bar entry were on by default in 7.5.1 and earlier. If your app relies on either, set it to `true` explicitly; an app that already sets it is unaffected.
:::

Enable the shake trigger in `AndroidManifest.xml`:

```xml
<meta-data
android:name="com.bugsee.option.reporting.triggers.shake"
android:value="false" />
android:value="true" />
```

Or override at launch time:
Expand All @@ -38,7 +42,7 @@ Or override at launch time:

```java
Map<String, Serializable> options = new HashMap<>();
options.put(Options.ReportingTriggerByShake, false);
options.put(Options.ReportingTriggerByShake, true);
options.put(Options.ReportingTriggerByScreenshot, true);
Bugsee.launch(application, "<your-app-token>", options);
```
Expand All @@ -48,7 +52,7 @@ Bugsee.launch(application, "<your-app-token>", options);

```kotlin
val options = HashMap<String, java.io.Serializable>()
options[Options.ReportingTriggerByShake] = false
options[Options.ReportingTriggerByShake] = true
options[Options.ReportingTriggerByScreenshot] = true
Bugsee.launch(application, "<your-app-token>", options)
```
Expand Down
2 changes: 2 additions & 0 deletions docs/sdk/android/migration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ Every option key changed name. Use this table to do a mechanical search/replace
| `NotificationBarTrigger` | `ReportingTriggerByNotification` |
| _(no broadcast trigger)_ | `ReportingTriggerByBroadcast` |

In 6.x, `ShakeToTrigger` and `NotificationBarTrigger` defaulted to `true`. In 7.6.0 and later the 7.x defaults for `ReportingTriggerByShake` and `ReportingTriggerByNotification` are `false` (7.5.1 and earlier kept `true`). If your app relied on either trigger, set it to `true` explicitly.

### Detection flags

| 6.x | 7.x |
Expand Down
4 changes: 2 additions & 2 deletions docs/sdk/android/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ Because upload is identical networking code on every platform, a report assemble

### Form-factor notes

The SDK is the same everywhere, but a few capabilities depend on hardware or platform UI conventions that differ by device type. None of these require configuration — the SDK detects what's available and adapts.
The SDK is the same everywhere, but a few capabilities depend on hardware or platform UI conventions that differ by device type. None of these require configuration beyond turning on the triggers you want (all report triggers are off by default since 7.6.0) — the SDK detects what's available and adapts.

#### Report triggers

- **Shake to report** needs an **accelerometer**, which is standard on phones and tablets but typically absent on TV and Automotive head units. On a device without an accelerometer, the shake trigger simply doesn't arm — it no-ops gracefully rather than failing — so it's effectively a phone/tablet-oriented trigger.
- **Screenshot to report** relies on the platform's own screenshot mechanism. Where the platform exposes one (as phones and tablets do), the trigger works; on form factors that don't surface a user screenshot gesture, use a different trigger.
- **Notification trigger** and **programmatic reporting** ([`Bugsee.showReportDialog()`](/sdk/android/manual/bug-reporting)) work everywhere, and are the most reliable way to open the report flow on TV and Automotive. On TV and Automotive, the reporting UI is driven with the **D-pad / restricted input model** of those platforms rather than touch, but the report flow itself functions normally.
- **Notification trigger** (once enabled) and **programmatic reporting** ([`Bugsee.showReportDialog()`](/sdk/android/manual/bug-reporting)) work everywhere, and are the most reliable way to open the report flow on TV and Automotive. On TV and Automotive, the reporting UI is driven with the **D-pad / restricted input model** of those platforms rather than touch, but the report flow itself functions normally.

Pick triggers that match your target hardware — see [reporting triggers](/sdk/android/configuration#reporting-triggers) for the full list and how to toggle each one.

Expand Down
Loading