r/FlutterDev • u/Recent-Pear-6341 • Oct 10 '26
Discussion How do you handle FCM across multiple apps without paying for Cloud Functions?
I ship a lot of small Flutter apps as a solo dev, and every time I add push notifications it’s the same routine: set up FCM, save tokens in Firestore, and then hit the wall that sending notifications needs a server. Cloud Functions means the Blaze plan, and for small apps I didn’t want that.
What I ended up doing:
- Topics for broadcasts. The app just calls
subscribeToTopic('all'), and one FCM request reaches everyone. No reading thousands of tokens from Firestore. - Tokens saved too (write-only Firestore rules), only for targeted sends to a specific user.
- A separate Next.js app on Vercel that uses the Firebase Admin SDK to send. One external cron job pings it for scheduled and repeating notifications, for all my apps.
- Multiple Firebase projects registered in that one dashboard, with the service account keys encrypted.
- The
screenvalue in the data payload decides which screen opens on tap, handled withgetInitialMessageandonMessageOpenedApp.
It works well on the free Spark plan so far. I turned it into a small admin dashboard for myself so adding a new app is just copy-pasting a generated setup file.
Curious how others do it:
Dashboard Video attached in comments if any one is interested about my idea
3
u/Recent-Pear-6341 Oct 10 '26
The Dashboard i made for flutter app
2
u/VisualRope8367 Oct 11 '26
Recently i started with broadcast service and local notification in kotlin and works like charm
0
u/mickymouse2865 Oct 11 '26
Use cloudfare worker. Its gives you 1million free invocations and next millions are 0.30 cents per million
2
u/[deleted] Oct 11 '26
[removed] — view removed comment
2
u/[deleted] Oct 11 '26
[removed] — view removed comment