bugsnag-js icon indicating copy to clipboard operation
bugsnag-js copied to clipboard

Can't report error coming from Android(React Native) release build

Open cloudy-ninja opened this issue 1 year ago • 2 comments

Describe the bug

Reporting an error on debug mode is working as expected and we can find it on the Bugsnag dashboard, but not on the release build. It looks like sending bugs to bugsnag works but can't see those on bugsnag dashboard only in release mode.

Steps to reproduce

The following is the code block to notify an error

<Button
  title="Report error to Bugsnag"
  onPress={() => {
    const estDate = new Date().toLocaleString('en-US', {
      timeZone: 'America/New_York',
    });
    Bugsnag.notify(
      new Error(
        `Test error coming from ${ENVIRONMENT}: ${pkg.version} - ${estDate}`,
      ),
    );
  }}
/>

Environment

  • Bugsnag version: 7.25.1

  • React Native version: 0.72.6

  • Android Gralde version: 8.0.1

  • Device

    • Android Emulator
    • S22 Ultra

Android Studio Logs when clicking on the Report error to Bugsnag button

Screenshot 2024-10-17 at 11 02 34

cloudy-ninja avatar Oct 17 '24 15:10 cloudy-ninja