Masz inne wyzwania lub nie widzisz swojego problemu opisanego poniżej? Zgłoś błąd lub poproś o funkcję i dołącz do dyskusji na temat przepełnienia stosu .
Projekty Firebase i aplikacje Firebase
Co to jest projekt Firebase?
Projekt to kontener dla aplikacji na platformach Apple, Android i internetowych. Obsługuje udostępnianie funkcji, takich jak baza danych, konfiguracja i powiadomienia, między aplikacjami wieloplatformowymi.
Do jednego projektu należy dodać warianty Apple, Android i aplikacji internetowych. Możesz używać wielu projektów do obsługi wielu środowisk, takich jak programowanie, przemieszczanie i produkcja.
Co to jest organizacja Google Cloud?
Organizacja Google Cloud to kontener dla projektów Google Cloud (w tym projektów Firebase). Ta hierarchia umożliwia lepszą organizację, zarządzanie dostępem i kontrolę projektów Google Cloud i Firebase. Aby uzyskać więcej informacji, zobacz Tworzenie i zarządzanie organizacjami .
Jak dodać Firebase do istniejącego projektu Google Cloud?
Możesz zarządzać istniejącymi projektami za pomocą Google Cloud Console lub konsoli interfejsów API Google . Domyślnie te projekty są widoczne w konsoli Firebase , ale nie są uznawane za projekty Firebase.
Aby dodać Firebase do istniejącego projektu Google Cloud, kliknij Dodaj projekt na stronie docelowej konsoli Firebase , a następnie wybierz swój projekt w menu Nazwa projektu .
Ile projektów mogę mieć na jednym koncie?
- Plan cenowy Spark — Twój limit projektu jest ograniczony do niewielkiej liczby projektów (zwykle około 5-10).
- Plan cenowy Blaze — przydział projektu na konto Cloud Billing znacznie wzrasta, o ile Twoje konto Cloud Billing ma dobrą opinię.
Limit limitu projektu rzadko jest problemem dla większości programistów, ale w razie potrzeby możesz poprosić o zwiększenie limitu projektu .
Pamiętaj, że całkowite usunięcie projektu wymaga 30 dni i wlicza się do limitu, dopóki nie zostanie całkowicie usunięty.
Ile aplikacji Firebase mogę mieć w projekcie Firebase?
Projekt Firebase to kontener dla aplikacji Firebase na urządzenia Apple, Android i internet. Firebase ogranicza łączną liczbę aplikacji Firebase w projekcie Firebase do 30.
Po tej liczbie wydajność zaczyna spadać (szczególnie w przypadku Google Analytics) i ostatecznie, przy większej liczbie aplikacji, niektóre funkcje produktu przestają działać. Ponadto dodanie aplikacji Firebase do projektu powoduje utworzenie co najmniej jednego podstawowego identyfikatora klienta OAuth 2.0. Istnieje limit około 30 identyfikatorów klientów, które można utworzyć w ramach jednego projektu.
Upewnij się, że wszystkie aplikacje Firebase w jednym projekcie Firebase są wariantami platformy tej samej aplikacji z perspektywy użytkownika końcowego. Na przykład, jeśli opracujesz aplikację z białą etykietą, każda niezależnie oznaczona aplikacja powinna mieć własny projekt Firebase, ale wersje tej etykiety dla urządzeń Apple i Android mogą znajdować się w tym samym projekcie. Więcej szczegółowych wskazówek znajdziesz w naszych ogólnych sprawdzonych metodach konfigurowania projektów Firebase .
W rzadkich przypadkach, gdy Twój projekt wymaga więcej niż 30 aplikacji, możesz poprosić o zwiększenie limitu aplikacji. Twój projekt musi być objęty planem cenowym Blaze, aby wysłać to żądanie. Odwiedź konsolę Google Cloud, aby złożyć wniosek i poddać go ocenie. Dowiedz się więcej o zarządzaniu limitami w dokumentacji Google Cloud.
Co się stanie, jeśli oznaczę projekt jako środowisko „produkcyjne”?
W konsoli Firebase możesz otagować swoje projekty Firebase za pomocą ich typu środowiska: produkcyjnego lub nieokreślonego (nieprodukcyjnego).
Oznaczenie projektu jako typu środowiska nie ma wpływu na działanie projektu Firebase ani jego funkcji. Jednak tagowanie może pomóc Tobie i Twojemu zespołowi w zarządzaniu różnymi projektami Firebase w cyklu życia aplikacji.
Jeśli oznaczysz swój projekt jako środowisko produkcyjne, dodamy do projektu w konsoli Firebase jaskrawo kolorowy tag Prod , przypominając, że wszelkie zmiany mogą wpłynąć na powiązane aplikacje produkcyjne. W przyszłości możemy dodać więcej funkcji i zabezpieczeń dla projektów Firebase oznaczonych jako środowiska produkcyjne.
Aby zmienić typ środowiska projektu Firebase, przejdź do settings projektu > Ogólne , a następnie na karcie Twój projekt w obszarze Środowisko kliknij edit , aby zmienić typ środowiska.
Gdzie mogę znaleźć identyfikator aplikacji dla mojej aplikacji Firebase?
W konsoli Firebase przejdź do settings projektu . Przewiń w dół do karty Twoje aplikacje , a następnie kliknij żądaną aplikację Firebase, aby wyświetlić informacje o aplikacji, w tym jej identyfikator aplikacji .
Oto kilka przykładowych wartości identyfikatora aplikacji:
- Aplikacje Firebase na iOS:
1:1234567890:ios:321abc456def7890
- Aplikacje Firebase na Androida:
1:1234567890:android:321abc456def7890
- Aplikacje internetowe Firebase:
1:1234567890:web:321abc456def7890
Jakie są wymagania wstępne połączenia Play/AdMob/AdWords/BigQuery z moim projektem lub aplikacją Firebase?
- Do połączenia konta Google Play potrzebne są:
- Jedna z następujących ról Firebase: Właściciel lub Administrator Firebase
oraz - Jeden z następujących poziomów dostępu do Google Play: Właściciel konta lub Administrator
- Jedna z następujących ról Firebase: Właściciel lub Administrator Firebase
- Aby połączyć aplikację AdMob , musisz być zarówno właścicielem projektu Firebase, jak i administratorem AdMob.
- Aby połączyć konto AdWords , musisz być zarówno właścicielem projektu Firebase, jak i administratorem AdWords.
- Aby połączyć projekt BigQuery , musisz być właścicielem projektu Firebase.
Jakie powiadomienia o otwartym kodzie źródłowym powinienem uwzględnić w mojej aplikacji?
Na platformach Apple pod Firebase zawiera plik NOTICES, który zawiera odpowiednie wpisy. Pakiet Firebase Android SDK zawiera Activity
pomocnika do wyświetlania informacji o licencji.
Uprawnienia i dostęp do projektów Firebase
Jak przypisać członkowi projektu rolę, taką jak rola właściciela?
Aby zarządzać rolami przypisanymi do każdego członka projektu, musisz być właścicielem projektu Firebase (lub mieć przypisaną rolę z uprawnieniem resourcemanager.projects.setIamPolicy
).
Oto miejsca, w których możesz przypisywać i zarządzać rolami:
- Konsola Firebase oferuje uproszczony sposób przypisywania ról członkom projektu na karcie Użytkownicy i uprawnienia w settings > Ustawienia projektu . W konsoli Firebase możesz przypisać dowolne podstawowe role (właściciel, edytujący, przeglądający), role administratora/przeglądającego Firebase lub dowolne wstępnie zdefiniowane role kategorii produktów w Firebase .
- Konsola Google Cloud oferuje rozbudowany zestaw narzędzi do przypisywania ról członkom projektu na stronie uprawnień . W Cloud Console możesz także tworzyć niestandardowe role i zarządzać nimi , a także przyznawać kontom usługi dostęp do swojego projektu.
Pamiętaj, że w Google Cloud Console członkowie projektu są nazywani podmiotami głównymi .
Jeśli właściciel Twojego projektu nie może już wykonywać zadań właściciela (na przykład osoba opuściła Twoją firmę), a Twój projekt nie jest zarządzany przez organizację Google Cloud (patrz następny akapit), możesz skontaktować się z pomocą techniczną Firebase , aby uzyskać przypisany tymczasowy Właściciel.
Pamiętaj, że jeśli projekt Firebase jest częścią organizacji Google Cloud, może nie mieć właściciela. Jeśli nie możesz znaleźć właściciela projektu Firebase, skontaktuj się z osobą zarządzającą organizacją Google Cloud, aby przypisać właściciela do projektu.
Jak znaleźć właściciela projektu Firebase?
Możesz wyświetlić członków projektu i ich role w następujących miejscach:
- Jeśli masz dostęp do projektu w konsoli Firebase, możesz wyświetlić listę członków projektu, w tym właścicieli, na stronie Użytkownicy i uprawnienia w konsoli Firebase.
- Jeśli nie masz dostępu do projektu w konsoli Firebase, sprawdź, czy masz dostęp do projektu w Google Cloud Console. Listę członków projektu, w tym właścicieli, możesz wyświetlić na stronie uprawnień w Google Cloud Console.
Jeśli właściciel Twojego projektu nie może już wykonywać zadań właściciela (na przykład osoba opuściła Twoją firmę), a Twój projekt nie jest zarządzany przez organizację Google Cloud (patrz następny akapit), możesz skontaktować się z pomocą techniczną Firebase , aby uzyskać przypisany tymczasowy Właściciel.
Pamiętaj, że jeśli projekt Firebase jest częścią organizacji Google Cloud, może nie mieć właściciela. Zamiast tego osoba zarządzająca Twoją organizacją Google Cloud może wykonywać wiele zadań, które może wykonać Właściciel. Aby jednak wykonać kilka zadań dotyczących właściciela (takich jak przypisywanie ról lub zarządzanie usługami Google Analytics), administrator może być zmuszony do przypisania sobie rzeczywistej roli właściciela do wykonywania tych zadań. Jeśli nie możesz znaleźć właściciela projektu Firebase, skontaktuj się z osobą zarządzającą organizacją Google Cloud, aby przypisać właściciela do projektu.
Dlaczego lub kiedy powinienem przypisać członkowi projektu rolę właściciela?
Aby zapewnić prawidłowe zarządzanie projektem Firebase, musi on mieć właściciela . Właściciel projektu to osoba, która może wykonywać kilka ważnych czynności administracyjnych (takich jak przypisywanie ról i zarządzanie usługami Google Analytics), a zespół pomocy Firebase może realizować żądania administracyjne tylko od zademonstrowanych właścicieli projektu.
Po skonfigurowaniu właścicieli projektu Firebase ważne jest, aby te przypisania były aktualne.
Pamiętaj, że jeśli projekt Firebase należy do organizacji Google Cloud, osoba zarządzająca organizacją Google Cloud może wykonywać wiele zadań, które może wykonywać właściciel. Jednak w przypadku kilku zadań dotyczących właściciela (takich jak przypisywanie ról lub zarządzanie usługami Google Analytics) może być konieczne przypisanie sobie przez administratora rzeczywistej roli właściciela w celu wykonania tych zadań.
Nie wydaje mi się, żebym miał projekt Firebase, ale dostałem e-maila na jego temat. Jak uzyskać dostęp do tego projektu?
Otrzymany e-mail powinien zawierać link do otwarcia projektu Firebase. Kliknięcie linku w e-mailu powinno otworzyć projekt w konsoli Firebase.
Jeśli nie możesz otworzyć projektu w linku, upewnij się, że jesteś zalogowany w Firebase przy użyciu tego samego konta Google, na które otrzymałeś e-maila o projekcie. Możesz logować się i wylogowywać z konsoli Firebase za pomocą swojego awatara konta w prawym górnym rogu konsoli.
Pamiętaj, że jeśli jesteś administratorem organizacji Google Cloud, możesz otrzymywać powiadomienia o zmianach w projektach Firebase w Twojej organizacji. Możesz jednak nie mieć wystarczających uprawnień, aby otworzyć projekt Firebase. W takich przypadkach najprostszym rozwiązaniem jest przypisanie sobie rzeczywistej roli Właściciela , aby otworzyć projekt i wykonać wymagane czynności. Dowiedz się więcej o tym , dlaczego i kiedy przypisywać rolę właściciela .
Platformy i frameworki
Odwiedź strony dotyczące rozwiązywania problemów i często zadawanych pytań dla poszczególnych platform, aby uzyskać przydatne wskazówki i odpowiedzi, aby uzyskać więcej często zadawanych pytań.
Konsola Firebase
Jakie przeglądarki obsługują dostęp do konsoli Firebase?
Konsola Firebase jest dostępna z najnowszych wersji popularnych przeglądarek komputerowych, takich jak Chrome, Firefox, Safari i Edge. Przeglądarki mobilne nie są obecnie w pełni obsługiwane.
Mogę załadować konsolę Firebase, ale dlaczego nie mogę znaleźć mojego projektu Firebase ani uzyskać do niego dostępu?
Postępuj zgodnie z instrukcjami rozwiązywania problemów w tym FAQ, jeśli masz którykolwiek z następujących problemów:
- Konsola Firebase zwraca stronę błędu informującą o tym, że Twój projekt może nie istnieć lub że nie masz do niego dostępu.
- Konsola Firebase nie uwzględnia Twojego projektu na liście projektów, do których masz dostęp (na przykład na listach rozwijanych).
- Konsola Firebase nie wyświetla Twojego projektu, nawet jeśli wpiszesz jego identyfikator lub nazwę projektu w polu wyszukiwania konsoli.
Najpierw spróbuj uzyskać dostęp do swojego projektu, odwiedzając bezpośrednio adres URL projektu. Użyj następującego formatu:
https://console.firebase.google.com/project/ PROJECT-ID /overview
Jeśli nadal nie możesz uzyskać dostępu do projektu lub otrzymujesz błędy uprawnień, sprawdź następujące elementy:
- Upewnij się, że jesteś zalogowany w Firebase przy użyciu tego samego konta Google, które ma dostęp do projektu. Możesz logować się i wylogowywać z konsoli Firebase za pomocą swojego awatara konta w prawym górnym rogu konsoli.
- Upewnij się, że w projekcie jest włączony interfejs Firebase Management API .
- Upewnij się, że masz przypisaną jedną z podstawowych ról uprawnień (właściciel, edytujący, przeglądający) lub rolę, która ma uprawnienia związane z Firebase, na przykład predefiniowaną rolę Firebase . Swoje role możesz wyświetlić na stronie uprawnień w Google Cloud Console.
- Jeśli Twój projekt należy do organizacji Google Cloud, możesz potrzebować dodatkowych uprawnień, aby zobaczyć projekt w konsoli Firebase. Skontaktuj się z osobą zarządzającą organizacją Google Cloud, aby przyznać Ci odpowiednią rolę do wyświetlania projektu, na przykład rolę przeglądarki.
Jeśli żaden z powyższych kroków rozwiązywania problemów nie pozwala znaleźć projektu ani uzyskać do niego dostępu, skontaktuj się z pomocą techniczną Firebase .
Jeśli sama konsola Firebase nie ładuje się lub wyświetla błędy przeglądarki, sprawdź Dlaczego konsola Firebase nie ładuje się dla mnie? dodatkowe kroki rozwiązywania problemów.
Dlaczego konsola Firebase nie ładuje się dla mnie?
Postępuj zgodnie z instrukcjami rozwiązywania problemów w tym FAQ, jeśli masz którykolwiek z następujących problemów:
- Strona w konsoli Firebase nigdy się nie ładuje.
- Dane na stronie nie ładują się zgodnie z oczekiwaniami.
- Podczas ładowania konsoli Firebase pojawiają się komunikaty o błędach przeglądarki.
Wypróbuj następujące rozwiązania:
- Sprawdź wiersz Konsola w Panelu stanu Firebase pod kątem ewentualnych przerw w działaniu usługi.
- Upewnij się, że używasz obsługiwanej przeglądarki .
- Spróbuj załadować konsolę Firebase w oknie incognito lub prywatnym.
- Wyłącz wszystkie rozszerzenia przeglądarki.
- Sprawdź, czy połączenie sieciowe nie jest blokowane przez blokowanie reklam, oprogramowanie antywirusowe, serwer proxy, zaporę sieciową lub inne oprogramowanie.
- Spróbuj załadować konsolę Firebase przy użyciu innej sieci lub urządzenia.
- Jeśli używasz przeglądarki Chrome, sprawdź, czy w Konsoli Narzędzi dla programistów nie ma błędów .
Jeśli żaden z powyższych kroków nie rozwiąże problemu, skontaktuj się z pomocą techniczną Firebase .
Jak określany jest język mojej konsoli Firebase?
Ustawienie języka konsoli Firebase jest oparte na języku wybranym w ustawieniach konta Google .
Aby zmienić preferencje językowe, zobacz Zmiana języka .
Konsola Firebase obsługuje następujące języki:
- język angielski
- brazylijski portugalski
- Francuski
- Niemiecki
- indonezyjski
- język japoński
- koreański
- Rosyjski
- Chiński uproszczony
- hiszpański
- Tradycyjny chiński
Jakie role i uprawnienia obsługuje konsola Firebase?
Konsola Firebase i Google Cloud Console korzystają z tych samych podstawowych ról i uprawnień. Dowiedz się więcej o rolach i uprawnieniach w dokumentacji Firebase IAM .
Firebase obsługuje podstawowe (podstawowe) role właściciela, edytującego i przeglądającego:
- Właściciel projektu może dodawać do projektu innych członków, konfigurować integracje (łączenia projektów z usługami takimi jak BigQuery czy Slack) i ma pełny dostęp do edycji projektu.
- Edytor projektu ma pełny dostęp do edycji projektu.
- Przeglądarka projektu ma dostęp tylko do odczytu projektu. Pamiętaj, że konsola Firebase obecnie nie ukrywa ani nie wyłącza kontrolek interfejsu edycji przed przeglądającymi projekt, ale te operacje zakończą się niepowodzeniem w przypadku członków projektu, którym przypisano rolę przeglądającego.
Firebase obsługuje również:
- Wstępnie zdefiniowane role Firebase — wyselekcjonowane role specyficzne dla Firebase, które zapewniają bardziej szczegółową kontrolę dostępu niż podstawowe role właściciela, edytującego i przeglądającego.
- Role niestandardowe — w pełni dostosowane role uprawnień, które tworzysz w celu dostosowania zestawu uprawnień spełniających określone wymagania Twojej organizacji.
cennik
Jakie produkty są płatne? Które są bezpłatne?
Płatne produkty infrastrukturalne Firebase to baza danych czasu rzeczywistego, pamięć masowa w chmurze dla Firebase, funkcje w chmurze, hosting, laboratorium testowe i uwierzytelnianie przez telefon. Oferujemy bezpłatny poziom dla wszystkich tych funkcji.
Firebase oferuje też wiele bezpłatnych usług: Analytics, Cloud Messaging, kompozytor powiadomień, Zdalna konfiguracja, indeksowanie aplikacji, linki dynamiczne i raporty o awariach. Możesz korzystać z nieograniczonej ilości dowolnego z tych produktów we wszystkich planach, w tym w naszym bezpłatnym planie Spark. Ponadto wszystkie funkcje uwierzytelniania poza uwierzytelnianiem telefonu są bezpłatne.
Czy Firebase oferuje bezpłatne kredyty na okres próbny na płatne produkty?
Płatnych usług Firebase można używać w ramach bezpłatnej wersji próbnej Google Cloud . Nowi użytkownicy Google Cloud i Firebase mogą skorzystać z 90-dniowego okresu próbnego, który obejmuje 300 USD darmowych środków Cloud Billing, aby poznać i ocenić produkty i usługi Google Cloud i Firebase.
W okresie bezpłatnego okresu próbnego Google Cloud otrzymasz bezpłatne konto rozliczeniowe Cloud. Każdy projekt Firebase, który korzysta z tego konta rozliczeniowego, będzie objęty abonamentem Blaze podczas bezpłatnego okresu próbnego.
Nie martw się, skonfigurowanie tego konta rozliczeniowego Cloud Free Trial nie umożliwia nam obciążania Cię opłatami. Opłaty nie są naliczane, chyba że wyraźnie włączysz rozliczenia, uaktualniając konto rozliczeniowe Cloud Free Trial do konta płatnego. Możesz przejść na konto płatne w dowolnym momencie okresu próbnego. Po uaktualnieniu nadal możesz wykorzystać pozostałe kredyty (w okresie 90 dni).
Po wygaśnięciu bezpłatnego okresu próbnego musisz zmienić projekt na plan cenowy Spark lub skonfigurować plan cenowy Blaze w konsoli Firebase, aby nadal korzystać z projektu Firebase.
Dowiedz się więcej o bezpłatnej wersji próbnej Google Cloud .
Skąd mam wiedzieć, który plan cenowy jest dla mnie odpowiedni?
Plan cenowy Spark
Nasz plan Spark to świetne miejsce do tworzenia aplikacji bez żadnych kosztów. Otrzymasz wszystkie bezpłatne funkcje Firebase (Analytics, kompozytor powiadomień, Crashlytics itd.) oraz duże ilości płatnych funkcji infrastruktury. Jeśli jednak przekroczysz zasoby planu Spark w miesiącu kalendarzowym, Twoja aplikacja zostanie wyłączona na pozostałą część tego miesiąca. Ponadto funkcje Google Cloud nie są dostępne podczas korzystania z planu Spark.
Plan cenowy Blaze
Nasz plan Blaze jest przeznaczony dla aplikacji produkcyjnych. Plan Blaze umożliwia również rozszerzenie aplikacji o płatne funkcje Google Cloud. Płacisz tylko za zasoby, które zużywasz, co pozwala na skalowanie wraz z zapotrzebowaniem. Staramy się, aby ceny naszych planów Blaze były konkurencyjne w stosunku do wiodących w branży dostawców usług w chmurze.
Jak mogę monitorować wykorzystanie i rozliczenia?
Możesz śledzić wykorzystanie zasobów projektu w konsoli Firebase na dowolnym z następujących pulpitów nawigacyjnych:
- Ogólny panel wykorzystania i rozliczeń na poziomie projektu
- Pulpit nawigacyjny uwierzytelniania (w szczególności dla wystąpień uwierzytelniania telefonu)
- Panel użycia Cloud Firestore
- Pulpit nawigacyjny korzystania z Cloud Functions
- Pulpit nawigacyjny użycia Cloud Storage
- Pulpit nawigacyjny użytkowania hostingu
- Pulpit nawigacyjny użycia bazy danych w czasie rzeczywistym
Co się stało z planem cenowym Flame?
W styczniu 2020 r. plan cenowy Flame (25 USD miesięcznie dodatkowego limitu) został usunięty jako opcja dla nowych rejestracji. Istniejący użytkownicy planu otrzymali okres karencji na migrację swoich projektów z planu Flame. W lutym 2022 r. pozostałe projekty z planu cenowego Flame zostały obniżone do planu cenowego Spark.
Odpowiednio,
- Istniejące projekty planów Spark i Blaze oraz wszelkie nowe projekty nie mogą już przełączać się na plan Flame ani rejestrować się w nim.
- Jeśli przeniosłeś istniejący projekt planu Flame do innego planu cenowego, projekt nie może powrócić do planu Flame.
- Projekty obniżone do planu Spark można uaktualnić do planu Blaze, aby wznowić dodatkowe płatne usługi.
- Odniesienia do planu Flame zostały usunięte z dokumentacji.
Masz więcej pytań na temat przejścia na emeryturę z planu Flame'a? Przeczytaj niektóre z dodatkowych często zadawanych pytań poniżej.
Chcesz poznać inne plany cenowe oferowane przez Firebase? Odwiedź naszą stronę z cenami Firebase ! Jeśli chcesz rozpocząć przenoszenie istniejących projektów do innego planu cenowego, możesz to zrobić w konsoli Firebase swojego projektu.
Dodatkowe często zadawane pytania dotyczące przejścia na emeryturę planu Flame
Mam projekt, proces lub model biznesowy, który opiera się na stałym koszcie Firebase. Co powinienem zrobić?
Zarejestruj się w planie cenowym Blaze i pamiętaj o ustawieniu alertów budżetowych .
Czy mogę otrzymać specjalny dostęp do tworzenia nowych projektów planu Flame'a?
Nie, Firebase nie oferuje specjalnego dostępu dla projektów, na które można się przełączyć lub zarejestrować się w planie Flame.
Zmieniłem mój projekt planu Flame'a na inny plan cenowy. Jak mogę to zmienić z powrotem?
Przełączenie na plan Flame nie jest już możliwe. Aby uzyskać dostęp do usług świadczonych przez plan Flame, upewnij się, że korzystasz z planu cenowego Blaze i rozważ ustawienie alertów budżetowych dla swojego projektu.
Mój projekt został automatycznie przełączony na inny plan cenowy w ramach wycofania planu Flame. Co powinienem zrobić?
Jeśli Twój projekt wymaga dodatkowego przydziału poza planem Spark, musisz uaktualnić swój projekt do planu cenowego Blaze.
Dlaczego plan Flame zostaje wycofany?
Z biegiem lat zaobserwowaliśmy spadek korzystania z planu Flame, a większość projektów korzystających z planu nie zużywa jego pełnej wartości. Utrzymanie tego planu cenowego jest generalnie nieopłacalne i uważamy, że moglibyśmy lepiej służyć wszystkim, gdyby zasoby zostały przeznaczone na inne inicjatywy Firebase.
Czym różni się bezpłatne użycie w planie Blaze od bezpłatnego użycia w planie Spark?
Bezpłatne wykorzystanie w abonamencie Blaze jest naliczane codziennie. Limity użytkowania różnią się również od planu Spark dla Cloud Functions, uwierzytelniania telefonu i laboratorium testowego.
W przypadku Cloud Functions bezpłatne wykorzystanie planu Blaze jest obliczane na poziomie konta rozliczeniowego Cloud, a nie na poziomie projektu, i ma następujące ograniczenia:
- 2 mln wywołań/miesiąc
- 400K GB-sekund/miesiąc
- 200K sekund procesora/miesiąc
- 5 GB ruchu wychodzącego z sieci/miesiąc
W przypadku uwierzytelniania telefonicznego bezpłatne wykorzystanie planu Blaze jest obliczane co miesiąc.
W przypadku laboratorium testowego bezpłatne korzystanie z planu Blaze ma następujące ograniczenia:
- 30 fizycznych minut urządzenia/dzień
- 60 minut urządzenia wirtualnego/dzień
Czy przydział bezpłatnego użytkowania jest resetowany po zmianie planu z Spark na Blaze?
Bezkosztowe użycie z planu Spark jest uwzględnione w planie Blaze. Bezkosztowe użycie nie resetuje się po przejściu na plan Blaze.
Co to jest „jednoczesne połączenie z bazą danych”?
Jednoczesne połączenie jest równoważne jednemu urządzeniu mobilnemu, karcie przeglądarki lub aplikacji serwera podłączonej do bazy danych. Firebase nakłada sztywne ograniczenia na liczbę jednoczesnych połączeń z bazą danych Twojej aplikacji. Te ograniczenia mają na celu ochronę zarówno Firebase, jak i naszych użytkowników przed nadużyciami.
Limit planu Spark wynosi 100 i nie można go podnieść. Plany Flame i Blaze mają limit 200 000 jednoczesnych połączeń na bazę danych.
Ten limit nie jest taki sam, jak łączna liczba użytkowników Twojej aplikacji, ponieważ nie wszyscy użytkownicy łączą się jednocześnie. Jeśli potrzebujesz więcej niż 200 000 jednoczesnych połączeń, przeczytaj Skalowanie z wieloma bazami danych .
Co się stanie, jeśli przekroczę limity przestrzeni dyskowej lub pobierania w ramach planu Spark dla Bazy danych czasu rzeczywistego?
Aby zapewnić przewidywalną cenę, zasoby dostępne w planach Spark są ograniczone. Oznacza to, że jeśli przekroczysz dowolny limit planu w dowolnym miesiącu, Twoja aplikacja zostanie wyłączona, aby zapobiec dalszemu wykorzystaniu zasobów i dodatkowym opłatom.
Co się stanie, jeśli przekroczę limity równoczesnych połączeń planu Spark dla Bazy danych czasu rzeczywistego?
Gdy aplikacja osiągnie limit współbieżności w abonamencie Spark, wszelkie kolejne połączenia będą odrzucane do momentu zamknięcia niektórych istniejących połączeń. Aplikacja będzie nadal działać dla użytkowników, którzy są połączeni.
Co się stanie, jeśli przekroczę limity przesyłania, pobierania lub przechowywania w ramach planu Spark dla Cloud Storage?
Gdy przekroczysz limity Cloud Storage w projekcie w abonamencie Spark, wynik zależy od typu limitu, który przekroczysz:
- Jeśli przekroczysz limit przechowywanych GB , nie będziesz mógł przechowywać więcej danych w tym projekcie, chyba że usuniesz część przechowywanych danych lub uaktualnisz do planu, który zapewnia więcej miejsca lub nieograniczoną ilość miejsca.
- Jeśli przekroczysz limit pobranych GB , aplikacja nie będzie mogła pobrać większej ilości danych do następnego dnia (od północy czasu pacyficznego USA), chyba że przejdziesz na plan z mniej restrykcyjnymi limitami lub bez limitów.
- Jeśli przekroczysz limit operacji przesyłania lub pobierania , Twoja aplikacja nie będzie mogła przesyłać ani pobierać większej ilości danych do następnego dnia (od północy czasu pacyficznego USA), chyba że przejdziesz na plan z mniej restrykcyjnymi limitami lub bez granice.
Jak działa integracja Firebase z Google Cloud?
Firebase jest głęboko zintegrowany z Google Cloud . Projekty są współdzielone między Firebase i Google Cloud, więc projekty mogą mieć włączone usługi Firebase i Google Cloud. Możesz uzyskać dostęp do tego samego projektu z konsoli Firebase lub Google Cloud Console. Konkretnie:
- Niektóre produkty Firebase są obsługiwane bezpośrednio przez Google Cloud, np. Cloud Storage dla Firebase. Lista produktów obsługiwanych przez Google Cloud będzie z czasem się powiększać.
- Wiele Twoich ustawień, w tym współpracowników i informacje rozliczeniowe, jest udostępnianych przez Firebase i Google Cloud. Korzystanie z Firebase i Google Cloud jest naliczane na tym samym rachunku.
Ponadto po przejściu na abonament Blaze możesz bezpośrednio w projekcie Firebase korzystać ze światowej klasy infrastruktury jako usługi i interfejsów API Google Cloud w standardowych cenach Google Cloud . Możesz też eksportować dane z Google Cloud bezpośrednio do BigQuery w celu analizy. Więcej informacji znajdziesz w artykule Łączenie BigQuery z Firebase.
Korzystanie z Google Cloud z Firebase zapewnia wiele korzyści związanych z bezpieczeństwem, poprawą opóźnień i oszczędnością czasu (w porównaniu z innymi usługami w chmurze, które nie znajdują się w tej samej lokalizacji). Sprawdź witrynę Google Cloud, aby uzyskać więcej informacji.
Co stanie się z moim projektem Firebase, jeśli dodam lub usunę konta rozliczeniowe dla tego projektu w Google Cloud Console?
Jeśli konto rozliczeniowe w chmurze zostanie dodane do projektu w Google Cloud Console, ten sam projekt zostanie automatycznie uaktualniony do planu Firebase Blaze, jeśli ten projekt jest obecnie objęty planem Spark.
Z drugiej strony, jeśli istniejące aktywne konto rozliczeniowe Cloud zostanie usunięte z projektu w Google Cloud Console, ten projekt zostanie przełączony na plan Firebase Spark.
Czy mogę w dowolnym momencie przejść na wyższą, niższą lub anulować?
Tak, w dowolnym momencie możesz przejść na wyższą, niższą lub anulować. Pamiętaj, że nie zapewniamy proporcjonalnych zwrotów za obniżenie lub anulowanie. Oznacza to, że jeśli zmienisz lub anulujesz subskrypcję przed końcem okresu rozliczeniowego, nadal będziesz płacić za pozostałą część miesiąca.
Jakie wsparcie otrzymam?
Wszystkie aplikacje Firebase, w tym te korzystające z planów bezpłatnych, są objęte pomocą techniczną przez e-mail pracowników Firebase w godzinach pracy w regionie Pacyfiku w Stanach Zjednoczonych. Wszystkie konta mają nieograniczoną pomoc w zakresie problemów związanych z rozliczeniami, problemów związanych z kontem, pytań technicznych (rozwiązywanie problemów) i raportów o incydentach.
Czy mogę ograniczyć wykorzystanie w abonamencie Blaze?
Nie, obecnie nie możesz ograniczyć wykorzystania planu Blaze. Oceniamy opcje obsługi limitów korzystania z planu Blaze.
Użytkownicy Blaze mogą zdefiniować budżet dla swojego projektu lub konta i otrzymywać alerty, gdy ich wydatki zbliżają się do tych limitów. Dowiedz się, jak skonfigurować alerty budżetowe .
Co to są automatyczne kopie zapasowe? Czy oferujecie kopie godzinowe?
Automatyczne kopie zapasowe to zaawansowana funkcja dla klientów korzystających z naszego planu cenowego Blaze, która raz dziennie tworzy kopię zapasową danych Bazy danych czasu rzeczywistego Firebase i przesyła je do Google Cloud Storage .
Nie oferujemy kopii godzinowych.
Czy oferujecie zniżki na oprogramowanie typu open source, non-profit lub edukacyjne?
Nasz plan Spark może być używany przez dowolną osobę lub organizację, w tym organizacje non-profit, szkoły i projekty typu open source. Ponieważ plany te zawierają już hojne limity, nie oferujemy żadnych specjalnych zniżek ani planów dla projektów typu open source, non-profit lub edukacyjnych.
Czy oferujesz umowy dla przedsiębiorstw, ceny, wsparcie lub hosting dedykowanej infrastruktury?
Nasz plan Blaze jest odpowiedni dla przedsiębiorstw każdej wielkości, a nasza umowa SLA spełnia lub przekracza branżowy standard infrastruktury chmury. Jednak obecnie nie oferujemy umów dla przedsiębiorstw, cen ani pomocy technicznej, ani nie oferujemy hostingu dedykowanej infrastruktury (tj. instalacji lokalnych) dla usług takich jak nasza Baza danych czasu rzeczywistego. Ciężko pracujemy nad dodaniem niektórych z tych funkcji.
Czy oferujecie ceny ad hoc? Chcę tylko zapłacić zgodnie z rzeczywistym użyciem za jedną lub dwie funkcje.
Oferujemy ceny ad hoc w abonamencie Blaze, w którym płacisz tylko za funkcje, z których korzystasz.
Jak płatne plany Firebase współpracują z reklamami? Czy w przypadku płatnych planów dostępne są bezpłatne kredyty reklamowe?
Plany cenowe Firebase są niezależne od reklam, więc nie ma żadnych kredytów reklamowych bez ponoszenia kosztów. Jako programista Firebase możesz „połączyć” swoje konto Ads z Firebase, aby obsługiwać śledzenie konwersji.
Wszystkimi kampaniami reklamowymi zarządza się bezpośrednio w Ads, a rozliczeniami za reklamy zarządza się z poziomu konsoli reklam.
Cennik Cloud Functions
Dlaczego potrzebuję konta rozliczeniowego, aby korzystać z Cloud Functions dla Firebase?
Cloud Functions dla Firebase opiera się na niektórych płatnych usługach Google: Cloud Build , Container Registry i Cloud Storage . Korzystanie z tych usług będzie rozliczane dodatkowo do istniejących cen.
Opłata zostanie naliczona tylko za czas obliczeniowy wymagany do zbudowania kontenera środowiska wykonawczego funkcji.
Cloud Storage, współpracując z Container Registry , zapewni przestrzeń do przechowywania kontenerów, w których działają funkcje. Opłata zostanie naliczona za każdy kontener wymagany do wdrożenia funkcji. Możesz zauważyć niewielkie opłaty za każdy przechowywany kontener — na przykład opłata za 1 GB miejsca wynosi 0,026 USD miesięcznie .
Aby dowiedzieć się więcej o tym, jak Twój rachunek może się zmienić, zapoznaj się z poniższymi informacjami
- Cennik Cloud Functions : istniejący poziom bezpłatnych pozostaje niezmieniony.
- Cennik Cloud Build: Cloud Build zapewnia poziom bezpłatny.
- Cennik rejestru kontenerów .
Czy Cloud Functions dla Firebase nadal jest bezpłatne?
TAk. W planie Blaze Cloud Functions zapewnia warstwę bez kosztów dla wywołań, czasu obliczeniowego i ruchu internetowego. Pierwsze 2 000 000 wywołań, 400 000 GB-s, 200 000 CPU-s i 5 GB ruchu wychodzącego z Internetu są dostarczane bezpłatnie każdego miesiąca. Opłata zostanie naliczona tylko za użycie powyżej tych progów.
Każda operacja wdrożenia będzie wiązać się z naliczeniem niewielkich opłat za miejsce do przechowywania używane przez kontener funkcji. For example, if your functions consume 1GB of storage via Container Registry, you'll be billed $0.026 per month . If your development process depends on deploying functions for testing, you can further minimize costs by using the Firebase Local Emulator Suite during development.
See Firebase Pricing plans and the Cloud Functions Pricing example scenarios.
Is Firebase planning to raise the quotas and limits for Cloud Functions for Firebase?
No. There are no plans to change the quotas except for the removal of a maximum build time limit; instead of receiving errors or warnings when the daily build quota of 120 minutes is reached, you'll be billed under the terms of the Blaze pricing plan. See Quotas and limits .
Can I get the Google Cloud $300 credit?
Yes, you can create a Cloud Billing account in the Google Cloud Console to get the $300 credit, then link that Cloud Billing account to a Firebase project.
More about the Google Cloud credit here .
Note that if you do this, you have to then set up the Blaze pricing plan in the Firebase console in order for your project to continue working after the $300 credit is exhausted.
I want to follow a codelab to learn about Firebase. Can you give me a temporary billing account?
No, sorry. You can use the Firebase emulator for development without having a Cloud Billing account. Alternatively, try applying for a Google Cloud free trial . If you're still having trouble paying your bill because of this change, contact Firebase Support.
I'm worried I'm going to rack up a huge bill.
You can set up budget alerts in the Google Cloud Console to help control costs. Also, you can set limits on the number of billed instances created for each of your functions. To get an idea of costing for typical scenarios, see the Cloud Functions Pricing examples.
How can I check my current billing charges?
View the Usage and billing dashboard in the Firebase console.
I use Firebase Extensions. Will I be affected by this change?
Yes. Since extensions use Cloud Functions , extensions that use Node.js 10 or later will be subject to the same charges as other functions.
To use extensions based on Node.js 10 or later, you will need to upgrade to the Blaze pricing plan. You will be charged a small amount (typically around $0.01 per month ) for the Firebase resources required by each extension you install (even if they are not used), in addition to any charges associated with your use of Firebase services.
Privacy
Where can I find information about privacy and security in Firebase?
Check out the page Privacy and Security in Firebase .
Do the Firebase SDKs log any usage/diagnostic information outside of Analytics?
Yes. This is currently iOS-only, but may change in the future. The Firebase Apple platforms SDK includes the FirebaseCoreDiagnostics
framework by default. This framework is used by Firebase to collect SDK usage and diagnostics information to help prioritize future product enhancements. FirebaseCoreDiagnostics
is optional, so if you would like to opt out of sending Firebase diagnostic logs, you can do so by unlinking the library from your application. You can browse the full source, including logged values, on GitHub
A/B Testing
A/B Testing: How many experiments can I create and run?
You are allowed up to 300 experiments per project, which could consist of up to 24 running experiments, with the rest as draft or completed.
AdMob
AdMob: Can I link my Windows apps to Firebase?
No, Windows apps are not currently supported.
AdMob: Why can't I link my app to AdMob from the Firebase console?
You can link an AdMob app to a Firebase app via the AdMob console. Learn how.
AdMob: What permissions or access do I need to link a Firebase app to an AdMob app?
In order to do this linking, you need the following access:
- AdMob : You need to be an AdMob admin.
- Firebase : You must have the
firebase.links.create
permission, which is included in the Owner role and the Firebase Admin role . - Google Analytics : You must have the Edit role or Manage Users role for the property associated with the Firebase project. Learn more.
AdMob: Can multiple users in the same AdMob account link AdMob apps and Firebase apps?
For multi-user AdMob accounts , the user who created the first Firebase link and accepted the Firebase Terms of Service is the only user who can create new links between AdMob apps and Firebase apps.
AdMob: To use AdMob, should I use the Firebase SDK for AdMob or the Google Mobile Ads SDK?
- For iOS projects , use the Google Mobile Ads SDK:
pod 'Google-Mobile-Ads-SDK'
- For Android projects , use the Google Mobile Ads SDK:
implementation 'com.google.android.gms:play-services-ads:21.0.0'
Note that the Firebase Android SDKs for AdMob transitively include the Firebase SDK for Google Analytics. So, if your app calls any Google Analytics APIs and you switch to using the Google Mobile Ads SDK, make sure that you explicitly add the dependency for the Firebase SDK for Google Analytics (
) to your app'scom.google.firebase:firebase-analytics build.gradle
file. - For C++ projects and Unity projects , follow the instructions in the respective documentation.
Analytics
Analytics: Why is Google Analytics a recommended part of using Firebase products?
Google Analytics is a free and unlimited analytics solution that works with Firebase features to deliver powerful insights. It enables you to view event logs in Crashlytics, notification effectiveness in FCM, deep link performance for Dynamic Links, and in-app purchase data from Google Play. It powers advanced audience targeting in Remote Config, Remote Config personalization, and more.
Google Analytics acts as a layer of intelligence in the Firebase console to provide you with more actionable insights about how to develop a high quality app, grow your user base, and earn more money.
To get started, read the documentation .
Analytics: How do I control how my Analytics data is shared with the rest of Firebase?
By default, your Google Analytics data is used to enhance other Firebase and Google features. You can control how your Google Analytics data is shared in your project settings anytime. Learn more about Data sharing settings .
Analytics in my iOS app: Can I install Analytics without ad attribution and IDFA collection features?
Yes. See the Configure Data Collection and Usage page for more details.
Analytics: Why don't I see any data after unlinking my app from Google Analytics?
Your analytics data resides within the Google Analytics property - not within the Firebase project. If you delete or unlink the property, then your data is unlinked from your project as well. The data still resides in that property, however, and you can always relink it to your project.
Creating a new Google Analytics account (and new property) will result in having a blank analytics dashboard in the Firebase console.
Analytics: How do I segment users who have not met some criterion?
You can reframe the problem by "negatively targeting" these users. For example, reframe the problem as "Don't show ads to people who have bought something", and form an audience of those users to target.
Analytics: What is Firebase User Segmentation Storage?
Firebase User Segmentation Storage stores audience lists you've created to provide targeting information to other Firebase services that use them, such as Crashlytics, FCM, Remote Config personalization, and more.
Analytics: Are audiences and/or events defined in the Google Analytics interface also available in the Firebase console?
Your audiences and user properties will be synced. For some features, you'll need to use the Google Analytics interface, such as segmentation and closed funnels. You can access the Google Analytics interface directly via deep-links from the Firebase console.
Any changes you make from the Firebase console can also be performed in Google Analytics, and those changes will be reflected in Firebase.
Analytics: What changed in the Google Analytics section with the October 2021 update?
You can find a summary of these changes in the Firebase Help Center article New Google Analytics 4 functionality in Google Analytics for Firebase .
Upgrading your Analytics property
Analytics: What is the new fully upgraded Google Analytics account?
You can read more about the new Google Analytics upgrade in our blog post .
Analytics: How do I know if I'm using Google Analytics for Firebase or a fully upgraded Google Analytics account?
If you see a link to "View your data in Google Analytics" from the analytics dashboard in the Firebase console, then your project is using a fully upgraded Google Analytics account.
You can also check by viewing the Google Analytics card in the Firebase console (you can access this from settings > Project Settings > Integrations , then click Manage ). If you see a Linked Google Analytics account listed in the Your Google Analytics property section, your project is using the full Google Analytics experience in Firebase. If you do not see a Linked Google Analytics account , your project is using Google Analytics for Firebase.
Analytics: When must I upgrade my Google Analytics for Firebase property to retain service?
Any Firebase project created before July 31, 2019 must be upgraded to the full Google Analytics 4 experience if it hasn't already. (Banners display in the Analytics dashboard if an upgrade is required.) The associated Terms of Service must be accepted by February 15, 2022 to ensure data collection continues and by March 15, 2022 to prevent the deletion of the Analytics property and its data. If you no longer want to use Google Analytics and the associated data, no action is required and the property will be deleted on March 15, 2022.
Failure to accept the new Google Analytics Terms of Service will disrupt Firebase features, including Crash-Free Users (Crashlytics), targeted Configurations and Remote Config personalization, A/B Testing features, Targeting and Campaign Metrics (Cloud Messaging). It will also disrupt Google Analytics for Firebase Integrations , including Exporting project data to BigQuery , Google Ads Integrations , and AdMob Integrations .
If you have questions about accessing your Firebase project, including finding or assigning an Owner, review the Permissions and access to Firebase projects FAQs .
Analytics: What will happen to my data when I upgrade to the new Google Analytics for Firebase?
This will not affect your existing Firebase project analytics data in the Firebase console.
You will be able to continue using the same dashboard and workflows you are using today, and you will also have access to some advanced features in Google Analytics.
Note that if you decide to enable cross-device reporting after making the upgrade, your data will be de-duplicated using the UserID. This may decrease some user counts in the Firebase console.
Analytics: Why do I get an error when trying to upgrade my project to the new Google Analytics experience?
If you are experiencing an error when upgrading, such as:
The operation has failed (Reason: Requested entity already exists)
or
The operation has failed (Reason: Precondition check failed)
This means that there is an association between your project and an already existing Google Analytics property. You can unlink the property, delete it, or upgrade through the Google Analytics interface.
If this is still an issue, you can use the REST API to unlink by using the removeAnalytics
method , then use the addGoogleAnalytics
method to link a new property.
You can then move the data from one property to another .
App Indexing
App Indexing: Can Google Search index multiple languages for a single app?
Google Search supports the following multi-language cases:
- The associated website has unique URLs for each language, and there is one corresponding app HTTP URL for each web URL.
- The associated website has unique URLs for each language, but there is only one app HTTP URL. The app uses system language settings to display the correct language content.
- The associated website has one URL for all languages (or it supports only one language), and there is one corresponding app URL. The website and the application must display the content in the same language when the user has set no preference.
App Indexing: Can App Indexing support multiple websites for an app?
Yes. Make sure that each associated website is verified for the Android app via the Google Play Console . Learn how to verify your app .
App Indexing: Do sitemaps need to be added via the Search Console?
iOS does not require sitemaps, and Android does not require them as long as your app supports HTTP URLs. For custom URLs, you do not need to add sitemaps via Search Console. You can reference sitemaps in your robots.txt
file and Google Search will use them. Learn more about managing sitemaps . However, submitting a sitemap through Search Console lets you see statistics on submitted and indexed HTTP URLs in Search Console.
Authentication
Firebase Authentication: Which countries are supported for phone authentication?
Firebase Authentication supports phone number verification across the the world, but not all networks reliably deliver our verification messages. The following countries have good rates of delivery, and should be expected to work well for phone number sign in.
Country | Code |
---|---|
AD | Andorra |
AE | United Arab Emirates |
AF | Afghanistan |
AG | Antigua and Barbuda |
AL | Albania |
AM | Armenia |
AO | Angola |
AR | Argentina |
AS | American Samoa |
AT | Austria |
AU | Australia |
AW | Aruba |
AZ | Azerbaijan |
BA | Bosnia and Herzegovina |
BB | Barbados |
BD | Bangladesh |
BE | Belgium |
BF | Burkina Faso |
BG | Bulgaria |
BJ | Benin |
BM | Bermuda |
BN | Brunei Darussalam |
BO | Bolivia |
BR | Brazil |
BS | Bahamas |
BT | Bhutan |
BW | Botswana |
BY | Belarus |
BZ | Belize |
CA | Canada |
CD | Congo, (Kinshasa) |
CF | Central African Republic |
CG | Congo (Brazzaville) |
CH | Switzerland |
CI | Côte d'Ivoire |
CK | Cook Islands |
CL | Chile |
CM | Cameroon |
CO | Colombia |
CR | Costa Rica |
CV | Cape Verde |
CW | Curaçao |
CY | Cyprus |
CZ | Czech Republic |
DE | Germany |
DJ | Djibouti |
DK | Denmark |
DM | Dominica |
DO | Dominican Republic |
DZ | Algeria |
EC | Ecuador |
EG | Egypt |
ES | Spain |
ET | Ethiopia |
FI | Finland |
FJ | Fiji |
FK | Falkland Islands (Malvinas) |
FM | Micronesia, Federated States of |
FO | Faroe Islands |
FR | France |
GA | Gabon |
GB | United Kingdom |
GD | Grenada |
GE | Georgia |
GF | French Guiana |
GG | Guernsey |
GH | Ghana |
GI | Gibraltar |
GL | Greenland |
GM | Gambia |
GP | Guadeloupe |
GQ | Equatorial Guinea |
GR | Greece |
GT | Guatemala |
GY | Guyana |
HK | Hong Kong, SAR China |
HN | Honduras |
HR | Croatia |
HT | Haiti |
HU | Hungary |
ID | Indonesia |
IE | Ireland |
IL | Israel |
IM | Isle of Man |
IN | India |
IQ | Iraq |
IT | Italy |
JE | Jersey |
JM | Jamaica |
JO | Jordan |
JP | Japan |
KE | Kenya |
KG | Kyrgyzstan |
KH | Cambodia |
KM | Comoros |
KN | Saint Kitts and Nevis |
KR | Korea (South) |
KW | Kuwait |
KY | Cayman Islands |
KZ | Kazakhstan |
LA | Lao PDR |
LB | Lebanon |
LC | Saint Lucia |
LI | Liechtenstein |
LK | Sri Lanka |
LS | Lesotho |
LT | Lithuania |
LU | Luxembourg |
LV | Latvia |
LY | Libya |
MA | Morocco |
MD | Moldova |
ME | Montenegro |
MF | Saint-Martin (French part) |
MG | Madagascar |
MK | Macedonia, Republic of |
MM | Myanmar |
MN | Mongolia |
MO | Macao, SAR China |
MS | Montserrat |
MT | Malta |
MU | Mauritius |
MW | Malawi |
MX | Mexico |
MY | Malaysia |
MZ | Mozambique |
NA | Namibia |
NC | New Caledonia |
NE | Niger |
NF | Norfolk Island |
NG | Nigeria |
NI | Nicaragua |
NL | Netherlands |
NO | Norway |
NP | Nepal |
NZ | New Zealand |
OM | Oman |
PA | Panama |
PE | Peru |
PG | Papua New Guinea |
PH | Philippines |
PK | Pakistan |
PL | Poland |
PM | Saint Pierre and Miquelon |
PR | Puerto Rico |
PS | Palestinian Territory |
PT | Portugal |
PY | Paraguay |
QA | Qatar |
RE | Réunion |
RO | Romania |
RS | Serbia |
RU | Russian Federation |
RW | Rwanda |
SA | Saudi Arabia |
SC | Seychelles |
SE | Sweden |
SG | Singapore |
SH | Saint Helena |
SI | Slovenia |
SK | Slovakia |
SL | Sierra Leone |
SN | Senegal |
SR | Suriname |
ST | Sao Tome and Principe |
SV | El Salvador |
SZ | Swaziland |
TC | Turks and Caicos Islands |
TG | Togo |
TH | Thailand |
TL | Timor-Leste |
TM | Turkmenistan |
TO | Tonga |
TR | Turkey |
TT | Trinidad and Tobago |
TW | Taiwan, Republic of China |
TZ | Tanzania, United Republic of |
UA | Ukraine |
UG | Uganda |
US | United States of America |
UY | Uruguay |
UZ | Uzbekistan |
VC | Saint Vincent and Grenadines |
VE | Venezuela (Bolivarian Republic) |
VG | British Virgin Islands |
VI | Virgin Islands, US |
VN | Viet Nam |
WS | Samoa |
YE | Yemen |
YT | Mayotte |
ZA | South Africa |
ZM | Zambia |
ZW | Zimbabwe |
Cloud Functions
Cloud Functions runtime support
Why is the Node.js 8 runtime deprecated?
On Dec 31, 2019, Node.js 8 was marked end-of-life by the Node.js Foundation . At that time, the Node.js Foundation stopped issuing security releases for Node.js 8. Because of this, we recommend that you update to Node.js 10 or later as soon as you can.
What happens if a Node.js 8 function is left running after the removal of Node.js 8 support? Will it work indefinitely?
No it will not. Deployment of functions to the Node.js 8 runtime was disabled in the Firebase CLI on December 15, 2020. Execution of already-deployed functions will stop at some point in the future; if you have deployed functions to the Node.js 8 runtime, we recommend that you upgrade to the Node.js 12 runtime .
How do I upgrade to Node.js 12?
- Make sure you're on the Blaze pricing plan .
- Make sure you are using Firebase CLI v8.1.0 or later.
- Change the
engines
field in your functions'package.json
. - Optionally, test your changes using the Firebase Local Emulator Suite .
- Redeploy functions using the Firebase CLI v8.1.0 or later.
How can I make sure I deployed my functions to the Node.js 12 runtime?
In the Firebase console, go to the functions dashboard and check the runtime column.
I use Firebase Extensions. Will I be affected by this change?
Yes. Since extensions use Cloud Functions , the runtime of your extensions will need to be updated on the same timeline as Cloud Functions.
We recommend that you upgrade your Firebase project to the Blaze pricing plan and update to the latest version of each extension installed in your project. You can upgrade your projects' extensions via the Firebase console or Firebase CLI .
Cloud Messaging
Cloud Messaging: What's the difference between the Notifications composer and Cloud Messaging?
Firebase Cloud Messaging provides a complete set of messaging capabilities through its client SDKs and HTTP and XMPP server protocols. For deployments with more complex messaging requirements, FCM is the right choice.
The Notifications composer is a lightweight, serverless messaging solution built on Firebase Cloud Messaging. With a user-friendly graphical console and reduced coding requirements, the Notifications composer lets users easily send messages to reengage and retain users, foster app growth, and support marketing campaigns.
Capabilities | Notifications composer | Cloud Messaging | |
---|---|---|---|
Target | Single device | ||
Clients subscribed to topics (ie weather) | |||
Clients in predefined user segment (app, version, language) | |||
Clients in specified analytics audiences | |||
Clients in device groups | |||
Upstream from client to server | |||
Message Type | Notifications up to 2kb | ||
Data messages up to 4kb | |||
Delivery | Immediate | ||
Future client device local time | |||
Analytics | Built-in Notifications analytics collection and funnel analytics |
Cloud Messaging: Apple announced they're deprecating the legacy binary protocol for APNs. Do I need to do anything?
No. Firebase Cloud Messaging switched to the HTTP/2-based APNs protocol in 2017. If you are using FCM to send notifications to iOS devices, there should be no action required on your part.
Cloud Messaging: Do I need to use other Firebase services in order to use FCM?
You can use Firebase Cloud Messaging as a standalone component, in the same manner as you did with GCM, without using other Firebase services.
Cloud Messaging: I am an existing Google Cloud Messaging (GCM) developer. Should I move to Firebase Cloud Messaging?
FCM is the new version of GCM under the Firebase brand. It inherits GCM's core infrastructure, with new SDKs to make Cloud Messaging development easier.
Benefits of upgrading to FCM SDK include:
- Simpler client development. You no longer have to write your own registration or subscription retry logic.
- An out-of-the-box notification solution. You can use the Notifications composer, a serverless notifications solution with a web console that lets anyone send notifications to target specific audiences based on insights from Google Analytics for Firebase.
To upgrade from GCM SDKs to FCM SDKs, see the guides for migrating Android and iOS apps.
Cloud Messaging: Why do my targeted devices apparently fail to receive messages?
When it looks like devices haven't successfully received messages, check first for these two potential causes:
Foreground message handling for notification messages . Client apps need to add message handling logic to handle notification messages when the app is in the foreground on the device. See the details for iOS and Android .
Network firewall restrictions . If your organization has a firewall that restricts the traffic to or from the Internet, you need to configure it to allow connectivity with FCM in order for your Firebase Cloud Messaging client apps to receive messages. The ports to open are:
- 5228
- 5229
- 5230
FCM usually uses 5228, but it sometimes uses 5229 and 5230. FCM does not provide specific IPs, so you should allow your firewall to accept outgoing connections to all IP addresses contained in the IP blocks listed in Google's ASN of 15169 .
Cloud Messaging: I have implemented onMessageReceived
in my Android app, but it is not being called.
When your app is in the background, notification messages are displayed in the system tray, and onMessageReceived
is not called. For notification messages with a data payload, the notification message is displayed in the system tray, and the data that was included with the notification message can be retrieved from the intent launched when the user taps on the notification.
For more information, see Receive and handle messages .
Notifications composer: What's the difference between the Notifications composer and Cloud Messaging?
The Notifications composer is a lightweight, serverless messaging solution built on Firebase Cloud Messaging. With a user-friendly graphical console and reduced coding requirements, the Notifications composer lets users easily send messages to reengage and retain users, foster app growth, and support marketing campaigns.
Firebase Cloud Messaging provides a complete set of messaging capabilities through its client SDKs and HTTP and XMPP server protocols. For deployments with more complex messaging requirements, FCM is the right choice.
Here's a comparison of the messaging capabilities provided by Firebase Cloud Messaging and the Notifications composer:
Capabilities | Notifications composer | Cloud Messaging | |
---|---|---|---|
Target | Single device | ||
Clients subscribed to topics (ie weather) | |||
Clients in predefined user segment (app, version, language) | |||
Clients in specified analytics audiences | |||
Clients in device groups | |||
Upstream from client to server | |||
Message Type | Notifications up to 2kb | ||
Data messages up to 4kb | |||
Delivery | Immediate | ||
Future client device local time | |||
Analytics | Built-in Notifications analytics collection and funnel analytics |
Notifications composer: I am an existing Google Cloud Messaging (GCM) developer, and I want to use the Notifications composer. What should I do?
The Notifications composer is an out-of-the-box solution that lets anyone send notifications to target specific audiences based on insights from Google Analytics for Firebase. Also, the Notifications composer provides funnel analysis for every message, allowing easy evaluation of notification effectiveness.
If you are an existing GCM developer, to use the Notifications composer you have to upgrade from GCM SDKs to FCM SDKs. See the guides for migrating Android and iOS apps.
Cloud Storage
Cloud Storage: Why can't I use Cloud Storage?
Cloud Storage for Firebase creates a default bucket in the App Engine no-cost tier. This allows you to quickly get up and running with Firebase and Cloud Storage for Firebase, without having to put in a credit card or enable a Cloud Billing account. It also allows you to easily share data between Firebase and a Google Cloud project.
There are, however, two known cases where this bucket cannot be created and you will be unable to use Cloud Storage for Firebase:
- A project imported from Google Cloud which had a App Engine Master/Slave Datastore application.
- A project imported from Google Cloud which has domain prefixed projects. For example:
domain.com:project-1234
.
There are currently no workarounds to these issues, and we recommend that you create a new project in the Firebase console and enable Cloud Storage for Firebase in that project.
Cloud Storage: Why do I see new service account IDs associated with my Firebase projects that use Cloud Storage?
Firebase uses service accounts to operate and manage services without sharing user credentials. When you create a Firebase project, you might notice that a number of service accounts are already available in your project.
If you used Cloud Storage before September 15, 2020, you may see the following legacy service account that is used to manage your bucket: firebase-storage@system.gserviceaccount.com
.
After September 15, 2020, Cloud Storage for Firebase buckets may include an additional new service account: service-<project number>@gcp-sa-firebasestorage.iam.gserviceaccount.com
.
You can view all service accounts associated with your project in the Firebase console, on the Service accounts tab .
Removing the new service account
We strongly discourage you from removing the new service account because if you do so, you will not be able to take advantage of upcoming security improvements.
However, if you prefer, you can disable the API or remove access from the new service account. Removing this account may block access to your Cloud Storage bucket from your apps.
Adding the new service account
If you removed the new service account or disabled the API and want to add them back, follow the instructions provided in Creating and managing service accounts for using the Google Cloud Console to add service-<project number>@gcp-sa-firebasestorage.iam.gserviceaccount.com
to the set of service accounts for your project.
Crashlytics
Visit the Crashlytics troubleshooting & FAQ page for helpful tips and answers to more FAQs.
Crash Reporting: Why are there fewer crash reports in Analytics than Crash Reporting?
Crash Reporting creates a separate background process to upload crash info. If your app extends the Android Application class, you must ensure it is multi-process safe. Otherwise, it may cause concurrency issues. When an app extends an Application object, this object gets instantiated for each process in a multi-process app. Consider the following when adding Crash Reporting to your app:
- If the implementation of this object accesses any out-of-process state (a database, the file system, shared preferences, etc), or performs other actions not safe for a multi-process environment, concurrency issues might arise. This is because multiple instances of the Application object may run simultaneously.
- Many third-party libraries keep out-of-process state (eg in a local database) and are subject to the same concurrency issues if they are initialized from the Application object. If your app fits this description and you plan to use Crash Reporting in your app, we strongly encourage you to consider moving the Application logic to Content Providers, or to Android Activities. Any Application logic that is not safe for a multi-process environment can have unintended effects on your app.
Crash Reporting automatically exports captured errors to Google Analytics as app_exception events. Currently on Android, you may see a significant discrepancy between the number of Crash Reporting errors and Analytics app_exception events.
Dynamic Links
Dynamic Links: Why does my Android app access each Dynamic Link twice?
The getInvitation
API clears the saved Dynamic Link to prevent it from being accessed twice. Be sure to call this API with the autoLaunchDeepLink
parameter set to false
in each of the deep link activities to clear it for the case when the activity is triggered outside the main activity.
Hosting
Hosting: Why does my Hosting release history table in the Firebase console show file counts that are more than what my local project actually has?
Firebase automatically adds extra files containing metadata about the Hosting site, and these files are included in the total file count for the release.
Hosting: What's the largest file size that I can deploy to Firebase Hosting?
Hosting has a maximum size limit of 2 GB for individual files.
We recommend storing larger files using Cloud Storage , which offers a maximum size limit in the terabyte range for individual objects.
Hosting: How many Hosting sites can I have per Firebase project?
The Firebase Hosting multisite feature supports a maximum of 36 sites per project.
Performance Monitoring
Visit the Performance Monitoring troubleshooting & FAQ page for helpful tips and answers to more FAQs.
Performance Monitoring: How many custom URL patterns can I create?
You can create up to 400 total custom URL patterns per app and up to 100 custom URL patterns per domain for that app.
Performance Monitoring: Why am I not seeing real time display of performance data?
To view real time performance data, make sure that your app uses a Performance Monitoring SDK version that's compatible with real time data processing.
- iOS — v7.3.0 or later
- tvOS — v8.9.0 or later
- Android — v19.0.10 or later (or Firebase Android BoM v26.1.0 or later)
- Web — v7.14.0 or later
Note that we always recommend using the latest version of SDK, but any version listed above will enable Performance Monitoring to process your data in near real time.
Realtime Database
Realtime Database: Why was my Realtime Database reported bandwidth lower than average between September 2016 and March 2017?
For our bandwidth calculations, we normally include SSL encryption overhead (based on layer 5 of the OSI model). However, in September 2016, we introduced a bug that caused our bandwidth reporting to ignore encryption overhead. This might have resulted in artificially low reported bandwidth and bills on your account for a few months.
We released a fix for the bug in late March 2017, returning bandwidth reporting and billing to their normal levels.
Realtime Database: What are the scaling limitations of the Realtime Database?
Each Realtime Database instance has limits on the number of write operations per second. For small writes, this limit is approximately 1000 write operations per second. If you are approaching this limit, batching operations using multi-path updates can help you achieve higher throughput.
In addition, each database instance has a cap on the number of simultaneous database connections . Our default limits are large enough for most applications. If you are building an app that requires additional scale, you may need to shard your application across multiple database instances for added scale. You may also consider Cloud Firestore as an alternative database.
Realtime Database: What can I do if I'm over my Realtime Database usage limits?
If you've received an email alert or notification in the Firebase console that you've exceeded your Realtime Database usage limits, you can address it based on the usage limit you've exceeded. To see your Realtime Database usage, go to the Realtime Database Usage dashboard in the Firebase console.
If you're over your download limit, you can upgrade your Firebase pricing plan or wait until your download limit resets at the start of your next billing cycle. To decrease your downloads, try the following steps:
- Add queries to limit the data that your listen operations return.
- Check for unindexed queries.
- Use listeners that only download updates to data — for example,
on()
instead ofonce()
. - Use security rules to block unauthorized downloads.
If you're over your storage limit, upgrade your pricing plan to avoid service disruptions. To reduce the amount of data in your database, try the following steps:
- Run periodic cleanup jobs.
- Reduce any duplicate data in your database.
Note that it may take some time to see any data deletions reflected in your storage allotment.
If you're over your simultaneous database connections limit, upgrade your plan to avoid any service disruptions. To manage simultaneous connections to your database, try connecting via users via the REST API if they don't require a realtime connection.
Remote Config
Remote Config: Why don't fetched values change the behavior and appearance of my app?
Unless you fetch values with fetchAndActivate()
, values are stored locally but not activated. To activate fetched values so that they can take effect, call activate
. This design lets you control when the behavior and appearance of your app changes, because you can choose when to call activate
. After you call activate
, your app source code determines when updated parameter values are used.
For example, you could fetch values and then activate them the next time a user starts your app, which removes the need to delay app startup while your app waits for fetched values from the service. Changes to your app's behavior and appearance then occur when your app uses the updated parameter values.
To learn more about the Remote Config API and usage model, see Remote Config API Overview .
Remote Config: I am making a lot of fetch requests while developing my app. Why doesn't my app always get the latest values from the service when it sends fetch requests?
During app development, you might want to fetch and activate configs very frequently (many times per hour) to let you rapidly iterate as you develop and test your app. To accommodate rapid iteration on a project with up to 10 developers, you can temporarily set a FirebaseRemoteConfigSettings
object with a low minimum fetch interval ( setMinimumFetchIntervalInSeconds
) in your app.
Remote Config: How quickly does the Remote Config service return fetched values after my app sends a fetch request?
Devices usually receive fetched values in less than a second, and often receive fetched values in milliseconds. The Remote Config service handles fetch requests within milliseconds, but the time required to complete a fetch request will depend on the network speed of the device and the latency of the network connection used by the device.
If your goal is to make fetched values take effect in your app as soon as possible, but without creating a jarring user experience, consider adding calls to fetchAndActivate
each time that your app does a full screen refresh.
Test Lab
Visit the Test Lab troubleshooting page for helpful tips and answers to FAQs.