‹ BackHN Continuity

Thread

Firebase SDK is crashing all iOS apps since this morning

132 points · 72 comments · pranshuchittora

Loading the complete thread in the background. This saved snapshot is available now. Refresh

  1. pranshuchittora · · focus · HN ↗
    Resolved - <a href="https:&#x2F;&#x2F;github.com&#x2F;firebase&#x2F;firebase-ios-sdk&#x2F;issues&#x2F;16728#issuecomment-5884287771" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;firebase&#x2F;firebase-ios-sdk&#x2F;issues&#x2F;16728#is...
    1. lol768 · · focus · HN ↗
      Resolved, but can still affect customers for up to 4 hours...

      So many problems here, and no signs of an updated SDK that behaves properly on malformed input.

  2. yreg · · focus · HN ↗
    This is not the first time this has happened.
  3. illegalbyte2 · · focus · HN ↗
    I was wondering why random apps kept crashing today. Good to know.
    1. pranshuchittora · · focus · HN ↗
      But this is completely not acceptable from the Google
      1. solarkraft · · focus · HN ↗
        They’ve been accepting this for years and so have users
        1. whstl · · focus · HN ↗
          It has been completely normalized and rationalized by the tech community.

          Small company is down? Time to move to something else. Pitchforks.

          AWS goes down, or Google brings down half the internet? Well lots of other apps are down, so it&#x27;s not a problem.

  4. ChrisMarshallNY · · focus · HN ↗
    Ugh.

    That&#x27;s the dark side of these types of dependencies.

    But they provide a great deal of utility, so I can understand the attraction.

    1. amelius · · focus · HN ↗
      I guess it&#x27;s time Apple sherlocked Firebase.
      1. saagarjha · · focus · HN ↗
        You can write your own crash reporter now.
      2. oefrha · · focus · HN ↗
        [delayed]
      3. plorkyeran · · focus · HN ↗
        Apple has had various forms of iCloud sync that theoretically compete with firebase but are really awful for the entire life of firebase.
  5. Skwid · · focus · HN ↗
    I&#x27;m hearing an awful lot of &quot;How could they do this to us?&quot; and not a lot of &quot;Wow, maybe we should have read some of this 3rd party code we bundled into &#x27;ALLLL&#x27; of our apps&quot;

    Just an ignorant and naive outsider&#x27;s take, but to me it paints a pretty damning picture of the state of mobile development.

    1. freakynit · · focus · HN ↗
      Mobile and frontend development, both, now-a-days contain way way way more dependencies than they should.
      1. pranshuchittora · · focus · HN ↗
        Yes, but the SaaS adoption is also the reason. Many analytics SDKs, observability tooling etc.
    2. applfanboysbgon · · focus · HN ↗
      I&#x27;m normally right there with you, but Firebase is mandatory for Google Play integration, ie. sending push notifications to users. This is as much an indictment of the duopoly&#x27;s iron grip on the most widely used computing platform in the world as it is individual developers.
    3. skeledrew · · focus · HN ↗
      &gt; maybe we should have read some of this 3rd party code we bundled

      Not really practical though, if you push the thought to its limit. That 3rd party code is literally everything that&#x27;s not written by you, from firmware to the launch UI. And if you don&#x27;t push the thought to the limit then there&#x27;s always that risk leading to the same &quot;maybe we should&#x27;ve read X&quot; if something happens in X. Trusting that others will be good stewards of all that 3rd party stuff is a hard requirement for making progress.

      1. alt227 · · focus · HN ↗
        I agree its not practical, but including any 3rd party libraries in your project puts it at real risk of upstream bugs. There needs to be acceptance of this rather than blame culture.
      2. Skwid · · focus · HN ↗
        I appreciate what you&#x27;re saying. Commercial realities are very different to theoretical ideals, and of course you have to draw the boundary of trust somewhere to get anything done.

        I don&#x27;t think anyone is saying it&#x27;s an app developers responsibility to ensure the user&#x27;s bootloader is securely implemented.

        There is a lot of space between verify everything and trust nothing, and I don&#x27;t think it&#x27;s unreasonable to question whether that trust boundary is in the right place.

        I also think that the code compiled to produce the binary you ship is a perfectly reasonable place to put that boundary, would you disagree?

        I&#x27;m sure that within the mobile dev world it is normal, accepted practice to include lots of unseen code. I don&#x27;t begrudge anyone involve for taking the money and doing what&#x27;s expected.

        But I still think it&#x27;s a mad way to run a business or community project, and it&#x27;s worth considering how we got here and whether it really has to be this way.

    4. bcye · · focus · HN ↗
      You&#x27;re already trusting them with their proprietary cloud products, whose code you can&#x27;t read. Why wouldn&#x27;t you trust them with their client SDK code.
      1. jeroenhd · · focus · HN ↗
        Because their client SDK might crash the entire app if the server does something funky. We saw it before with Facebook, and now it&#x27;s Firebase&#x27;s turn.

        A dependency on code you can&#x27;t read reaching out to servers you don&#x27;t control is a recipe for disaster. If you can control the server, you can try to add fixes, redirect DNS to a backup cluster, you name it. If you implement the client, you can write the code in a way that doesn&#x27;t cause full crashes when the remote server does something weird. If you can do neither, you&#x27;re handing over your business flow and uptime to a third party that doesn&#x27;t care about you in the slightest.

        1. bcye · · focus · HN ↗
          Well your database crashing isn&#x27;t much better for your uptime really
    5. whstl · · focus · HN ↗
      &gt; state of mobile development

      If only it was just mobile development.

  6. alex_suzuki · · focus · HN ↗
    I remember first learning about Firebase when working on Android push notifications, a loooooong time ago (~2011 i think). Over time it grew into this full-featured app development platform, after an aquisition (don’t remember the name).

    These days however it feels a bit neglected, and somehow poorly bolted on to GCP. I still have a few production apps running on it and news like this reinforces my belief that it’s in decline.

    What are folks using these days that (ideally) is open source and self-hostable? I don’t want to lock in with another platform. Some of these apps use the offline sync feature of Firestore (apps used in basements and other low-connectivity areas).

    1. teoruiz · · focus · HN ↗
      [delayed]
      1. alex_suzuki · · focus · HN ↗
        I wasn&#x27;t aware that Supabase is self-hostable - thanks for pointing that out, will have a look. Customer is in Europe, if they decide to move away from Firebase, they don&#x27;t want to migrate to another managed platform run by a US company (digital sovereignty etc.)
    2. bcye · · focus · HN ↗
      Especially for offline sync Firebase is still much stronger than other all-in-one solutions.

      The real alternative there would be to use some SQLite syncing solution and a different solution for auth and cloud compute.

      1. matharmin · · focus · HN ↗
        While Firebase has support for queries with realtime updates and offline caching, I wouldn&#x27;t quite call it offline sync.
    3. pranshuchittora · · focus · HN ↗
      Yes that&#x27;s the sad part, if you want to integrate Push Notification in your app, and you want to use a 3rd party vendor like OneSignal etc, you still need a fuckin FIREBASE account &amp; FIREBASE dependencies in your app. So every app on the Play Store comes with firebase dependency.
      1. hackernud3s · · focus · HN ↗
        Calling them a 3rd party push notification vendor is being generous. Google is still doing the push notification and I guess OneSignal offers a wrapper around the libs.
        1. pranshuchittora · · focus · HN ↗
          Yes, so basically all Android devices comes with Play Services that&#x27;s why we need firebase. But in regions like China they have their own Play Services alternative and inorder to send notifications to those devices OneSignal or others provides a unified wrapper.
      2. mcsniff · · focus · HN ↗
        Er no?

        Be hyperbolic if you want, but there are LOTS of apps on the Play Store that do not have internet access, let alone a dependency on Firebase.

        1. Rygian · · focus · HN ↗
          With push notifications?
    4. ryan_beethe · · focus · HN ↗
      I&#x27;m working on an alternative (phaselock.io) which is still in alpha but it is open-source and self-hostable.

      Offline mode and cross-platform support are some of the features most important to me.

    5. Leonard_of_Q · · focus · HN ↗
      Using UnifiedPush with ntfy [1] as push distributor, used Prosody as well with Conversations as distributor which did work but I prefer ntfy because it does its one thing well.

      [1] <a href="https:&#x2F;&#x2F;github.com&#x2F;binwiederhier&#x2F;ntfy" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;binwiederhier&#x2F;ntfy

    6. wilsynet · · focus · HN ↗
      I was a new employee at Google when we started talking to Firebase. The founders are super smart and get stuff done.

      However, I remember saying to the VP who was leading the acquisition, “shouldn’t we decide what market we want to be in, then evaluate if we should build, buy, or partner?”

      He said “no, we should buy it first then figure out what to do”.

      I’m not surprised Firebase feels like it’s bolted on. They never really knew what they wanted to do with it. That was true then and it’s true now.

  7. nasretdinov · · focus · HN ↗
    If only there was any way to avoid this, right..? (I don&#x27;t mean from Google&#x27;s side, that as well, but that&#x27;s not the point)
    1. pranshuchittora · · focus · HN ↗
      No, not under your control. It is like &quot;trust me bro&quot; thing from your dependency maintainers.
      1. nasretdinov · · focus · HN ↗
        Well, you don&#x27;t have to use the proprietary third-party SDKs in your apps... If you want analytics you can either implement your own, or use some open-source ones that aren&#x27;t dependent on some third party backends switching some features on for everyone all at once...
  8. rvz · · focus · HN ↗
    Keep vibe coding and breaking everything.

    This will be the new normal as all human “engineers” from staff to seniors are now down levelled to interns and junior engineers when using AI; unable to understand what they are doing and pushing broken updates like this into production with “agents”.

    Better not blame Claude on this outage.

    1. pranshuchittora · · focus · HN ↗
      No matter who writes the code, the name in the commit is responsible as well as the person who approved &#x2F; reviewed the PR.
      1. swiftcoder · · focus · HN ↗
        The coding side of this isn&#x27;t even the problem - that a broken change like this made it to production is an operational failure.

        Why didn&#x27;t testing catch this? Why was there no canary? How come alarms didn&#x27;t wake up an on call as soon as the call-volume on the backend dropped? Why was this update rolled out to every customer at once, instead of gradually?

        1. pranshuchittora · · focus · HN ↗
          I think verification is still a grey area in the agentic software dev. QA and ppl testing it often resort to coding agents for the QA work, and we all know how good agents are at convincing themselves.
          1. pranshuchittora · · focus · HN ↗
            Btw, I am currently working towards solving the QA and verification @ <a href="https:&#x2F;&#x2F;vostride.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;vostride.com&#x2F;
            1. 2muchcoffeeman · · focus · HN ↗
              The solution is testing it yourself, not more AI
        2. gib444 · · focus · HN ↗
          [delayed]
      2. lelanthran · · focus · HN ↗
        No matter how many times this is said, the reality is that it is not true: no one will get blamed if the AI can be blamed.
        1. darkwater · · focus · HN ↗
          Wrong. They will be totally blamed. And the pushback will be that management forced me to use AI and go fast. Then, management will be the one NOT being blamed for this.
      3. Macha · · focus · HN ↗
        And in many companies, if they move at a responsible speed (rather than the speed the AI vendors promise, if you let their tools work in yolo mode), that person will get replaced by someone who will just yolo it
      4. fernandotakai · · focus · HN ↗
        there&#x27;s a LOT of push from vibecoders to stop with PR reviews.

        i&#x27;ve also heard &quot;the prompt is the only thing that should be reviewed&quot;

      5. PunchyHamster · · focus · HN ↗
        Just blaming AI seems to be the norm now, we have companies literally hacking other companies by &quot;rogue LLM&quot; and not getting any responsibility for it
    2. phoghed · · focus · HN ↗
      <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23097459">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23097459
      1. rvz · · focus · HN ↗
        So we have not learned anything since then, on both sides from the SDK builder side and the client side.

        Why is it that iOS is crashing but not Android?

        Google should know better to not have such an incident like this as the Firebase SDK runs on millions of apps.

        If you did not implement a fall back mechanism, perhaps you based your testing assumptions on that “Firebase could never crash my app” which is now false.

  9. hzwanip · · focus · HN ↗
    At least Google engineers can invert a binary tree
    1. pranshuchittora · · focus · HN ↗
      Lol, but they can&#x27;t build BREW ;)
    2. devsda · · focus · HN ↗
      Yeah, surely atleast 12 of those engineers tested their SDK thoroughly for a minimum of 14 continuous days. &#x2F;s
      1. pranshuchittora · · focus · HN ↗
        I can understand the pain as an indie dev ;(
    3. vdfs · · focus · HN ↗
      Don&#x27;t underestimate them, can also crash linux&#x2F;plasma <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49849626">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49849626
    4. sam_lowry_ · · focus · HN ↗
      What happened to all the leather jacket boys from Google? They were setting the trends in Site Reliability Engineering some 10 years ago.

      See this 2016 article for the cultural background: <a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;blog&#x2F;products&#x2F;gcp&#x2F;adventures-in-sre-land-welcome-to-google-mission-control" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;blog&#x2F;products&#x2F;gcp&#x2F;adventures-in-sre...

      1. Citizen_Lame · · focus · HN ↗
        Bean counters took over, now it&#x27;s maximum profit extraction until slow decline takes over. Decline in profit mind you, their software and service quality took a dive a while ago.
        1. someonebaggy · · focus · HN ↗
          It was bean counters in 2016 too
          1. sam_lowry_ · · focus · HN ↗
            They did get leather jackets in 2016, no?
      2. svict4 · · focus · HN ↗
        They&#x27;re all reading from the new AI SRE book <a href="https:&#x2F;&#x2F;sre.google&#x2F;resources&#x2F;practices-and-processes&#x2F;ai-engineering-reliable-operations&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sre.google&#x2F;resources&#x2F;practices-and-processes&#x2F;ai-engi...
    5. pjmlp · · focus · HN ↗
      Yeah, but better not spend too much time reading AOSP source code.
  10. GnosiWorks · · focus · HN ↗

    [dead]

  11. hnisjafx40 · · focus · HN ↗
    Yeah, and pinning versions doesn&#x27;t save you when the config comes from their server.
  12. saagarjha · · focus · HN ↗
    Ironic. They could save others from crashes, but not themselves.
  13. redwood · · focus · HN ↗
    A friendly piece of vocabulary assistance: it&#x27;s &quot;this morning&quot; (&quot;today morning&quot; is not correct English)
    1. deergomoo · · focus · HN ↗
      It’s a common phrase in Indian English
      1. redwood · · focus · HN ↗
        That&#x27;s true. It&#x27;s one of those phrases that, for example in an interview, an Indian might not be aware holds them back because of how jarring it sounds to the native speaker. My feeling is that while it&#x27;s true it&#x27;s effectively colloquial English in the subcontinent it&#x27;s also appreciated if people understand rather than everyone being too polite to say anything and never coach the person. Well I&#x27;m here I will admit I love you the words thrice and the needful
  14. jaen · · focus · HN ↗
    Exactly the same thing also happened in 2020 with the Facebook SDK: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23097459">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23097459
  15. frizlab · · focus · HN ↗
    All iOS apps that are using firebase… It’s an important distinction.
    1. saghm · · focus · HN ↗
      Important but also pretty obvious. If literally every iOS app were crashing, I would expect a more generic headline from a major news outlet, not a tweet discussing the cause with ALLLLLL CAPS in the middle of it.
  16. elzbardico · · focus · HN ↗
    The more we insist on the idiotic idea that we can delegate all coding to agents and don&#x27;t even need to read it anymore, the more such things will happen. And they will accelerate, as the hidden errors will compound.
  17. macsentinel · · focus · HN ↗

    [dead]

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.