r/iOSProgramming • • 6d ago

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

23 Upvotes

35 comments sorted by

19

u/OkAside1248 6d 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.

4

u/Dogukanko 5d 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 5d ago

I see thank you 🙂

3

u/Rough_Analysis5861 6d 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 6d ago

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

5

u/Electronic-Sun-9342 5d ago

i mean, Supabse is pretty solid... CF's database is worth a check, BUT, id rather keep things simple than juggle multiple services just to get a backend workin.

Supabase is convenient since a lot of things are already handles for ya

3

u/brkaydev 6d 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 6d ago

Ok sounds good thx!

4

u/Oikon__ 6d 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

2

u/brkaydev 5d 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.

11

u/Kindly-Presence-5784 6d 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

13

u/romit5587 5d ago

I've shipped iOS apps with both a custom backend and BaaS-style setups. Supabase is a solid way to get auth, Postgres and realtime quickly, especially if you also have a web client. The things that usually bite on mobile aren't the SDK, they're the assumptions.

Treat RLS as part of the product, not a checkbox. If a policy is wrong, the iOS app looks like it has a sync bug. I'd also keep a proper Swift model layer rather than letting screens talk to tables ad hoc, because schema changes will leak everywhere.

The other decision is offline. If the app has to work on a bad network, I wouldn't make Supabase the source of truth on device. Use it as the sync layer, keep a local store, and be explicit about conflict rules. That's usually when people outgrow a pure BaaS setup, not when query volume first goes up.

11

u/gnedyalkov 6d 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.

5

u/iathelit_creator 6d 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.

4

u/Ok_Breakfast_9531 6d 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

3

u/giusscos 6d 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/ThanhDongNguyen 5d 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.

2

u/NewOakClimbing 5d ago

I have an app that uses it, and another that's in development. I've had no issues with it and find the UI to be pretty intuitive, with lots of good integrations to make my life easier.

2

u/Difficult_Duty2198 5d ago

used it on a small side project and what bit me was row level security. forgot one policy and queries just came back empty with no error. worth testing with a non-admin user early.

2

u/markwdw 1d ago

If you’re thinking about using them, go for it. Very reliable and easily configurable. One thing to note, if you’re planning on launching anything that will generate high traffic or will have to handle multiple requests at once, you’ll need a paid plan AT LEAST. My app’s database dropped as soon as a few test users ran a few queries at a time.

2

u/Competitive-Eye-5322 1d ago

ive been using supabase and great that Claude has MCP access to really assist. I couldn't speak to reliability and scaling as im at the point of trying to market the app so havent pushed the database.

2

u/oauth20 6d ago

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

10

u/PunyDev 6d ago

Isnt VPS on cloud too?

1

u/Tylerhackbart 5d ago

Pretty good, couple things for schedule jobs and tracking are sorta annoying but nothing to move things. Have several clients using it for web and app backends for cross platform support.

1

u/Pit-crew-garage 4d ago

We went a different way on a small household app. The phone's local store is the source of truth, and a Cloudflare Worker + D1 only handles sync when people share data. It's cheap and it's just SQL, but you write your own auth checks, so it's more work than Supabase out of the box.

Big thing I'd echo from above is figure out offline early, especially who wins when two devices edit the same record. We started with last write wins per record and it ate people's edits. Switching to per-field timestamps fixed most of it.

If it's single user and Apple only though, CKSyncEngine is honestly less work than any backend.

7

u/[deleted] 6d ago

[removed] — view removed comment

2

u/alanskimp 6d ago

It needs login and book listing for sales

5

u/TheSonicKind 6d ago

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

5

u/[deleted] 5d ago

[removed] — view removed comment

1

u/alanskimp 5d ago

Thanks!

1

u/[deleted] 4d ago

[removed] — view removed comment

1

u/AutoModerator 4d ago

Hey /u/BerthHosting, your content has been removed because Reddit has marked your account as having a low Contributor Quality Score. This may result from, but is not limited to, activities such as spamming the same links across multiple subreddits, submitting posts or comments that receive a high number of downvotes, a lack of recent account activity, or having an unverified account.

Please be assured that this action is not a reflection of your participation in our subreddit. This is simply an automated filter in place to reduce spam.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.