development · Updated

    Building a Parents-Only Community App: Safety, Consent and Subscriptions with Flutter and Firebase

    By Ayesha IftikharSenior Software Engineer & Product Engineer
    Building a Parents-Only Community App: Safety, Consent and Subscriptions with Flutter and Firebase

    Short answer

    Keep children out of the data, make moderation a pipeline that reaches people (not just a dashboard), enforce everything in Firestore rules and Cloud Functions, put hard server-side limits and quiet hours on notifications, start every consent switch off, and let a RevenueCat webhook make the server the source of truth for subscriptions.

    A community app is easy to build and hard to build well. Sending a message takes an afternoon. Deciding who can see it, who can report it, when someone gets a notification about it and what happens when an account is deleted takes months.

    I recently finished building The Snugglers, a parenting community from the team behind OuchieSnuggles. It's where moms, dads and caregivers swap what works for doctor visits, bedtimes and big feelings. It has topic chat rooms, "Story Moments" (photo and video posts about a family's brave moments), giveaways, character newsletters, an affiliate dashboard and a feature-request board where parents vote on what we build next.

    Here's how we approached the hard parts.

    Adults only, and children stay out of the data

    The Snugglers sits next to a kids app, so the first rule was simple: this one is for grown-ups. Every member confirms they're 18+ at sign-up, and the app is kept out of the Kids and Family store categories on purpose.

    The second rule was stricter: no children's names or birthdays, ever. Avatars are illustrated characters, not photos. We didn't add a "child profile" screen and then try to protect it. We left it out.

    Moderation is a pipeline, not a button

    Report and block are one tap each. Behind them:

    • A word filter on the server (Cloud Functions) hides flagged messages automatically, and a hidden message never triggers a notification.
    • Every Story Moment is reviewed by a person before it appears, and the parent chooses whether a moment can ever be featured by the brand.
    • Reports reach the team three ways: a Slack message, a browser push in the admin panel, and an email digest every three hours. A report that only lands in a dashboard nobody has open isn't moderation.
    • Firestore security rules do the real enforcement. The app's UI is a convenience. The rules decide that you can only attach media you uploaded yourself, that a post's files can't be swapped after it's live, and that anonymous logins can't create a profile at all. We tested those rules against the emulator, case by case.

    Notifications that respect bedtime

    Parents of small children are tired. Chat notifications were the feature most likely to make people uninstall, so they're opt-in and come with limits we wrote into the server:

    • Only parents who've posted in a room recently and opted in get notified
    • At most one notification per room per hour and six per day
    • None between 9 p.m. and 7 a.m. in the parent's own time zone; they're skipped, not queued up for the morning
    • The notification says "New messages in Bedtime", with no names and no message text on the lock screen

    These numbers aren't clever. Writing them down and enforcing them on the server, not the device, is what made them work.

    Consent you can actually change

    Analytics, marketing email and notifications all start off. Each one has its own switch in Settings, and members can delete their account and data from inside the app. With Sign in with Apple, deleting the account also revokes the Apple tokens, which the App Store requires and which is easy to forget.

    Subscriptions without the support tickets

    Each of the four OuchieSnuggles characters (Toby, Lily, Tulip and Kosmo) has a newsletter, plus a bundle of all four. We use RevenueCat for the subscriptions, and two decisions saved us a lot of trouble:

    1. The server is the source of truth. A RevenueCat webhook updates the member's entitlements in Firestore, and the app reads from there. After a purchase, the app waits for that sync (retrying a few times) before it unlocks anything, so "I paid but nothing happened" becomes a clear message instead of a mystery.
    2. Free samples before the paywall. Every newsletter has a free issue anyone can read, and a welcome issue that arrives the moment someone subscribes. People should know what they're paying for.

    What App Review taught us

    Our first App Store submission came back with notes, which is normal. The most useful one: on iOS, an app shouldn't mention other app stores. Our subscription terms and giveaway disclaimers named both stores on both platforms. The fix was small: one helper that returns the right store and company name for the platform. We also added a test that fails if that copy ever shows up anywhere else in the code. Small rules like that are easy to break again six months later, so a test is worth more than a reminder.

    The stack

    • Flutter / Dart 3, feature-first Clean Architecture + MVVM, Riverpod 3, go_router
    • Firebase: Auth (email, Google, Apple), Firestore, Storage, Cloud Functions v2, Messaging, App Check, Crashlytics
    • RevenueCat for subscriptions; Shopify webhooks for affiliate order tracking
    • A shared Dart package for the brand's characters, colours and fonts, so the community app and the kids app look like one family
    • Tests with mocktail, checks and fake_cloud_firestore, so repositories are tested against an in-memory database

    If you're building a community app

    Start with the questions that aren't features: Who can see this? Who can report it? What does a notification say on a lock screen? What happens to it when the account is deleted? Answer them in your security rules and server code first. The UI is the easy part.

    The Snugglers is available on the App Store and Google Play. Have a look at ouchiesnuggles.com/tribe, or read the full The Snugglers case study. If you're planning a community or family app and want a second pair of eyes, here's how I can help.

    The kids app this community sits next to is written up in What I Learned Building a Calm, Privacy-First Kids App in Flutter.

    Share this article

    You Might Also Like

    Built with an AI App Builder? What to Check Before You Submit to the Stores

    Built with an AI App Builder? What to Check Before You Submit to the Stores

    AI app builders get you a working app fast, but they don't know the store rules. The checklist I used to audit CircleCam, a Rork-built social app, for App Store, Google Play and GDPR before submission.

    Read More →
    The Future of AI in Dating Apps

    The Future of AI in Dating Apps

    How AI in dating apps is transforming online dating: AI matchmaking technology, conversational chemistry matching, personalized dating experiences, and safe online dating with AI-powered catfish detection.

    Read More →
    A Flutter App Startup That Never Waits on the Network

    A Flutter App Startup That Never Waits on the Network

    What runs before runApp() in MindLeau and why every await is local: never-throwing SDK initializers, ads deferred past the first frame, retried background work, consent-gated crash reporting and testable dependency injection.

    Read More →