react-native-exception-handler icon indicating copy to clipboard operation
react-native-exception-handler copied to clipboard

Integration with crashalytics (Firebase)

Open ButuzGOL opened this issue 6 years ago • 4 comments
trafficstars

I have found issue that when i am using 'react-native-exception-handler' crash report doesn't sends to server i am using https://github.com/invertase/react-native-firebase

ButuzGOL avatar Nov 30 '18 15:11 ButuzGOL

Is this happening with JS error or Native exceptions ? @ButuzGOL

a7ul avatar Nov 30 '18 18:11 a7ul

Its happening with JS error i did simple case call of this.renderHeader() <= this function doesn't exists

my code

setJSExceptionHandler(async (error) => {
  if (error) {
    logger.log(String(error));
    logger.send();
    Alert.alert(t('logs.someError'), t('logs.needRestart'), [
      {
        text: t('Restart'),
        onPress: () => {
          RNRestart.Restart();
        },
      },
    ]);
    throw new Error(error);
  }
  return true;
}, true);

ButuzGOL avatar Dec 03 '18 11:12 ButuzGOL

amazing lib ,,,, any update @ButuzGOL for this issue , is this issue can be solved by this

farahty avatar Apr 11 '19 05:04 farahty

@ButuzGOL you should add log of react-native-firebase in JSExceptionHandler function yourself so as to see the log on firebase

onlybenyang avatar Jul 09 '19 08:07 onlybenyang