HomeDocsReact NativeScreenshot reports

Screenshot reports

v1.9.0

Detect screenshots, request permissions and attach images to bug reports.

Automatic screenshot detection

Take a screenshot to open the bug reporter with an image attached.

If the reporter cannot load, choose Retry. Your attached screenshot stays in place.

Preview and markup

  • Tap an image thumbnail to preview it. Swipe between attachments or remove an image from the preview.
  • Choose Markup to use Pen, Arrow, Box or Redact, then save your edits.

Send your first report

  1. Run a tester build on a device and allow the screenshot permissions described below.
  2. Take a screenshot, check its preview, enter a description and submit the report.
  3. Open Report Inbox from your app’s Inbox tab in the console. Check that the report and its attachments appear. If the list has not updated, refresh it.
  4. If you connected an integration, open the resulting issue or message and check its attachments.
Screenshot permissions

Choose each app’s reporter wording, Type choices and Severity visibility in the Console’s Reporter tab.

Customise the reporter

Permissions

iOS

For bare React Native, add a Photos usage description to Info.plist. The Expo plugin adds it for you:

ios/YourApp/Info.plist
xml
<key>NSPhotoLibraryUsageDescription</key>
<string>Used to attach screenshots to bug reports.</string>

Screenshot detection works without Photos access. Without it, a snapshot of your app stays attached; with access, the screenshot from Photos can be attached.

Android

  • Android 14+: no permission is needed for detection. Allow photo access to attach the screenshot automatically, or choose it from the photo picker.
  • Android 13 and below: request media-read permission while the app is in the foreground. Manual reports still work if permission is denied.
tsx
import { useEffect } from 'react';
import { BugScreen } from '@bugscreen/react-native';

export default function App() {
  useEffect(() => {
    if (!__DEV__) return;

    async function startBugScreen() {
      await BugScreen.configure({ apiKey: 'fb_your_api_key_here', debug: __DEV__ });
      if (await BugScreen.shouldRequestPermission()) {
        const granted = await BugScreen.requestScreenshotPermission();
        if (!granted) console.info('Use manual reports to attach screenshots.');
      }
    }

    void startBugScreen().catch((err) => console.warn('BugScreen setup failed', err));
  }, []);

  return null; // Replace with your app UI.
}

Permission helpers

  • hasScreenshotPermission(): Promise<boolean> — check detection permission.
  • getRequiredPermission(): Promise<string | null> — get the Android permission name, if needed.
  • shouldRequestPermission(): Promise<boolean> — check whether to request permission.
  • requestScreenshotPermission(): Promise<boolean> — request permission; denial returns false.

The checks return true, null and false on iOS and Android 14+. On iOS, requestScreenshotPermission() returns true without requesting Photos access.

Request one permission at a time while an Android activity is in the foreground. Requests may reject with E_NO_ACTIVITY, E_PERMISSION_REQUEST_IN_FLIGHT or E_PERMISSION_REQUEST_FAILED.