3
1 Comment

Analytics and Crashlytics with the Expo App Platform (Sentry?)

Hey everyone,

I'd like to try building an app using the Expo platform. I've previously written two apps using standard React Native and would love to skip right past many of the pain points this third time. The Expo platform seems to be really good if you're able to work within the Managed Workflow, and for once I think I should be able to.

One thing that I've grown used to is having Firebase as a one stop shop for user analytics and app crashlytics. It doesn't look like Firebase and Expo work well together (at least not the crashlytics part), but there does seem to be good support for Sentry.

https://docs.expo.io/versions/v36.0.0/guides/using-sentry/

Has anyone used this integration or even just Sentry in general? Going over the website, it does't seem to be engineered for non-crash analytics. Is this the case?

Should I use Sentry for crashes and some other platform (like firebase via the js-only sdk) for user analytics?

Cheers

posted to Icon for group Developers
Developers
on February 23, 2020
  1. 3

    I've used Expo before and the way I set it up was the following:

    • Firebase javascript sdk for auth, database, storage
    • Sentry for error reporting
    • Segment for analytics (sending data to Mixpanel, but you can use any other analytics platform you want)

    Expo doesn't have a library to integrate with the full Firebase platform, so Crashlytics and Firebase Analytics don't work properly out of the box. It would be superb if they were able to make such a library, and they were working on such a thing a few years ago, but unfortunately had to abandon it because of issues they ran into with Firebase itself.

    The above setup is a little bit annoying because you have to use a bunch of different platforms, which could cost quite a bit of money in the future. However, I did a lot of research on this and this was the best way I could find to set everything up - Expo provides libraries to integrate with Sentry and Segment so it's relatively straightforward.

Trending on Indie Hackers
I wasted 6 months building a failed startup. Built TrendyRevenue to validate ideas in 10 seconds. User Avatar 50 comments Agencies charge $5,000 for a 60-second product demo video. I make mine for $0. Here's the exact workflow. User Avatar 38 comments Your files aren’t messy. They’re just stuck in the wrong system. User Avatar 27 comments Built a tool that finds which Reddit/HN threads are making ChatGPT recommend your competitors User Avatar 22 comments Why Direction Matters More Than Motivation in Exam Preparation User Avatar 14 comments A Closer Look at Droven .io Artificial Intelligence User Avatar 8 comments