How to see error logs of an app published to expo.host?

#1

I published an Expo app to expo.host and I’m getting a blank screen after the splash screen. I’m guessing that there’s an error message behind this. Is there a way to see the app’s error logs without using an error logging service like Sentry?

Cheers!

#2

@whilestevego I think you can see them from Console.app. But also, is this blank screen issue only happening on the published app and not the develop version?

1 Like
#3

hello steve! you can look at your device logs to see if anything useful pops up there, if not then you should use something like sentry. you can see info for that here: https://docs.expo.io/versions/v17.0.0/guides/logging.html#optional-manually-access-device-logs

additionallty, react-native provides a global error handler hook that you can use, this is what sentry uses: https://github.com/expo/sentry-expo/blob/de1ce13e912485b439435dfa751307f656efd577/index.js#L35

  ErrorUtils.setGlobalHandler((error, isFatal) => {
     // do something with the error
  });
1 Like
#4

Hi @nikki . It’s only happening on the published app. It works fine in simulator or on my iPhone with exp tunneling.

Thanks for the Console.app trick. I’m not quite getting the error message I’m looking for. Looks like I may have to use the global error handler hook as @notbrent is suggesting. Thanks for the tip, @notbrent!

#5

did you ever solve this? I seem to be getting a white screen too, but no error logs to sentry

#6

For android you may run “adb logcat”. It helped me to see error message. Had white screen in production and everything was ok in debug mode. Looks like it happened for me because of production js optimizations.

#7

I’m trying to see logs for a published app, but I don’t know what the “Console.app” trick is. Could you please give more details? Thank you! @whilestevego

#8

https://docs.expo.io/versions/v27.0.0/guides/errors