r/Firebase • • 2h ago

Billing I am at a loss! Bots are out of control.

4 Upvotes

Hello everyone and thank you for reading this post. I am screwed and cannot figure out how to find a solution myself. So, here I am.

I have basic and free Android app. I am using Firestore as my backend. I have users and usersPrivate documents and everything is separated nicely. Only those whom are authenticated to perform a particular action is allowed. For the past few weeks bots somehow found my app and attacking me with DOW (Denial of Wallet). I have banned these bots' UIDs but the problem is their auth token remains valid for an hour. I have AppCheck and they are somehow bypassing it.

They are unable to read any documents, so the bill is not coming from that but the cost of 1 read per rejection in security rules (checking banned accounts). I could deny all auth tokens but that hurts the honest users as they cannot perform any actions within the app. The bots definitely know about the 1-hour period of an already issued auth token expiry and coordinating their attacks with 50 mins apart.

Cumulatively, they are hitting me with about 30k requests denials a minute, so I closed the app for now. How the hell do I stop them? Rate limiting also does not help because that is more expensive to handle than Firestore's one read cost.

Help me please!


r/Firebase • • 15h ago

Realtime Database REALTIME DATABASE DOWN

7 Upvotes

Anyone experiencing 500 error? Cloud function v2 it seems. US Central 1


r/Firebase • • 15h ago

Cloud Functions Gen 2 Cloud Functions on Node 22 failing to start since ~2:37 PM PT Oct 22? Workaround inside

3 Upvotes

UPDATE 22:25 UTC: Google appears to have fixed it. Cold starts are working again (seen i n us-central1) even for functions still on automatic updates. The on-deploy redeploy below is still a valid fallback if it comes back. Outage window seen: about 21:15 to 22:25 UTC.

FIX (works immediately, confirmed by several people): redeploy each function with the runtime pinned instead of auto-updated.

gcloud functions deploy FUNCTION_NAME --gen2 --region REGION \ --runtime-update-policy=on-deploy --source PATH_TO_BUILT_FUNCTIONS

  • It keeps the function's triggers, secrets and settings.
  • For --source, use your functions folder after building it: package.json, package-lock.json and the compiled output, no node_modules.
  • A normal firebase deploy does not fix it: it keeps automatic updates on, so the function lands on the same broken runtime.
  • One deploy per function, so script it if you have a lot. I'm running 6 at a time.

Write-up with checks, a curl probe and a one-liner listing the functions still on automatic updates: https://gist.github.com/mrbenji/5da8f50a875b8e0bbb7141bd24caa726


What's happening

Since about 21:15 UTC (2:15 PM Pacific) on Oct 22, 2nd gen functions on Node 22 can't start new instances. It's been reported in us-central1, us-east1 and northamerica-northeast1, across manyunrelated projects. Google's status page shows nothing yet.

  • Warm instances keep working, so it looks intermittent.
  • Callables show up in the browser as CORS errors, because the OPTIONS preflight returns 500.
  • Firestore triggers and scheduled functions fail too.
  • Cloud Run reports "container failed to start and listen on the port ... within the allocated timeout," and the container writes no logs at all.

It's Google's side, not your code: a five-line hello-world Node app fails the same way on the auto-updated Node 22 runtime and works with automatic updates off. New Node 22 base images (22.23.4) were published that day.

Check whether you're affected

gcloud functions describe FUNCTION_NAME --gen2 --region REGION --format='yaml(buildConfig)'

automaticUpdatePolicy means it's on automatic updates; onDeployUpdatePolicy means it's pinned.

Afterwards: Firestore-triggered functions without retries drop failed events, so plan a backfill for anything that happened during the outage. If you're affected, please reply with your region and open a support case so Google can see how widespread this is.


r/Firebase • • 11h ago

Tutorial How to export my project in firebase

0 Upvotes

Please help me out. I made a website, and I heard that Firebase will shut down in 2027. How can I export my files?


r/Firebase • • 2d ago

Crashlytics Firebase Crashlytics: Sudden crash spike mainly affecting OnePlus 8 Pro — possible device-specific issue?

Post image
3 Upvotes

Hi everyone,

I'm investigating a sudden increase in crashes in my Android app and would appreciate some help identifying the possible cause.

What I'm seeing:

  • App version: 1.0.2 (22)
  • Firebase Crashlytics reports 86 crash events affecting 71 users.
  • Device distribution: OnePlus 8 Pro — 76%, Huawei — 15%, Huawei HRY-LX1T — 9%.
  • Most of the reported crashes appeared within a short period around October 18–19, 2026.
  • The crash-free user rate for the selected 90-day period is 99.71%.

Main crash types:

  1. PrivacyWebViewActivity.onCreate — NullPointerException
  2. IntroLoadingScreen.onCreate — JSONException
  3. ProxyBillingActivity.onCreate — NullPointerException
  4. MainActivity.loadCategoryData — ArrayIndexOutOfBoundsException
  5. BinderProxy.transactNative — TimeoutException

I'm trying to determine whether this could be related to a OnePlus 8 Pro/OxygenOS issue, Android System WebView or Chrome compatibility, a problem introduced by the app release, or unusual automated activity.

I haven't confirmed the root cause, and I don't want to assume it's a bot attack without evidence.

Questions:

  • Has anyone experienced a similar device-specific crash pattern with Firebase Crashlytics?
  • Are there known OnePlus 8 Pro, OxygenOS, or WebView issues that could explain these crashes?
  • What would you check first to distinguish a device compatibility issue from an application bug or automated activity?

I can share relevant stack traces and additional device details if needed.

Thanks!


r/Firebase • • 3d ago

Realtime Database RTD heavy users!

2 Upvotes

If you’re a rtd heavy user like me, with frequent json update and delete, you can checkout this open source platform. This will help you to frequent update the json on your firebase rtd within the firebase. And deletion won’t give you nil. Best part, you can publish your edited json with one click using the extension.
Any feedback will help. Thanks in advance.


r/Firebase • • 3d ago

Cloud Firestore Firestore documents disappear after orderBy? Check for a missing field first

1 Upvotes

An open task can match your status filter and still disappear when you add orderBy("priority"). Firestore excludes documents that do not contain the ordered field; a larger limit will not bring them back.

Try a tiny fixture: triage has status "open" and priority 1; review has status "open" but no priority. The status query returns both. Adding orderBy("priority") returns triage. review has not been deleted.

Before backfilling data, remove the ordering on a bounded test query, inspect the actual stored key, and decide whether priority should be required. Keep permission and index errors visible instead of turning every failure into an empty array. Reset pagination when changing the query.

Disclosure: I work on Cengal, a Firestore workspace for Mac. We documented this example with synthetic emulator data and AI assistance; it is not a production Rules, index, billing or UI test. You do not need our app to use the check.

Firebase reference: https://firebase.google.com/docs/firestore/query-data/order-limit-data

Full three-document example: https://cengal.app/guides/firestore-orderby-missing-documents/


r/Firebase • • 4d ago

Firebase Extensions Any plans for function kit for Resize Images?

3 Upvotes

Just found out that Firebase Extensions are going to be shutdown, however my project is actively using storage-resize-images extension. Are there any plans to provide function kit replacement? Or they only way is forking?


r/Firebase • • 3d ago

Billing Anyone had this issue when they tried to switch to a different card ?

Post image
1 Upvotes

I tried using 2 different cards, but same message saying unable to send code...


r/Firebase • • 4d ago

Google Analytics Facing issue in my firebase

2 Upvotes

Is anyone else experiencing delays with Firebase Analytics? 🤔

My Firebase data is heavily delayed, and I’m still not seeing yesterday’s user data.

Is anyone else facing the same issue, or is it just me? 👀

#Firebase #GoogleAnalytics #DevCommunity


r/Firebase • • 4d ago

Billing Firebase Blaze Plan: What happens after my $300 free trial credits expire?

3 Upvotes

Hey guys, I’m using Firebase for my Flutter app and currently on the Blaze plan. My dashboard shows $300 in free trial credits expiring on Oct 20, 2026.

The app has around 500 potential users, and about 400 might listen to audio recordings (around 5 uploads per week, mostly 5 mins each, plus a 30-min Jummah Bayan).

After the credits expire, will I automatically start getting charged? Any idea how much this setup could cost monthly? Also, is there anything I should change to avoid unexpected bills?

Appreciate any advice!


r/Firebase • • 6d ago

Unity Firebase Analytics in my Unity game

1 Upvotes

Hi everyone! I'm an indie developer using Firebase Analytics and Crashlytics in my Unity mobile game, Potionmancy.I'd like to know: What Firebase features do you recommend for mobile games?

Thanks!


r/Firebase • • 7d ago

Billing Firebase storage issues

0 Upvotes

I’m in the creative phase of building my dating app, but Firebase requires me to upgrade and potentially pay €25 just to enable profile photo uploads. My app isn’t even launched yet, and I’m already facing costs before I can fully explore my idea. Why should creators have to pay before they can even see what their product could become?


r/Firebase • • 10d ago

Google Analytics Mobile app events drop after first journey on Release build when sGTM toggle enabled but work on debugView — Front Door returns 204, F5 no blockers but no hits land on sGTM

1 Upvotes

Post Body:

Hey everyone,

We are running into a perplexing issue with Firebase Analytics / GA4 mobile event tracking when routing app events through a Server-Side Google Tag Manager (sGTM) endpoint. We need some fresh eyes on this after i tried all AI suggestions etc!

The Problem:

When we enable the sGTM endpoint toggle in our app/data stream, events stop reflecting on the GA4 Realtime dashboard in Release builds.

Here is the exact behavior:

  1. Debug build on Android/Firebase DebugView / sGTM Preview mode: Everything flows perfectly! The GA4 - App client claims the payloads, tags fire, and events land in GA4 Realtime as expected.
  2. Release builds: The initial journey (e.g., Biometric Enablement / App Launch) lands on sGTM and GA4 fine. However, all subsequent journeys/events after that first journey fail to land on sGTM entirely.
  3. When sGTM toggle is DISABLED: All events across every journey flow normally to GA4 directly via standard SDK endpoints in both Debug and Release builds.

Network & Infrastructure Context:

  • Initial Blocker: We initially discovered that our F5 WAF had payload size limits blocking traffic, which we increased.
  • Front Door Behavior: Azure Front Door logs show 204 No Content status codes for requests hitting the endpoint, indicating the edge layer receives and accepts the traffic.
  • The Missing Link: Despite Front Door returning 204, subsequent events after the first journey never actually land on the sGTM container at all.

What We Have Verified:

  • sGTM Client: Active GA4 - App Client installed.

What We Suspect:

Since initial events hit sGTM but all subsequent app events vanish before reaching sGTM in Release builds:

  • Is the Firebase SDK / GTM SDK failing or halting batching/dispatching after the first request when sending to a custom sGTM URL in Release mode?
  • Could R8 / ProGuard code minification / stripping be breaking the internal queuing/serialization mechanism of the Firebase event dispatch thread in Release builds?
  • Is there an issue where session state, SSL connection reuse, or custom endpoint URL persistence breaks inside the mobile client after the first HTTP call?

Has anyone encountered a scenario where the first mobile journey events reach sGTM cleanly, but all subsequent journey events are completely dropped on the client side before hitting sGTM in Release builds?

Any insights, SDK dispatch debugging tips would be immensely appreciated!

Thanks!


r/Firebase • • 11d ago

App Distribution Unable to install the app

1 Upvotes

Hello everyone, I'm running a beta testing campaign by distributing and installing the Android mobile app through the Firebase App Distribution .

On a Lenovo tablet running Android 10, after being able to install different versions, from a certain version the Firebase App Distribution app no longer allows me to install, it tells me that it is impossible to install the app after clicking the "Install" button.

However, on other devices this installation is possible, I do not understand what it might be due to.


r/Firebase • • 12d ago

Emulators hidane 0.1.0: a Firestore emulator without Java that runs under firebase-tools, tested against the official one

7 Upvotes

Since firebase-tools 15 the Firestore emulator needs Java 21. It also has a few long-standing pains: 0.74 s to start (2.5 s through the CLI), 95 MiB idle, and batch writes that get slower and slower while a listener is attached (firebase-tools#3477; 121 s for 100k documents in my runs).

I've released hidane 0.1.0, a replacement that is a single binary. You keep your firebase-tools setup and put hidane exec -- in front:

curl -fsSL https://hidane.dev/install.sh | sh     # or brew / npm / cargo / docker
hidane exec -- firebase emulators:start --only firestore

No JDK needed. On my machine it opens its port in 5.5 ms, idles at 7.4 MiB and writes the same 100k documents with a listener in 4.9 s. These weren't measured side by side with the official numbers, so take the comparison as rough.

Checked against the official emulator:

  • documents, queries, aggregations, vector search (findNearest), transactions, listeners;
  • the Admin SDK, the Web SDK in Node, the Lite SDK, and the Web SDK in the browser;
  • @firebase/rules-unit-testing contexts and clearFirestore(), without rules;
  • the Emulator UI (browse, edit, clear), and --import / --export-on-exit in the official format, both ways.

How it stays compatible: every behaviour is first recorded from the official emulator and then replayed against hidane in its test suite, so error messages and snapshot events match. Where the official emulator is buggy, for example listeners going silent after a reset, the difference is documented instead of copied.

Not there yet: Security Rules (coming in v0.2; every request is allowed for now), and verification with the Go / Python / Java / mobile SDKs. If your tests don't depend on rules, it can replace the official emulator today.

If you run your test suite against it and find an answer that differs from the official emulator, that's the most useful feedback right now.

https://github.com/hidane-dev/hidane

(Not affiliated with Google.)


r/Firebase • • 12d ago

Hosting Is it possible to use firebase hosting for an android app?

2 Upvotes

Basically to serve text and images only for a native android app.


r/Firebase • • 13d ago

Authentication Google play integrity API error while login using release apk build

1 Upvotes

Hi Guys! I am facing this problem while trying to authenticate using a new phone number. I am using firebase phone number authentication. The following suggested things are already done.

  1. Sha1 and Sha256 of debug, release and playstore are already in firebase settings under this project.

  2. Play integrity api is enabled and added in permitted apis.

  3. Firebase -> App checks -> Play integrity API advanced settings ->"
    Require app integrity label PLAY_RECOGNIZED is disabled
    "

  4. Google Clou console credentials - android and Browser api keys have been added with Play integrity api too.

  5. Google-services.json file has been newly added (I am not sure if this changes with all these change - I try to open everytime and its the same)

I need you help in understanding why still this is causing issue. Does anyone have any solution? Am I doing something wrong entirely? Kindly help.


r/Firebase • • 14d ago

General rtdb costs when a post suddenly takes off?

1 Upvotes

my app uses rtdb with a lot of small reads. budget alerts are set up, but if a reddit post blows up overnight i'm asleep anyway. what do you actually do about that? limits in functions, a kill switch, just hoping? any bill that surprised you ?


r/Firebase • • 14d ago

Cloud Messaging (FCM) Is the ! operator supported as a condition in fcm?

5 Upvotes

Have started to get

400 - INVALID_ARGUMENT, "Request contains an invalid argument."
responses from FCM on requests that used to work . They all have in common that they use the ! operator as a condition.

Like

"condition": "'a' in topics && !('b' in topics)",

Anyone else noticed a change?


r/Firebase • • 14d ago

Hosting Firebase Hosting "Bandwidth Quota Exceeded" Mitigation

16 Upvotes

Hi, Firebase PM here.

We are actively investigating an issue where some Firebase Hosting projects on the Blaze plan are intermittently encountering "Bandwidth Quota Exceeded" serving errors.

If your site is currently serving quota errors or failing to deploy, you can resolve the issue immediately by ensuring the Firebase Hosting API is enabled for your Google Cloud project:

  1. Open the Firebase Hosting API page in the Google Cloud console
  2. Select your affected project from the dropdown selector
  3. If the button displays Enable, click it to activate the API (if it says Manage, the API is already active)

Once enabled, your project's Blaze plan limits will apply immediately, restoring normal site traffic and deployments.

Sincere apologies for the inconvenience. Our engineering team is actively investigating the root cause and working on a permanent backend fix. We will continue to report updates on the Firebase Status Dashboard.


r/Firebase • • 14d ago

General Google Firebase hosting Exceeded quota but i'm already on Blaze.

Post image
3 Upvotes

Has anyone run into this issue? It happened last night and resolved itself, but now it's happening again.


r/Firebase • • 14d ago

React Native Error (auth/api-key-not-valid.-please-pass-a-valid-api-key.).

0 Upvotes

Hello everyone, I'm exhasusted , Despite already importing the .env to vercel (which I'm using to deploy) This keeps happening.


r/Firebase • • 15d ago

Google Analytics Firebase DebugView is driving me crazy with 100+ "Apple arm64" simulators. Any automation tools out there?

2 Upvotes

I’m looking for an easier way to test Firebase Analytics. Manually simulating the user journey every single time to debug events is exhausting. On top of that, my team shares the same Firebase project, so the device dropdown menu is flooded with over 100 devices—90 of which are named "Apple arm64." It takes forever just to locate my own simulator.

Has anyone built an open-source GitHub tool or Model Context Protocol (MCP) that can simulate the journey and automatically log/document the events that hit DebugView?


r/Firebase • • 16d ago

Console I left my Chrome extension for the Firebase console alone for a year. People kept installing it. I'm back.

13 Upvotes

Hi r/Firebase, I'm Jerry. In July 2024 I built Firexport, a Chrome extension that adds an Export button to the Firebase console. Turns out a lot of you wanted that button too.

Then I left it alone for over a year. Work got busy, changes felt risky, and it worked. Meanwhile it kept growing: monthly installs went up about 7x, and it's at about 3,000 users now. That felt great for a minute, then like a responsibility I'd been ignoring.

When I came back in August, "it works" wasn't quite true. Exports could quietly stop early, and CSV values could slide into the wrong columns, all without an error. If that ever bit you, I'm sorry. It's fixed, and Firexport now warns you when an export doesn't match Firestore.

Building is a lot lighter now (AI tools helped), so I've shipped 12 releases in six weeks, and it's the most fun I've had with it since the start. It's also growing past export: a read meter for the reads the console itself costs you, recent queries, a query builder for Enterprise databases, and export for Auth users, rules and indexes. All free, with a paid tier for exact-value exports.

If you tried it before, give it another look. And what's the one thing you wish the console did? I'm picking what to build next from the replies.

https://firexport.dev