r/iOSProgramming • • 11h ago

Question Anyone use Supabase as a backend? How did it go?

12 Upvotes

21 comments sorted by

15

u/OkAside1248 10h ago

I don’t use it for any of my developed apps however one of my business websites runs entirely on the supabase free plan. Fairly busy site that does AI photo analysis of roofs via drone photos. It handles 10-20 bookings per day, 10 or so regular scheduled tasks and multiple backups per day.

It also provides the same service whitelabeled for trade customers to run their own roof reports, usually around 4-5 companies running reports every few hours without hiccups.

It’s great for what it is.

5

u/ThalesMother9938 10h ago

You might get better answers if you say what the app needs. Is it mostly sign in plus a few tables, or do you need realtime, file storage, push? Whatever backend you pick, I'd decide early what the app should do offline, because that part ends up on the client side anyway.

3

u/alanskimp 10h ago

It needs login and book listing for sales

4

u/TheSonicKind 10h ago

you don’t know enough of what you’re asking about

3

u/Dogukanko 7h ago

I'm a solo mobile dev and for small projects it's been a pretty comfortable choice. Auth and the database are quick to set up and the Swift client is decent. The main thing is to think about row level security early, it's easy to leave tables too open while prototyping. Also keep an eye on the free tier pausing inactive projects if it's just a side thing.

1

u/alanskimp 7h ago

I see thank you 🙂

2

u/Rough_Analysis5861 7h ago

Supabase is pretty good i use them for all of my apps where i need to persist data. Free plan is generous, cloudflare also has database free tier that i haven’t used but I know few devs specifically web devs who love it

7

u/alanskimp 7h ago

I just logged into the app with supabase! its so cool!

9

u/Kindly-Presence-5784 9h ago

Working with Supabase since 2023, no issues. I'm on $23 monthly plan. Brilliant. What wins me is the simplicity in documentation and how easy is to call methods. Second, AI, I got Claude connected to it. Awesome performance

5

u/oauth20 10h ago

Don’t use cloud for anything, just get a cheap VPS

5

u/PunyDev 9h ago

Isnt VPS on cloud too?

3

u/iathelit_creator 10h ago

I went the opposite direction for my app (iAthelit, an iOS fitness tracker): local-first with GRDB (SQLite WAL) on device, no backend at all for core tracking. Supabase is great if you need sync/multi-device, but for health data I wanted zero server dependency and offline-first. The trade-off: you lose cross-device sync unless you add CloudKit or a custom sync layer later. If your app is single-device or privacy-sensitive, local SQLite is surprisingly liberating. If you need real-time collab or web access, Supabase makes sense.

3

u/giusscos 9h ago

Good for me, I'm using supabase for db and edge functions and cloudflare for storage and cdn. Supabase is not a good fit for those 2 for my use case

3

u/Ok_Breakfast_9531 8h ago

for my notes app i went with a single cloudflare worker instead of a full backend, mostly because all i needed was a proxy in front of an AI api plus app attest so random people can't hit it. for login + a book listings table though supabase sounds like a good fit, just do the RLS thing brkaydev mentioned before anything else

5

u/gnedyalkov 9h ago

Not Supabase, but for my game I ended up with no backend at all. Everything lives in a local SQLite store and syncs through the user's private CloudKit database with CKSyncEngine. No sign-in screen, no server bill, nothing on my side to secure. The catch is it's Apple-only, so if you ever want Android or web, Supabase makes way more sense. If it's iOS only and the data is per user, I'd look at CloudKit first.

1

u/brkaydev 10h ago

For login plus a listings table it's a reasonable fit. Two things bite people early: turn on Row Level Security for every table before launch, because the anon key ships inside your app and anyone can hit the API with it. And if you add Google or another social login, App Review will expect Sign in with Apple or an equivalent privacy-focused option next to it. If the books are physical, payment can go outside in-app purchase, which keeps things simpler.

1

u/alanskimp 10h ago

Ok sounds good thx!

2

u/Oikon__ 8h ago

For Sign in with Apple, if you stick to the native signInWithIdToken flow instead of web OAuth, you avoid having to regenerate the Apple secret key every 6 months. Apple also leaves the user's full name out of the ID token and only sends it on the first sign in, so you'll want to save it right away with updateUser or in your own table if you need it.

https://supabase.com/docs/guides/auth/social-login/auth-apple

1

u/brkaydev 7h ago

Good call on the name. Worth adding: if you miss it on that first sign in, the user has to remove the app under Sign in with Apple in their Apple ID settings before Apple sends it again. Easy to lose while testing, so save it before anything else in that flow can fail.

2

u/ThanhDongNguyen 7h ago

Others covered RLS already, two things I didn't see here:

Free plan projects get paused after a week with no activity. Fine while you build, but don't launch on free plan or your app goes down after a quiet week.

For book listings you'll probably store cover photos in Supabase Storage. Storage needs its own policies too (on storage.objects), RLS on your tables doesn't protect the bucket. Make the bucket public read only if covers are ok to be public, and limit upload to the logged in user's folder.