Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Dzięki Remote Configwdrażaniu wersji możesz bezpiecznie i stopniowo udostępniać nowe funkcje i aktualizacje aplikacji. W przypadku wdrażania wersji możesz kontrolować udostępnianie nowych funkcji aplikacji, kierując je do określonych grup użytkowników. Podobnie jak w przypadku testów A/B, w przypadku wdrażania grupa, w której włączono funkcję, jest porównywana z równie liczną grupą kontrolną, aby uzyskać miarodajne wyniki.
Krok 1. Zintegruj aplikację z Remote Config, Crashlytics i Google Analytics
Zanim zaczniesz korzystać z Remote Configwdrażania etapowego, aby stopniowo udostępniać użytkownikom nowe funkcje, musisz zintegrować aplikację ze Zdalną konfiguracją FirebaseCrashlytics i Google Analytics.
Aby dodać do aplikacji Remote Config i Analytics oraz utworzyć Remote Config, postępuj zgodnie z instrukcjami w artykule Wprowadzenie do Zdalnej konfiguracji. Musisz mieć pewność, że używasz Firebase BoM w wersji 32.6.0 lub nowszej (Remote Configpakiet SDK w wersji 21.6.0 lub nowszej).
Aby dodać Crashlytics do aplikacji, postępuj zgodnie z instrukcjami w artykule Wprowadzenie doCrashlytics.
Pamiętaj, aby wdrożyć pakiet SDK Firebase na iOS w wersji 10.24.0 lub nowszej.
Aby uzyskać optymalną wydajność, zalecamy wdrożenie w aplikacjach zdalnej konfiguracji w czasie rzeczywistym, aby mieć pewność, że wartości wdrożenia są pobierane natychmiast po opublikowaniu.
Krok 2. Skonfiguruj wdrożenie w konsoli Firebase
Gdy w aplikacji zaimplementujesz Remote Config, Crashlytics i Analytics, możesz utworzyć wdrożenie w konsoli Firebase.
W konsoli Firebase kliknij Remote Config, a potem otwórz Wdrażanie.
Kliknij Utwórz wdrożenie.
W polu Parametr wybierz istniejący parametr lub utwórz nowy, który ma być aktualizowany w ramach wdrażania, a następnie kliknij Dalej.
Utwórz lub wybierz warunek kierowania. Ten warunek określa, które urządzenia zostaną dodane do grup wdrożeniowych i kontrolnych. Więcej informacji o tym, jak użytkownicy są przypisywani do grup wdrożeniowych i kontrolnych, znajdziesz w artykule Omówienie członkostwa w grupach wdrożeniowych.
Kliknij Dalej, a w polu Wartość włączona dodaj wartość, którą chcesz udostępnić użytkownikom.
W polu Losowy odsetek wpisz łączny odsetek urządzeń, które powinny otrzymać włączoną wartość. Firebase przypisuje grupę kontrolną o takiej samej wielkości, aby zapewnić dokładne porównanie wyników podczas pomiaru skuteczności włączonej funkcji. Dlatego ta wartość musi wynosić 50% lub mniej, chyba że wdrażasz funkcję w 100% przypadków. Pamiętaj, że ta wartość jest ograniczona przez Twoje warunki. Jeśli np. skonfigurujesz warunek, który będzie stosowany tylko w wersji 2.0 aplikacji, a 30% użytkowników korzysta z tej wersji, ustawienie tej wartości na 50% będzie oznaczać, że wartość wdrożenia otrzyma 15% wszystkich użytkowników.
Kliknij Dalej i podaj nazwę oraz opcjonalnie opis, a następnie kliknij Zapisz.
Aby rozpocząć wdrażanie, kliknij Opublikuj zmiany, sprawdź zmienione parametry, a potem ponownie kliknij Opublikuj zmiany.
Wdrożenie powinno się rozpocząć, a wyniki powinny być widoczne niemal natychmiast.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-25 UTC."],[],[],null,["\u003cbr /\u003e\n\nAndroid iOS+ \n\nWith Remote Config rollouts, you can safely and gradually release new features and updates\nto your app. With rollouts, you can control the release of new app features by\ntargeting specific user groups. Like A/B testing, in a rollout, the enabled\ngroup is measured against an equal sized control group for meaningful\ncomparisons in the results.\n\nStep 1: Instrument your App with Remote Config, Crashlytics, and Google Analytics\n\nBefore you can start using Remote Config rollouts to gradually launch new features to your\nusers, your app should be instrumented with Firebase Remote Config,\nCrashlytics, and Google Analytics.\n\n1. Follow the instructions in [Get started with Remote\n Config](/docs/remote-config/get-started) to add Remote Config and Analytics to your app and create a Remote Config template. You'll need to ensure that you're using Firebase BoM v32.6.0+ (Remote Config SDK v21.6.0+).\n2. Follow the instructions in [Get started with\n Crashlytics](/docs/crashlytics/get-started) to add Crashlytics to your app. Be sure to implement Firebase iOS SDK v10.24.0+.\n\nFor optimal performance, we recommend implementing [real-time Remote\nConfig](/docs/remote-config/real-time) in your apps to ensure that rollout\nvalues are fetched as soon as they're published.\n\nStep 2: Configure a rollout in the Firebase console\n\nAfter your app is instrumented with Remote Config, Crashlytics, and\nAnalytics, you can use the Firebase console to create a rollout.\n\n1. In the **Firebase console** , navigate to **Remote Config** , then open [**Rollouts**](//console.firebase.google.com/project/_/config/rollouts).\n2. Click **Create rollout**.\n3. In the **Parameter** field, select an existing parameter or create a new parameter to update with your rollout, then click **Next**.\n4. Create or select a **Target condition** . This condition defines which\n devices will be added to the rollout-enabled and control groups. See\n [Understand rollout group\n membership](/docs/remote-config/rollouts/about#understand-group-membership)\n for more information about how rollout-enabled and control groups are\n assigned to users.\n\n | **Tip:** For successful rollout results, we recommend choosing a condition that targets a single app. This will make it easier to compare results, in both Remote Config and Crashlytics, across the Control and Enabled groups.\n5. Click **Next** , and in the **Enabled value** field, add the value you want\n to release to your users.\n\n6. In the **Random percentage** field, enter the total percentage of devices\n that should receive the enabled value. Because Firebase assigns an\n equal-sized control group to ensure an accurate comparison of results when\n measuring the performance of your enabled feature, this value must be 50% or\n less, unless you roll out to 100%. Note that this value is bound by your\n conditions: for example, if you configured a condition that only rolled out\n to version 2.0 of your app, and 30% of your user base have adopted v2.0,\n setting this value to 50% would mean that 15% of your total user base would\n get the rollout value.\n\n7. Click **Next** and provide a **Name** and, optionally, a **Description** ,\n then click **Save**.\n\n8. To start the rollout, click **Publish changes** , review the changed\n parameters, then click **Publish changes** again.\n\nYour rollout should begin and you should be able to view results almost\nimmediately.\n\nNext steps\n\n- Learn more about rollout results at [Understand rollout\n results](/docs/remote-config/rollouts/about#understand-results)."]]