sentry-react-native: Native crash not reported on Android

OS: MacOS

Platform: Android

SDK: @sentry/react-native 1.4.0

react-native version: 0.61.5(Hemes:true)

Are you using Expo? No

Are you using sentry.io or on-premise? on-premise Configuration:

(@sentry/react-native)

Sentry.init({
  dsn: 'https://...@sentry.io/...'
  // other options
});

I have following issue:

Sentry.captureException(error); capture js error but Sentry.nativeCrash(); don’t report any error in ours Self-Hosted Sentry server

Steps to reproduce: 1-install and setup sentry based on https://docs.sentry.io/platforms/react-native https://docs.sentry.io/platforms/react-native 2-call Sentry.nativeCrash(); in production apk

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 23 (12 by maintainers)

Most upvoted comments

I am seeing this too. Throwing an uncaught JS error or calling Sentry.captureException works, but calling Sentry.nativeCrash() is not reported. Release build, and I open the app again after the crash.

react-native 0.63.2
@sentry/react-native 1.8.2

@yasirtrimulabs That was what I assumed, as the dev menu should never show on release mode.

@maleking this is the log from react-native (JS layer), I’m more interested in the Android logs (from logcat), you can copy-paste that from AS.

I need to understand the output of the error in order to test and reproduce it, thanks.

@maleking just pass the debug flag on the SDK init.

Sentry.init({ 
  dsn: 'dsn...', 
  debug: true
});

hey @maleking thanks for raising this

could you enable the debug mode and copypasta the logs, please? thanks.