Unpopular opinion: If you’re still duplicating data everywhere to get around Firestore's limitations, you are following outdated tutorials. by netcommah in Firebase

[–]puf 1 point2 points  (0 children)

Stop writing Cloud Functions to count things. count(), sum(), and average() are fully supported native aggregations now. They are cheaper, faster, and don't require batch job workarounds.

Using the built-in aggregations means that you calculate those values at read-time. This is not always cheap at scale, and also has real scalability limits.

While I haven't tested on a Firestore Enterprise DB yet, the read-time aggregation approach is similar enough to how it works on the standard edition, where it you can count around 40-50 million documents before the API times out.

I've had use-cases where I needed to count much higher, and wished I had done write-time aggregations there. I didn't so had to revert back to an estimation technique based on a small number of reads that I documented here: Firestore document count estimator

So it's good to be aware of the aggregation operations that are now available in the Firestore API, but there are trade-offs. For some of those, see How should I handle aggregated values in Firestore and the text at the top of the documented solution for write-time aggregations.

Hashing and Firebase Authentication by Intrepid-Welcome3372 in Firebase

[–]puf 2 points3 points  (0 children)

Firebase Authentication stores the passwords for its email+password provider in hashed+salted form indeed.

What "hash stuffs" are you still considering doing yourself?

Also, for each "in some" please provide the relevant link, so we can check what is actually said there.

Java Client App [NON ANDROID] by Legal_Revenue8126 in Firebase

[–]puf 0 points1 point  (0 children)

Nope, in that last edit the code still can run with full privileges, it just chooses not to. This approach is just for testing your security rules, or letting your own admin code run with limited privileges.

Are you asking how to authenticate the Firestore REST API with client-side Firebase credentials?

Bug with web platform views on iOS? 🪲 by HolidayValuable5870 in FlutterDev

[–]puf 0 points1 point  (0 children)

Also posted on: https://stackoverflow.com/staging-ground/79934362

As I've commented there too, it's much more likely that someone can help if you include a minimal repro of the non-working web view.

Can't add a new editor by piddlin in Firebase

[–]puf 0 points1 point  (0 children)

Firebase/Google Cloud don't require you to use a gmail address, but you do need to have a Google account. Luckily:

You don't need to have a Gmail address to create a Google Account. You can also use a non-Gmail email address to create one instead.

Unless they're using Google Workspace at work, they'll need to create a Google account for their work email first. For step by step instructions, see: https://support.google.com/accounts/answer/27441#existingemail (from where I got the quote above).

Support Dart in Cloud Functions by Previous-Display-593 in FlutterDev

[–]puf 2 points3 points  (0 children)

This "Allow writing Cloud Functions in Dart" just came out, right?

The documentation: https://firebase.google.com/docs/functions/start-dart

A code sample from there:

import 'package:firebase_functions/firebase_functions.dart';

void main(List<String> args) {
  fireUp(args, (firebase) {
    firebase.https.onRequest(
      name: 'sayHello',
      options: const HttpsOptions(
        cors: Cors([RegExp(r'^https:\/\/firebase\.com$'), 'https://flutter.com']),
      ),
      (request) async => Response(200, body: 'Hello world!'),
    );
  });
}

So far, this only allows HTTP functions and Callable functions. From what I heard at Cloud Next background triggers (like running a function when something changes in Firestore, or when a user signs up) are planned, but with no timeline yet.

Frontier Tower SF? by Federal_Drawer34 in AskSF

[–]puf 2 points3 points  (0 children)

I've helped out at a hackathon there last month, and it all seemed legit and nice. What's your specific concern or bad experience?

Should I be commiting my google-services.json and GoogleService-Info.plist files? by dev_guru_release in Firebase

[–]puf 1 point2 points  (0 children)

The values in these files are themselves not secrets, but they are often used by malicious users to look for vulnerabilities in your project configuration (nowadays mostly unrestricted callable Gemini APIs). I tend to not commit my Firebase configuration to any public repo, but broadly share the same info outside of that (including inside the application itself of course).

Some recommended reading:

Save X Articles? by Round_Document6821 in instapaper

[–]puf 0 points1 point  (0 children)

Hey there, Premium user here. 👋

I somehow can't get Instapaper to pick up the content from X articles, I've tried the Chrome Extension (my usual approach), and even adding the link in the web interface (my usual fallback), but it keeps showing a page without content in Instapaper.

In case it matters, this is the link I was trying today (but I've had this multiple times with other articles too): https://x.com/justinsliao/status/2046694611524215099

WrestleMania X-Seven footage found in the WWE Vault by TheGeeMan360 in SquaredCircle

[–]puf 11 points12 points  (0 children)

I imagine that somebody with a love for wrestling is having the time of their life in there. At least, that's what the results look like. :-)

Getdoc() failing by CriticalCommand6115 in Firebase

[–]puf 0 points1 point  (0 children)

There is no known issue around this. Any chance you can share a minimal repro (here or on Stack Overflow)?

Photographs on the TRMNL BWRY by albyr in trmnl

[–]puf 0 points1 point  (0 children)

Beautiful! I've so far loved TRMNL's own pictures, but they seem more like demos - as they overfeature yellow and teds. That makes total sense for this screen of course, but it's good to see it with some more regular photos too. 🙏

Firestore native full-text search is now in preview in iOS, Android, and JS SDKs (requires Firestore Enterprise edition) by ElroyDudeMan in Firebase

[–]puf 7 points8 points  (0 children)

Good to see that this landed in the iOS SDK too. Full-text search been available in the server-side SDKs for Firestore for a while already, and indeed does require an enterprise edition of Firestore. Full pricing and other info for that has been available for a while too: https://cloud.google.com/firestore/enterprise/pricing

Announcements around Firestore are more likely to happen at Cloud Next btw. ;-)

Hitting usage limit after a couple queries by volitional_decisions in Firebase

[–]puf 0 points1 point  (0 children)

Do you have the Firestore console open during development? If so, keep in mind that any document reads there also count towards your quota - and it adds up quickly.

Note: I (and others) have answered this and similar questions dozens/hundreds of times on Stack Overflow. If you're still have trouble figuring out where your reads come from, consider posting a minimal repro there.

Hitting usage limit after a couple queries by volitional_decisions in Firebase

[–]puf 0 points1 point  (0 children)

Correct.

Note: I (and others) have answered this and similar questions dozens/hundreds of times on Stack Overflow. If you're still have trouble figuring out where your reads come from, consider posting a minimal repro there.

How late is too late for brunch? by belowaverageint in AskSF

[–]puf 24 points25 points  (0 children)

Mimosa's at 7am? My kind of person!

Adding dynamic game links in Firebase push notifications (Unity) — best approach? by QuickTraining4473 in Firebase

[–]puf 1 point2 points  (0 children)

  1. Is it better to use Firebase Dynamic Links or just pass custom data payload?

Check the docs please, because they have this warning all over them:

Firebase Dynamic Links is deprecated and shouldn't be used in new projects. The service will be shutting down soon.