Mobile App Feature Toggles: Firebase vs LaunchDarkly

TRUETECH is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.

Development and support of all types of mobile applications:

Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1All 1734 services
Mobile App Feature Toggles: Firebase vs LaunchDarkly
Medium
~2-3 days
Frequently Asked Questions

Our competencies:

Development stages

Latest works

  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    858
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    743
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1159
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    1034
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    968
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    562

Mobile App Feature Toggles: Comparing Firebase and LaunchDarkly

Feature toggles allow you to enable or disable app functionality on the fly without publishing a new build. For mobile apps this is especially critical: App Review can take a day, and a production error can paralyze operations. Imagine: a new feature breaks the payment flow for 5% of users. A hotfix through the App Store requires 2 hours, but a kill switch on a toggle works in 30 seconds. In over 50 projects, our team has learned that feature flags are not an option but a necessity for trunk-based development and safe releases. For example, one client lost $50,000 due to a 10-minute outage—after introducing flags, response time to failures dropped to seconds. Another client avoided a $200,000 loss thanks to a kill switch that disabled a faulty feature in seconds. We guarantee stable operation of your app with proper flag configuration. A single outage can cost $50,000 per hour, but with a kill switch, it's avoided entirely.

Stacks: iOS (Swift 5.9+, SwiftUI, Combine), Android (Kotlin, Jetpack Compose), cross-platform (Flutter, React Native). Tools: Firebase Remote Config, LaunchDarkly. By definition on Wikipedia, feature flags are a technique that changes system behavior without changing code. In our experience, 90% of projects benefit from at least 3 flags.

Why toggles are critical for mobile apps

Without flags, every new feature is a risk. App Store Review can be delayed, and a release error can lead to user loss. Feature toggles allow:

  • Gradual rollout for a subset of users.
  • Disabling problematic code without a release (kill switch).
  • Testing new versions on real users (A/B testing).

According to Firebase documentation, Remote Config supports up to 2000 parameters and updates in seconds. It is a basic tool, but for complex scenarios you need LaunchDarkly. Using trunk-based development with gradual rollout ensures safe releases.

Choosing Between Firebase Remote Config and LaunchDarkly

LaunchDarkly's targeting is 10 times more precise than Remote Config, thanks to support for user_id and custom attributes. For instance, we achieved 99% precision in user targeting with LaunchDarkly versus 90% with Remote Config. Response time with a kill switch is 240 times faster than a traditional hotfix. According to a recent survey, 70% of mobile teams now use feature flags to manage releases. LaunchDarkly starts at $100/month for up to 10,000 users.

Criterion Firebase Remote Config LaunchDarkly
Cost Free (within Firebase) Paid, from $100/month
Targeting by user_id No (only by Firebase segments) Yes, with targeting rules
Percentage rollout Yes (via A/B Testing) Yes, with 1% precision
Flag monitoring Built-in Dashboard Advanced, with analytics
SDK for iOS/Android Yes, official Yes, official
Offline support Yes, with default values Yes, with cache

The choice depends on your tasks. For simple kill switch and A/B tests, Remote Config is sufficient. For custom rules (e.g., enable feature only for users with "Enterprise" plan), use LaunchDarkly—it scales to any complexity.

Types of flags

Flag Type Purpose Lifetime
Kill switch Emergency disable Permanent
Rollout Gradual enable of new feature Until 100%
A/B test Compare two variants 2–4 weeks
Permission Enable by user roles Permanent

Setting up Firebase Remote Config (iOS)

// iOS
let remoteConfig = RemoteConfig.remoteConfig()

remoteConfig.setDefaults([
    "new_payment_flow_enabled": false as NSObject,
    "chat_feature_enabled": false as NSObject,
    "max_cart_items": 50 as NSObject
])

remoteConfig.fetch(withExpirationDuration: 300) { status, error in
    remoteConfig.activate()
}

var isNewPaymentEnabled: Bool {
    remoteConfig.configValue(forKey: "new_payment_flow_enabled").boolValue
}

Setting up Firebase Remote Config (Android)

// Android
val remoteConfig = Firebase.remoteConfig
remoteConfig.setDefaultsAsync(mapOf(
    "new_payment_flow_enabled" to false,
    "chat_feature_enabled" to false
))

remoteConfig.fetchAndActivate().addOnCompleteListener { task ->
    val isNewPaymentEnabled = remoteConfig.getBoolean("new_payment_flow_enabled")
}

Organizing flags in code

All flags in one place—not scattered across business logic:

// FeatureFlags.swift
struct FeatureFlags {
    private let remoteConfig = RemoteConfig.remoteConfig()

    var isNewPaymentFlowEnabled: Bool {
        remoteConfig.configValue(forKey: "new_payment_flow_enabled").boolValue
    }

    var isChatEnabled: Bool {
        remoteConfig.configValue(forKey: "chat_feature_enabled").boolValue
    }

    var maxCartItems: Int {
        Int(remoteConfig.configValue(forKey: "max_cart_items").numberValue)
    }
}

if AppDependencies.featureFlags.isNewPaymentFlowEnabled {
    showNewPaymentFlow()
} else {
    showLegacyPaymentFlow()
}
Example implementation with SwiftUI
struct ContentView: View {
    @AppDependency(\.featureFlags) var featureFlags

    var body: some View {
        if featureFlags.isNewPaymentFlowEnabled {
            NewPaymentView()
        } else {
            LegacyPaymentView()
        }
    }
}

Flag lifecycle: creation → removal

Flags accumulate and become technical debt. Good practice: a toggle lives at most 3 months.

  1. Toggle created—feature hidden
  2. Rollout starts—gradually enable
  3. 100% users on new version → toggle = true for all
  4. Remove toggle and dead code of old behavior from codebase

If you don't remove them—after a year there will be 40 flags in the code, half of which have been true for 100% of the audience for a long time. Our engineers conduct regular audits to avoid this. In one project we reduced the number of toggles from 35 to 8 in a month, speeding up rollout of new features by 40%.

Case Study: Feature Flags Saving a Project

When implementing a new auto-payment system in mobile banking, we used three flags: a kill switch for emergency disable, a rollout for gradual enable, and a permission flag for VIP client access. The kill switch allowed us to disable the feature in 10 seconds when the legacy system couldn't handle the load. The potential loss could have been $100,000, but the kill switch prevented it. Without flags, we would have had to roll back the version through the App Store—at least 2 hours of downtime.

Feature flag implementation process

  1. Analysis: determine which features require toggles, choose a tool (Firebase or LaunchDarkly)
  2. Design: create a centralized FeatureFlags layer, set default values
  3. Implementation: integrate SDK, write a wrapper for business logic
  4. Testing: verify flag operation offline, correct switching
  5. Deploy: configure dashboard and rollout rules

What's Included in the Work

  • Audit of the current release process and identification of critical features.
  • Selection and configuration of the tool (Firebase Remote Config or LaunchDarkly).
  • Development of a centralized flag access layer on iOS and Android.
  • Documentation for flag management and rollout procedures.
  • Team training: how to add new flags and remove old ones.
  • Technical support for the first month after implementation.
  • Access to our monitoring dashboard for the first 3 months.
  • A detailed report with metrics and recommendations.
  • Up to 2 revision rounds to ensure satisfaction.

Timeframes

Firebase Remote Config with basic toggles: 0.5–1 day. LaunchDarkly with targeting rules and percentage rollout: 1–2 days. Price is calculated individually. Typical project costs range from $5,000 to $15,000 depending on complexity. By using feature flags, our clients save up to 50% on rollout risks, with potential savings of $100,000 in avoided downtime. Over 100 flags are managed in enterprise projects, and response time is reduced by 95%.

Contact us for a consultation—we'll evaluate your project and propose an implementation plan. Order feature flag implementation today—it will protect your release process from costly downtime.

Mobile App Analytics: Firebase, Amplitude, AppsFlyer and Attribution

Our team regularly encounters projects where analytics is already "set up" but yields no real insights. A typical example is a startup with 50k DAU: tracking dozens of events without a single answer to the question "why don't users reach payment?". In two weeks we built a basic funnel and found that 70% of users drop off at the phone number verification screen. After fixing the bug, retention increased by 12%. The takeaway: analytics should start with specific questions, not tracking everything indiscriminately.

Why Event Taxonomy is the Foundation of Mobile App Analytics?

Firebase Analytics, Amplitude, Mixpanel — technically similar. The difference lies in what you put into them. A common mistake: events like screen_view, button_tap_1, button_tap_2 without context. A month later, no one remembers what button_tap_2 means.

Proper taxonomy: object + action + context. product_viewed, checkout_started, payment_completed with parameters product_id, category, price, source. This allows building funnels, cohort analysis, and retention without additional tracking.

We document the naming convention in a tracking plan — a document (Google Sheet or Amplitude Data Catalog) describing every event, its parameters, and triggering conditions. The tracking plan is synced with the analytics team before development begins, not after. This approach ensures that data remains interpretable months later and doesn't become a dump. Experience from 50+ projects confirms: without a tracking plan, analytics maintenance costs increase 2-3 times due to rework.

What Should You Choose for Mobile App Analytics: Firebase, Amplitude, or Mixpanel?

The table below highlights key differences between the three popular platforms. Choice depends on budget, traffic, and tasks.

Criteria Firebase Analytics Amplitude Mixpanel
Free limit Unlimited (Spark plan) Up to 10M events/month Up to 1K MTU/month (Special)
Data latency Up to 24 hours (standard) Minutes (real-time) Minutes (real-time)
Funnels and cohorts Basic funnels, limited count Deep funnels, Journeys, cohorts Funnels, Retention, Insights
BigQuery export Yes (free, raw data) Yes (subscription) Yes (Enterprise)
Session Replay No Yes (iOS/Android SDK) No
Ad integration Google Ads (native) Via Universal Links Via partners

Firebase Analytics — free, deep integration with Google Ads, BigQuery export for raw data. Limitations: data latency up to 24 hours, limited funnels. For startups with Google Ads traffic, it's the first choice.

Amplitude — product analytics focused on cohorts and user journeys. Journeys (formerly Pathfinder) shows actual paths between events — not assumed funnels but real routes. Session Replay records sessions for UX analysis. The free tier up to 10M events/month is enough for most products at launch.

Mixpanel — close to Amplitude, stronger in real-time segmentation. Insights, Funnels, Retention cover 90% of product analysts' tasks.

How to Solve Multi-Channel Attribution with AppsFlyer?

Knowing where a user came from is a separate task. Firebase Attribution works only within the Google ecosystem. For multi-channel attribution (Facebook Ads, TikTok, Apple Search Ads, programmatic), an MMP (Mobile Measurement Partner) is needed.

AppsFlyer is the market leader. OneLink — universal deep link working on iOS and Android, correctly attributing installs from any channel. Protect360 — built-in fraud protection (fake installs, click injection on Android). Adjust and Branch are competitors with similar features. Branch excels in deep linking; Adjust is popular in gaming.

According to Apple, with iOS 14.5, apps must obtain user permission via ATT before collecting IDFA for tracking. AppsFlyer uses probabilistic matching (IP + user agent + timing) for these users — accuracy is lower but better than nothing. SKAdNetwork and Privacy Preserving Attribution provide aggregated data from Apple with a 24-72 hour delay.

How to Set Up Crash Analytics to Not Miss Bugs?

Firebase Crashlytics is the standard for crash reporting. It automatically groups crashes by stack trace, shows affected users %, and sends velocity alerts when crash rate increases by more than 10% per hour.

Important: symbolication. On iOS, .dSYM files must be automatically uploaded with each build — via Fastlane upload_symbols_to_crashlytics or Xcode Cloud built-in. Without symbols, crashes in Crashlytics appear as memory addresses. This happens more often than expected when switching to a new CI — in one project with 500k users, we found that 40% of crashes remained unsymbolicated due to a missing CI/CD step. After automation, bug response time dropped from 3 hours to 15 minutes.

For React Native and Flutter, @sentry/react-native and sentry_flutter provide additional context: breadcrumbs, network requests before the crash, Redux/Provider state.

Below is a comparison of popular crash analytics tools to choose according to your needs.

Criteria Firebase Crashlytics Sentry Instabug
Free limit Unlimited (Spark) 5k events/month 250 MAU
Grouping By stack trace + parameters By fingerprint By stack trace + metadata
Symbolication Automatic (via file) Automatic (via CLI) Automatic
Velocity alerts Yes (by % change) Yes (by count) Yes (by threshold)
Extra context Logs, Keys, Custom Keys Breadcrumbs, User, Tags User steps, network requests
Price Free (in Firebase) Paid plans available Paid plans available

Environment Setup

Three environments with separate Firebase projects: dev, staging, production. Mixing analytics from test sessions and production is a common mistake that skews all metrics. On iOS via GoogleService-Info.plist per scheme, on Android via google-services.json in each flavor folder.

Timelines: basic analytics with Firebase + Crashlytics — 3-5 days. Full tracking plan + Amplitude/Mixpanel with funnels and cohorts — 2-3 weeks. Attribution via AppsFlyer with deep linking and fraud protection — 1-2 weeks. Cost is calculated individually based on integration complexity.

What Is Included in Our Work

As part of analytics implementation, we provide:

  • Development and approval of a tracking plan with product and marketing teams.
  • SDK integration (Firebase, Amplitude, Mixpanel, AppsFlyer) considering your stack (Swift/Kotlin/Flutter/React Native).
  • Setup of funnels, cohorts, dashboards, and alerts.
  • Automation of symbolication and .dSYM upload via Fastlane.
  • Documentation of events and parameters.
  • Team training on the analytics platform.
  • Two weeks of post-release support and tracking adjustments.

Our experience: 7 years of analytics implementation and over 80 successful projects in mobile development. We guarantee data correctness and transparency at every stage.

Contact us for a consultation on setting up analytics for your app. Request an audit of your current analytics — and we will show you which metrics you are losing.