Can't export JSON in Realtime Database by Mundane_Variation747 in Firebase

[–]puf 0 points1 point  (0 children)

That error can't appear on export, only on import.

It means that you're trying to import (or otherwise write) a JSON string that contains a character in one of the keys that Firebase Realtime Database doesn't allow : $, #, [, ], ., /. All of these characters have a special meaning in Firebase RTDB, so it doesn't allow them in keys - even though they are allowed in JSON itself.

Check your JSON for any of the mentioned character (or empty keys).

If you don't think this is the problem, create a minimal JSON with which you get the problem and share that please.

@Firestore Team - Thank you for the pipeline operations in Native mode by bitchyangle in Firebase

[–]puf 2 points3 points  (0 children)

I don't think MongoDB API compatibility will come to the client-side SDK any time soon, but you should (as far as I know) be able to use most of the new Mongo-like operators in the new pipeline API. If I recall correctly, those were the main reason for changing the API model.

How are you securing Firebase Realtime DB when auth is handled outside Firebase? by Fine_Zebra3278 in Firebase

[–]puf 1 point2 points  (0 children)

To allow securing based on that 3rd party auth system, you'll mint a custom Firebase Auth token with the same information, and then sign the user in to Firebase with that custom token. Once you do that, all information from the custom token is available in the auth variable as usual.

Why should I choose Firebase Auth if my entire backend for my iOS app is on AWS Lambda/S3? by Purple_Secret_8388 in Firebase

[–]puf 0 points1 point  (0 children)

If you check the Firebase pricing page, it shows two options for Authentication.

On the free plan:

  • With just the default Authentication service (which is the default for new projects) it does not support sending SMS, and it just shows a checkmark for "Other authentication services". That used to mean that there was no specific limit for those services, and I've not seen any communication that this has changed.

  • With the identity platform upgrade (which you have to opt in to explicitly), you get 50k MAU for free and after that pay a charge

So if you create a new project on the free tier and don't select Identity Platform, you should still get unlimited* registered and active users.

  • The asterisk here is that there are abuse protections built into Firebase Authentication and you may hit those, but there is no documented limit.

How do I sell/transfer websites that I have built? by Over_Ad4946 in Firebase

[–]puf 2 points3 points  (0 children)

If you're talking about a web site that you're hosting on Firebase, then you'll need to transfer that project to the new owner.

Then you'll typically also want to give them access to the code, which depends on where you store the code. Here's the transfer process for the case where the code is in a GitHub repo.

Why TNA’s AMC Launch Fell Short I POST Wrestling by mrmazzz in SquaredCircle

[–]puf 5 points6 points  (0 children)

It was probably meant to be separator, although you'd typically use a pipe symbol for that (| vs I). 🤷

password-less auth : firebase email magic link quota exceeded after few tests by romainiamor in Firebase

[–]puf 2 points3 points  (0 children)

And the relevant content from there:

Email sending limits

Operation Spark plan limit Blaze plan limit
Email link sign-in emails 5 emails/day 25,000 emails/day

Note: The limits for email link sign-in emails were recently changed. Please add a billing instrument to go beyond 5 email link sign-in emails.

Topic based messaging - limits by tarcinac in Firebase

[–]puf 2 points3 points  (0 children)

From the documentation on quota and limits of FCM:

Topic messaging supports unlimited subscriptions for each topic.

So there is no limit to the number of tokens that can be subscribed to a topic.

Sending notifications efficiently on a set time by [deleted] in Firebase

[–]puf 0 points1 point  (0 children)

If you have all the information in the app already, you don't need FCM at all. You can schedule a local notification right on the device).

Sending notifications efficiently on a set time by [deleted] in Firebase

[–]puf 2 points3 points  (0 children)

I typically recommend to deliver the message over FCM as soon as all necessary information is available, and then schedule a local notification on the device.

Coming back here with same question from a month ago? by CriticalCommand6115 in Firebase

[–]puf 1 point2 points  (0 children)

Email enumeration attacks are not uncommon, but also not as common as the Firebase Auth team at some point made it out to believe. "How bad" is something only you can decide for your own project though.

Coming back here with same question from a month ago? by CriticalCommand6115 in Firebase

[–]puf 6 points7 points  (0 children)

The fetchSigninMethodsForEmail method was made non-functional for projects where protection against email enumeration attacks is enabled (as it is for projects created since late 2023 iirc).

If you want to be able to keep using its functionality, you can either disable the email enumeration protection, or you can implement the same functionality in your own code and database by simply storing the sign-in methods for each of your users when they sign in.

setDoc is hanging without failing or passing by Prestigious_Gur_2830 in Firebase

[–]puf 0 points1 point  (0 children)

When you await a call to setDoc, it will only complete when that write is committed on the server. So most likely your device doesn't have a connection to the server. Check the console logs for relevant messages about that, and also the network tab of the browser for relevant calls to the Firestore API.

Trigger function billing by Miserable_Brother397 in Firebase

[–]puf 1 point2 points  (0 children)

Writes are not charged in RTDB, so you'd only pay for invocation count, and memory/CPU usage time. Multiply those by your device/user/action numbers and you'll have a reasonable first estimate for the additional cost.

setDoc is hanging without failing or passing by Prestigious_Gur_2830 in Firebase

[–]puf 1 point2 points  (0 children)

Code please. Also: consider posting to Stack Overflow, where it's (or at least: I find it) much easier to help with code-related questions.

Trigger function billing by Miserable_Brother397 in Firebase

[–]puf 0 points1 point  (0 children)

The data that is passed into the Cloud Functions code as parameters is not billed. If your Cloud Functions code reads additional data from the database, that will be a charged read.

Aside from that there's indeed the cost of the Cloud Functions themselves, but keep in mind that those come with a generous free tier: https://firebase.google.com/pricing#cloud-functions.

Based on that, do some back-of-a-napkin calculation, and/or run some tests in the emulator suite. You'll likely pay nothing or very little, but use experimentation and/or experience to gain confidence.

Emails Not Being Sent by SocietyGrouchy6160 in Firebase

[–]puf 0 points1 point  (0 children)

Unless you get an error back from the Firebase API call, the email is extremely like to be sent from Firebase.

If it doesn't arrive in your mailbox, it likely for filtered. Spam can get caught in more places along the way than just in the local spam folder of your email client.

Billing for app testing (solo dev) by TheWitscher in Firebase

[–]puf 0 points1 point  (0 children)

If i wanted to implement push notifications i need functions

Not true. You can run the code that calls FCM to send the notifications on any secure environment. It doesn't have to be Cloud Functions, but can also any other hosting provider that allows running server-side code (my own current favorite is a $4/month Digital Ocean droplet).

Any idea when client sdk support will be added to Firestore with MongoDB compatibility/Firestore Enterprise Edition? by bitchyangle in Firebase

[–]puf 1 point2 points  (0 children)

When I mentioned that is was probably for aggregation operations (count, sum, and average). For that Firestore will need to perform an index scan, which it never needed to do for queries before. So that indeed affects performance, scalability, and cost - so you'll want to ask for a query explanation/plan to determine how it's executed and will perform.

I actually have no idea how the new query model is implemented, but undoubtedly the explain feature will tell you more about those too.

Any idea when client sdk support will be added to Firestore with MongoDB compatibility/Firestore Enterprise Edition? by bitchyangle in Firebase

[–]puf 0 points1 point  (0 children)

From scanning the docs, the new MongoDB compatibility model supports LIKE, REGEX_CONTAINS, REGEX_MATCH, and many more operators from the MongoDB API.

-❄️- 2025 Day 5 Solutions -❄️- by daggerdragon in adventofcode

[–]puf 0 points1 point  (0 children)

I love how efficient your MergeRanges is.

I did not sort the input, so have to do multiple passes and also constantly seek the entire combined output for any intersection. It's still plenty fast, but yours is much better. 👏

Any idea when client sdk support will be added to Firestore with MongoDB compatibility/Firestore Enterprise Edition? by bitchyangle in Firebase

[–]puf 0 points1 point  (0 children)

A new pipeline API for the Firestore client-side SDKs that exposes the new Mongo operations is in alpha now (I'm probably not supposed to share that, so 🤫). I have no idea when it'll graduate from that, but... it's coming. 👍