יש לך אתגרים אחרים או שאתה לא רואה את הבעיה שלך מתוארת למטה? אנא דווח על באג או בקש תכונה והצטרף לדיונים של Stack Overflow .
פרויקטים של Firebase ואפליקציות Firebase
מהו פרויקט Firebase?
פרויקט Firebase הוא הישות ברמה העליונה של Firebase. בפרויקט, אתה יכול לרשום את אפליקציות Apple, Android או האינטרנט שלך. לאחר שתרשום את האפליקציות שלך ב-Firebase, תוכל להוסיף לאפליקציה את ערכות Firebase הספציפיות למוצר, כמו Analytics, Cloud Firestore, Crashlytics או Remote Config.
עליך לרשום את גרסאות Apple, Android ו-Web שלך בתוך פרויקט Firebase יחיד. אתה יכול להשתמש בפרוייקטים מרובים של Firebase כדי לתמוך בסביבות מרובות, כגון פיתוח, הבמה והפקה.
הנה כמה משאבים למידע נוסף על פרויקטים של Firebase:
- הבן פרויקטים של Firebase - מספק סקירה קצרה של כמה מושגים חשובים על פרויקטי Firebase, כולל הקשר שלהם עם Google Cloud וההיררכיה הבסיסית של פרויקט והאפליקציות והמשאבים שלו.
- שיטות עבודה מומלצות כלליות להגדרת פרויקטים של Firebase - מספק שיטות עבודה מומלצות כלליות ברמה גבוהה להגדרת פרויקטי Firebase ורישום האפליקציות שלך בפרויקט, כך שתהיה לך זרימת עבודה ברורה של פיתוח המשתמשת בסביבות שונות.
שים לב שלכל הפרויקטים של Firebase, Firebase מוסיף אוטומטית תווית של firebase:enabled
בדף התוויות של הפרויקט שלך ב-Google Cloud Console. למידע נוסף על תווית זו בשאלות הנפוצות שלנו.
מהו ארגון Google Cloud?
ארגון Google Cloud הוא קונטיינר לפרויקטים של Google Cloud (כולל פרויקטים של Firebase). היררכיה זו מאפשרת ארגון, ניהול גישה וביקורת טובים יותר של פרויקטי Google Cloud ו-Firebase שלך. למידע נוסף, עיין ביצירה וניהול של ארגונים .
כיצד אוכל להוסיף את Firebase לפרויקט Google Cloud קיים?
ייתכן שפרויקטים קיימים מנוהלים דרך Google Cloud Console או מסוף Google APIs . כברירת מחדל, פרויקטים אלה גלויים במסוף Firebase , אך אינם נחשבים לפרויקטים של Firebase.
כדי להוסיף את Firebase לפרויקט Google Cloud הקיים שלך, לחץ על הוסף פרויקט בדף הנחיתה של מסוף Firebase , ולאחר מכן בחר את הפרויקט שלך בתפריט שם הפרויקט .
מדוע לפרויקט Google Cloud שלי יש תווית של firebase:enabled
?
בדף התוויות של הפרויקט שלך ב-Google Cloud Console, ייתכן שתראה תווית של firebase:enabled
(באופן ספציפי, Key
של firebase
עם Value
של enabled
).
Firebase הוסיפה אוטומטית את התווית הזו מכיוון שהפרויקט שלך הוא פרויקט Firebase, מה שאומר שלפרויקט שלך מופעלים תצורות ושירותים ספציפיים ל-Firebase. למידע נוסף על הקשר בין פרויקטי Firebase לבין Google Cloud .
אנו ממליצים בחום לא לשנות או למחוק תווית זו. תווית זו משמשת את Firebase ו-Google Cloud כדי לרשום את הפרויקטים שלך ב-Firebase (לדוגמה, דרך נקודת הקצה REST API projects.list
או בתפריטים במסוף Firebase).
שים לב שהוספת תווית זו באופן ידני לרשימת תוויות הפרויקט שלך אינה מאפשרת תצורות ושירותים ספציפיים ל-Firebase עבור פרויקט Google Cloud שלך. כדי לעשות זאת, עליך להוסיף את Firebase דרך מסוף Firebase (או, למקרי שימוש מתקדמים, דרך Firebase Management REST API או Firebase CLI ).
מדוע פרויקט Firebase שלי לא מופיע ברשימת פרויקטי Firebase שלי?
שאלות נפוצות אלה רלוונטיות אם אינך רואה את פרויקט Firebase שלך במקומות הבאים:
- ברשימה של פרויקטים שאתה צופה במסוף Firebase
- בתגובה מהקריאה לנקודת הקצה של REST API
projects.list
- בתגובה מהפעלת הפקודה Firebase CLI
firebase projects:list
נסה את השלבים הבאים לפתרון בעיות:
- ראשית, נסה לגשת לפרויקט שלך על ידי ביקור ישירות בכתובת האתר של הפרויקט. השתמש בפורמט הבא:
https://console.firebase.google.com/project/ PROJECT-ID /overview
- אם אינך יכול לגשת לפרויקט או לקבל שגיאות הרשאות, בדוק את הדברים הבאים:
- ודא שאתה מחובר ל-Firebase באמצעות אותו חשבון Google שיש לו גישה לפרויקט. אתה יכול להיכנס ולצאת ממסוף Firebase דרך דמות החשבון שלך בפינה השמאלית העליונה של המסוף.
- בדוק אם אתה יכול להציג את הפרויקט ב- Google Cloud Console .
- ודא שלפרויקט שלך יש את התווית
firebase:enabled
בדף התוויות עבור הפרויקט שלך ב-Google Cloud Console. Firebase ו-Google Cloud משתמשים בתווית זו כדי לרשום את הפרויקטים שלך ב-Firebase. אם אינך רואה תווית זו אך ה-API לניהול Firebase מופעל עבור הפרויקט שלך, הוסף את התווית באופן ידני (באופן ספציפי,Key
שלfirebase
עםValue
שלenabled
). - ודא שהוקצו לך אחד מתפקידי IAM הבסיסיים (בעלים, עורך, מציג) או תפקיד שיש בו הרשאות הקשורות ל-Firebase, למשל תפקיד מוגדר מראש ב-Firebase . אתה יכול להציג את התפקידים שלך בדף IAM של Google Cloud Console.
- אם הפרויקט שלך שייך לארגון Google Cloud, ייתכן שתדרוש הרשאות נוספות כדי לראות את הפרויקט הרשום במסוף Firebase. צור קשר עם האדם שמנהל את ארגון Google Cloud שלך כדי לתת לך את התפקיד המתאים לצפייה בפרויקט, למשל תפקיד הדפדפן.
אם אף אחד משלבי פתרון הבעיות שלמעלה לא מאפשר לך לראות את הפרויקט שלך ברשימה של פרויקטים של Firebase, צור קשר עם התמיכה של Firebase .
כמה פרויקטים אני יכול לקבל לכל חשבון?
- תוכנית תמחור ניצוץ - מכסת הפרויקט שלך מוגבלת למספר קטן של פרויקטים (בדרך כלל בסביבות 5-10).
- תוכנית תמחור Blaze - מכסת הפרויקט שלך לחשבון Cloud Billing גדלה באופן משמעותי כל עוד חשבון Cloud Billing שלך במצב ניהול תקין.
הגבלה על מכסת הפרויקט היא לעתים נדירות דאגה עבור רוב המפתחים, אך במידת הצורך, תוכל לבקש הגדלה של מכסת הפרויקט שלך .
שים לב שמחיקה מלאה של פרויקט דורשת 30 יום ונחשבת כחלק מהמכסה שלך עד שהיא תימחק במלואה.
כמה אפליקציות Firebase אפשר לקבל בפרויקט Firebase?
פרויקט Firebase הוא כלי קיבול עבור אפליקציות Firebase ברחבי אפל, אנדרואיד ואינטרנט. Firebase מגביל את המספר הכולל של אפליקציות Firebase בפרויקט Firebase ל-30.
לאחר מספר זה, הביצועים מתחילים להתדרדר (במיוחד עבור Google Analytics) ובסופו של דבר, במספר גבוה יותר של אפליקציות, חלק מהפונקציונליות של המוצר מפסיקה לפעול. בנוסף, הוספת אפליקציית Firebase לפרויקט יוצרת מזהה לקוח OAuth 2.0 אחד או יותר. יש מגבלה של כ-30 מזהי לקוח שניתן ליצור בתוך פרויקט בודד.
עליך לוודא שכל אפליקציות Firebase בתוך פרויקט Firebase יחיד הן גרסאות פלטפורמה של אותה אפליקציה מנקודת מבט של משתמש קצה. לדוגמה, אם אתה מפתח אפליקציית תווית לבנה, לכל אפליקציה עם תווית עצמאית צריכה להיות פרויקט Firebase משלה, אבל גרסאות Apple ו-Android של התווית יכולות להיות באותו פרויקט. קרא הנחיות מפורטות יותר בשיטות המומלצות הכלליות שלנו להגדרת פרויקטים של Firebase .
במקרה הנדיר שהפרויקט שלך דורש יותר מ-30 אפליקציות, תוכל לבקש הגדלת מגבלת אפליקציות. הפרויקט שלך חייב להיות בתוכנית התמחור של Blaze כדי להגיש בקשה זו. בקר ב-Google Cloud Console כדי לשלוח את בקשתך ולהעריך אותה. למידע נוסף על ניהול מכסות בתיעוד של Google Cloud.
מה קורה אם אני מתייג את הפרויקט שלי כסביבת "הפקה"?
במסוף Firebase, אתה יכול לתייג את פרויקטי Firebase שלך עם סוג הסביבה שלהם, כסביבות ייצור או לא מוגדרות (לא פרוד).
לתיוג הפרויקט שלך כסוג סביבה אין השפעה על אופן הפעולה של פרויקט Firebase שלך או על התכונות שלו. עם זאת, התיוג יכול לעזור לך ולצוות שלך לנהל את הפרויקטים השונים שלך ב-Firebase עבור מחזור החיים של האפליקציה.
אם אתה מתייג את הפרויקט שלך כסביבת ייצור, אנו מוסיפים תג Prod בצבע עז לפרויקט במסוף Firebase, ומזכיר לך שכל שינוי יכול להשפיע על אפליקציות הייצור המשויכות שלך. בעתיד, ייתכן שנוסיף עוד תכונות ואמצעי הגנה עבור פרויקטים של Firebase המתויגים כסביבות ייצור.
כדי לשנות את סוג הסביבה של פרויקט Firebase שלך, עבור settings הגדרות פרויקט > כללי , ולאחר מכן בכרטיס הפרויקט שלך תחת סביבה , לחץ על edit כדי לשנות את סוג הסביבה.
היכן אוכל למצוא את מזהה האפליקציה של אפליקציית Firebase שלי?
במסוף Firebase, עבור אל settings הפרויקט הגדרות . גלול מטה אל כרטיס האפליקציות שלך , ולאחר מכן לחץ על אפליקציית Firebase הרצויה כדי להציג את המידע של האפליקציה, כולל מזהה האפליקציה שלה.
הנה כמה ערכי מזהה אפליקציה לדוגמה:
- Firebase iOS Apps:
1:1234567890:ios:321abc456def7890
- אפליקציות אנדרואיד של Firebase:
1:1234567890:android:321abc456def7890
- Firebase Web Apps:
1:1234567890:web:321abc456def7890
מהם התנאים המוקדמים לקישור של Google Play / AdMob / Google Ads / BigQuery לפרויקט או לאפליקציה שלי ב-Firebase?
- כדי לקשר את חשבון Google Play שלך , אתה צריך את הדברים הבאים:
- אחד מתפקידי Firebase הבאים: בעלים או Firebase Admin
ו - אחת מרמות הגישה הבאות ל-Google Play: בעל חשבון או מנהל
- אחד מתפקידי Firebase הבאים: בעלים או Firebase Admin
- כדי לקשר את אפליקציית AdMob שלך , עליך להיות גם בעל פרויקט Firebase וגם מנהל AdMob.
- כדי לקשר את חשבון AdWords שלך , עליך להיות גם בעל פרויקט Firebase וגם מנהל מערכת של AdWords.
- כדי לקשר את פרויקט BigQuery שלך, עליך להיות הבעלים של פרויקט Firebase.
אילו הודעות קוד פתוח עלי לכלול באפליקציה שלי?
בפלטפורמות של אפל, הפוד של Firebase מכיל קובץ NOTICES הכולל את הערכים הרלוונטיים. Firebase Android SDK מכיל Activity
עוזרת להצגת פרטי רישיון.
הרשאות וגישה לפרויקטים של Firebase
כיצד אוכל להקצות לחבר פרויקט תפקיד, כמו תפקיד הבעלים?
כדי לנהל את התפקידים שהוקצו לכל חבר בפרויקט, עליך להיות בעלים של פרויקט Firebase (או להקצות לו תפקיד עם ההרשאה resourcemanager.projects.setIamPolicy
).
להלן המקומות שבהם תוכל להקצות ולנהל תפקידים:
- מסוף Firebase מציע דרך פשוטה להקצות תפקידים לחברי הפרויקט בכרטיסייה משתמשים והרשאות של settings > הגדרות פרויקט . במסוף Firebase, אתה יכול להקצות כל אחד מהתפקידים הבסיסיים (בעלים, עורך, מציג), תפקידי Firebase Admin/Viewer או כל אחד מתפקידי קטגוריית המוצר המוגדרים מראש של Firebase .
- ה-Google Cloud Console מציע קבוצה נרחבת של כלים להקצאת תפקידים לחברי הפרויקט בדף IAM . ב-Cloud Console, אתה יכול גם ליצור ולנהל תפקידים מותאמים אישית , כמו גם לתת לחשבונות שירות גישה לפרויקט שלך.
שימו לב שב-Google Cloud Console, חברי הפרויקט נקראים מנהלים .
אם הבעלים של הפרויקט שלך לא יכול עוד לבצע את המשימות של בעלים (לדוגמה, האדם עזב את החברה שלך) והפרויקט שלך אינו מנוהל באמצעות ארגון Google Cloud (ראה הפסקה הבאה), תוכל לפנות לתמיכה של Firebase כדי לקבל בעלים זמני שהוקצה.
שים לב שאם פרויקט Firebase הוא חלק מארגון Google Cloud, ייתכן שאין לו בעלים. אם אינך מצליח למצוא בעלים לפרויקט Firebase שלך, צור קשר עם האדם שמנהל את ארגון Google Cloud שלך כדי להקצות בעלים לפרויקט.
כיצד אוכל למצוא את הבעלים של פרויקט Firebase?
אתה יכול להציג את חברי הפרויקט ואת תפקידיהם במקומות הבאים:
- אם יש לך גישה לפרויקט במסוף Firebase, תוכל להציג את רשימת חברי הפרויקט, כולל בעלים, בדף המשתמשים וההרשאות של מסוף Firebase.
- אם אין לך גישה לפרויקט במסוף Firebase, בדוק אם יש לך גישה לפרויקט ב-Google Cloud Console. אתה יכול להציג את רשימת חברי הפרויקט, כולל בעלים, בדף IAM של Google Cloud Console.
אם הבעלים של הפרויקט שלך לא יכול עוד לבצע את המשימות של בעלים (לדוגמה, האדם עזב את החברה שלך) והפרויקט שלך אינו מנוהל באמצעות ארגון Google Cloud (ראה הפסקה הבאה), תוכל לפנות לתמיכה של Firebase כדי לקבל בעלים זמני שהוקצה.
שים לב שאם פרויקט Firebase הוא חלק מארגון Google Cloud, ייתכן שאין לו בעלים. במקום זאת, האדם שמנהל את ארגון Google Cloud שלך יכול לבצע משימות רבות שבעלים יכול לבצע. עם זאת, כדי לבצע מספר משימות ספציפיות לבעלים (כמו הקצאת תפקידים או ניהול נכסי Google Analytics), ייתכן שמנהל המערכת יצטרך להקצות לעצמו את תפקיד הבעלים בפועל כדי לבצע משימות אלו. אם אינך מצליח למצוא בעלים לפרויקט Firebase שלך, צור קשר עם האדם שמנהל את ארגון Google Cloud שלך כדי להקצות בעלים לפרויקט.
מדוע או מתי עלי להקצות לחבר פרויקט את תפקיד הבעלים?
כדי להבטיח ניהול נכון של פרויקט Firebase, עליו להיות בעלים . הבעלים של פרויקט הוא האדם שיכול לבצע מספר פעולות ניהוליות חשובות (כמו הקצאת תפקידים וניהול נכסי Google Analytics), ותמיכת Firebase יכולה למלא רק בקשות ניהול מבעלי פרויקטים שהדגימו.
לאחר הגדרת הבעלים של פרויקט Firebase, חשוב לעדכן את ההקצאות הללו.
שים לב שאם פרויקט Firebase הוא חלק מארגון Google Cloud, האדם שמנהל את ארגון Google Cloud שלך יכול לבצע משימות רבות שבעלים יכול לבצע. עם זאת, עבור מספר משימות ספציפיות לבעלים (כמו הקצאת תפקידים או ניהול נכסי Google Analytics), ייתכן שמנהל המערכת יצטרך להקצות לעצמו את תפקיד הבעלים בפועל כדי לבצע משימות אלו.
אני לא חושב שיש לי פרויקט של Firebase, אבל קיבלתי אימייל על אחד. כיצד אוכל לגשת לפרויקט הזה?
האימייל שקיבלת צריך להכיל קישור לפתיחת פרויקט Firebase שלך. לחיצה על הקישור בדוא"ל אמורה לפתוח את הפרויקט במסוף Firebase.
אם אינך מצליח לפתוח את הפרויקט בקישור, ודא שנכנסת ל-Firebase באמצעות אותו חשבון Google שקיבל את האימייל על הפרויקט. אתה יכול להיכנס ולצאת ממסוף Firebase דרך דמות החשבון שלך בפינה השמאלית העליונה של המסוף.
שים לב שאם אתה המנהל של ארגון Google Cloud, ייתכן שתקבל הודעה על שינויים בפרויקטים של Firebase בתוך הארגון שלך. עם זאת, ייתכן שאין לך מספיק הרשאות לפתיחת פרויקט Firebase. במקרים אלה, הפתרון הפשוט ביותר הוא להקצות לעצמך את תפקיד הבעלים בפועל לפתיחת הפרויקט ולבצע את הפעולות הנדרשות. למידע נוסף על מדוע ומתי להקצות את תפקיד הבעלים .
פלטפורמות ומסגרות
בקר בדפי פתרון בעיות ושאלות נפוצות ספציפיות לפלטפורמה לקבלת עצות ותשובות מועילות לשאלות נפוצות נוספות.
קונסולת Firebase
מהם הדפדפנים הנתמכים לגישה למסוף Firebase?
ניתן לגשת אל קונסולת Firebase מגרסאות עדכניות של דפדפני שולחן עבודה פופולריים כגון Chrome, Firefox, Safari ו-Edge. כרגע אין תמיכה מלאה בדפדפנים לנייד.
אני יכול לטעון את מסוף Firebase, אבל למה אני לא יכול למצוא או לגשת לפרויקט Firebase שלי?
שאלות נפוצות זה רלוונטיות אם אתה נתקל באחת מהבעיות הבאות:
- מסוף Firebase מחזיר דף שגיאה שאומר שייתכן שהפרויקט שלך לא קיים או שאין לך גישה לפרויקט.
- מסוף Firebase אינו מציג את הפרויקט שלך גם כאשר אתה מזין את מזהה הפרויקט או את שם הפרויקט שלו בשדה החיפוש של המסוף.
נסה את השלבים הבאים לפתרון בעיות:
- ראשית, נסה לגשת לפרויקט שלך על ידי ביקור ישירות בכתובת האתר של הפרויקט. השתמש בפורמט הבא:
https://console.firebase.google.com/project/ PROJECT-ID /overview
- אם עדיין אינך יכול לגשת לפרויקט או לקבל שגיאות הרשאות, בדוק את הדברים הבאים:
- ודא שאתה מחובר ל-Firebase באמצעות אותו חשבון Google שיש לו גישה לפרויקט. אתה יכול להיכנס ולצאת ממסוף Firebase דרך דמות החשבון שלך בפינה השמאלית העליונה של המסוף.
- ודא שה- API לניהול Firebase מופעל עבור הפרויקט.
- ודא שהוקצו לך אחד מתפקידי IAM הבסיסיים (בעלים, עורך, מציג) או תפקיד שיש בו הרשאות הקשורות ל-Firebase, למשל תפקיד מוגדר מראש ב-Firebase . אתה יכול להציג את התפקידים שלך בדף IAM של Google Cloud Console.
- אם הפרויקט שלך שייך לארגון Google Cloud, ייתכן שתדרוש הרשאות נוספות כדי לראות את הפרויקט הרשום במסוף Firebase. צור קשר עם האדם שמנהל את ארגון Google Cloud שלך כדי לתת לך את התפקיד המתאים לצפייה בפרויקט, למשל תפקיד הדפדפן.
אם אף אחד משלבי פתרון הבעיות שלמעלה לא מאפשר לך למצוא או לגשת לפרויקט שלך, צור קשר עם התמיכה של Firebase .
מדוע קונסולת Firebase לא נטען עבורי?
שאלות נפוצות זה רלוונטיות אם אתה נתקל באחת מהבעיות הבאות:
- דף במסוף Firebase לעולם אינו מסיים את הטעינה.
- הנתונים בתוך דף אינם נטענים כצפוי.
- אתה מקבל הודעות שגיאה בדפדפן בעת טעינת מסוף Firebase.
נסה את השלבים הבאים לפתרון בעיות:
- בדוק את שורת המסוף של לוח המחוונים של Firebase Status עבור כל הפרעות שירות אפשריות.
- ודא שאתה משתמש בדפדפן נתמך .
- נסה לטעון את מסוף Firebase בחלון גלישה בסתר או בחלון פרטי.
- השבת את כל תוספי הדפדפן.
- ודא שחיבור הרשת אינו חסום על ידי חוסם מודעות, אנטי וירוס, פרוקסי, חומת אש או תוכנה אחרת.
- נסה לטעון את מסוף Firebase באמצעות רשת או מכשיר אחר.
- אם אתה משתמש ב-Chrome, בדוק את מסוף כלי המפתחים אם יש שגיאות .
אם אף אחד משלבי פתרון הבעיות שלמעלה לא פותר את הבעיה, פנה לתמיכה של Firebase .
כיצד נקבעת שפת קונסולת Firebase שלי?
הגדרת השפה עבור מסוף Firebase מבוססת על השפה שנבחרה בהגדרות חשבון Google שלך.
כדי לשנות את העדפת השפה שלך, ראה שינוי שפה .
מסוף Firebase תומך בשפות הבאות:
- אנגלית
- פורטוגזית ברזילאית
- צָרְפָתִית
- גֶרמָנִיָת
- אינדונזית
- יַפָּנִית
- קוריאנית
- רוּסִי
- סינית פשוטה
- ספרדית
- סינית מסורתית
באילו תפקידים והרשאות תומך קונסולת Firebase?
מסוף Firebase ו-Google Cloud Console משתמשים באותם תפקידים והרשאות. למידע נוסף על תפקידים והרשאות בתיעוד Firebase IAM .
Firebase תומך בתפקידים הבסיסיים (הבסיסיים) של בעלים, עורך ומציג:
- בעל פרויקט יכול להוסיף חברים נוספים לפרויקט, להגדיר אינטגרציות (פרויקט המקשר לשירותים כמו BigQuery או Slack), ויש לו גישת עריכה מלאה לפרויקט.
- לעורך פרויקט יש גישת עריכה מלאה עבור הפרויקט.
- למציג פרויקט יש גישת קריאה בלבד עבור הפרויקט. שים לב שמסוף Firebase אינו מסתיר/משבית כרגע את פקדי עריכת ממשק המשתמש מצופים בפרויקט, אך פעולות אלה ייכשלו עבור חברי פרויקט שהוקצו להם תפקיד הצופה.
Firebase תומך גם ב:
- תפקידים מוגדרים מראש של Firebase - תפקידים שנאספו ספציפיים ל-Firebase המאפשרים בקרת גישה מפורטת יותר מהתפקידים הבסיסיים של בעלים, עורך ומציג.
- תפקידים מותאמים אישית - תפקידי IAM מותאמים אישית לחלוטין שאתה יוצר כדי להתאים קבוצה של הרשאות העונות על הדרישות הספציפיות של הארגון שלך.
תמחור
אילו מוצרים מקבלים תשלום? אילו הם ללא עלות?
מוצרי התשתית בתשלום של Firebase הם מסד נתונים בזמן אמת, אחסון ענן ל-Firebase, פונקציות ענן, אירוח, מעבדת בדיקות ואימות טלפון. אנו מציעים שכבה ללא עלות עבור כל התכונות הללו.
ל-Firebase יש גם מוצרים רבים ללא עלות: אנליטיקס, הודעות ענן, יוצר ההתראות, הגדרה מרחוק, יצירת אינדקס של אפליקציות, קישורים דינמיים ודיווח קריסה. אתה יכול להשתמש בכמות בלתי מוגבלת של כל אחד מהמוצרים האלה בכל התוכניות, כולל תוכנית Spark ללא עלות שלנו. בנוסף, כל תכונות האימות מעבר לאימות הטלפון אינן עלות.
האם Firebase מציע זיכויים לתקופת ניסיון ללא עלות עבור מוצרים בתשלום?
ניתן להשתמש בשירותי Firebase בתשלום במסגרת גרסת הניסיון בחינם של Google Cloud . משתמשי Google Cloud ו-Firebase חדשים יכולים לנצל תקופת ניסיון של 90 יום הכוללת זיכויים של 300$ בחינם בענן כדי לחקור ולהעריך את המוצרים והשירותים של Google Cloud ו-Firebase.
במהלך תקופת הניסיון בחינם של Google Cloud, תקבל חשבון חיוב בענן לניסיון בחינם. כל פרויקט Firebase שמשתמש בחשבון החיוב הזה יהיה בתוכנית התמחור של Blaze במהלך תקופת הניסיון בחינם.
אל תדאג, הגדרת חשבון חיוב בענן לניסיון בחינם לא מאפשרת לנו לחייב אותך. אינך מחויב אלא אם אתה מאפשר חיוב במפורש על ידי שדרוג חשבון החיוב בענן לניסיון בחינם לחשבון בתשלום. אתה יכול לשדרג לחשבון בתשלום בכל עת במהלך תקופת הניסיון. לאחר השדרוג, עדיין תוכל להשתמש בכל הזיכויים שנותרו (בתוך 90 הימים).
לאחר תום תקופת הניסיון בחינם, תצטרך לשדרג לאחור את הפרויקט שלך לתוכנית התמחור Spark או להגדיר את תוכנית התמחור של Blaze במסוף Firebase כדי להמשיך להשתמש בפרויקט Firebase שלך.
למידע נוסף על גרסת הניסיון בחינם של Google Cloud .
איך אני יודע איזו תוכנית תמחור מתאימה לי?
תוכנית תמחור ספארק
תוכנית Spark שלנו היא מקום מצוין לפתח את האפליקציה שלך ללא עלות. אתה מקבל את כל תכונות Firebase ללא עלות (Analytics, מלחין ההודעות, Crashlytics וכן הלאה) וכמויות נדיבות של תכונות התשתית בתשלום שלנו. עם זאת, אם תחרוג משאבי תוכנית Spark שלך בחודש קלנדרי, האפליקציה שלך תכבה לשארית אותו חודש. בנוסף, תכונות Google Cloud אינן זמינות בעת שימוש בתוכנית Spark.
תוכנית תמחור בלעז
תוכנית Blaze שלנו מיועדת לאפליקציות ייצור. תוכנית Blaze גם מאפשרת לך להרחיב את האפליקציה שלך עם תכונות של Google Cloud בתשלום. אתה משלם רק עבור המשאבים שאתה צורך, מה שמאפשר לך להגדיל את הביקוש. אנו שואפים להפוך את מחירי תוכנית Blaze שלנו לתחרותיים מול ספקי ענן מובילים בתעשייה.
כיצד אוכל לעקוב אחר השימוש והחיוב שלי?
אתה יכול לעקוב אחר השימוש שלך במשאבי הפרויקט במסוף Firebase בכל אחד ממרכזי השליטה הבאים:
מה קרה לתוכנית התמחור של Flame?
בינואר 2020, תוכנית התמחור של Flame ($25 לחודש של מכסה נוספת) הוסרה כאופציה להרשמות חדשות. משתמשי תוכנית קיימים קיבלו תקופת חסד כדי להעביר את הפרויקטים שלהם מחוץ לתוכנית Flame. בפברואר 2022, שאר הפרויקטים בתוכנית התמחור להבה שודרגו לתוכנית התמחור Spark.
בהתאם לכך,
- פרויקטים קיימים של תוכנית Spark ו-Blaze וכל פרויקט חדש כבר לא יכול לעבור או להירשם לתוכנית Flame.
- אם העברת פרויקט קיים של תוכנית Flame לתוכנית תמחור אחרת, הפרויקט לא יכול לחזור לתוכנית Flame.
- ניתן לשדרג פרויקטים ששודרגו לאחור לתוכנית Spark לתוכנית Blaze כדי לחדש שירותים נוספים בתשלום.
- הפניות לתוכנית להבה הוסרו מהתיעוד.
יש לך שאלות נוספות לגבי פרישת תוכנית להבה? קרא כמה מהשאלות הנפוצות הנוספות למטה.
רוצה ללמוד על תוכניות התמחור האחרות שמציעה Firebase? בקר בדף התמחור של Firebase שלנו! אם תרצה להתחיל להעביר פרויקטים קיימים לתוכנית תמחור אחרת, תוכל לעשות זאת במסוף Firebase עבור הפרויקט שלך.
שאלות נפוצות נוספות לגבי פרישה של תוכנית להבה
יש לי פרויקט או תהליך או מודל עסקי שמסתמך על עלות קבועה של Firebase. מה עלי לעשות?
הירשם לתוכנית התמחור של Blaze, והקפד להגדיר התראות תקציב .
האם ניתן לתת לי גישה מיוחדת ליצירת פרויקטים חדשים של תוכנית להבה?
לא, Firebase לא מציעה גישה מיוחדת לפרויקטים לעבור אליהם או להירשם לתוכנית Flame.
שיניתי את פרויקט תוכנית הלהבה שלי לתוכנית תמחור אחרת. איך אני משנה את זה בחזרה?
מעבר לתוכנית הלהבה כבר לא אפשרי. לקבלת גישה לשירותים הניתנים על ידי תוכנית Flame, ודא שאתה משתמש בתוכנית התמחור של Blaze, ושקול להגדיר התראות תקציב עבור הפרויקט שלך.
הפרויקט שלי הועבר אוטומטית לתוכנית תמחור אחרת כחלק מהפרישה של תוכנית הלהבה. מה עלי לעשות?
אם הפרויקט שלך דורש מכסה נוספת מעבר למה שסופק בתוכנית Spark, תצטרך לשדרג את הפרויקט שלך לתוכנית התמחור של Blaze.
מדוע מוציאים את תוכנית הלהבה לפנסיה?
במהלך השנים ראינו ירידה בשימוש בתוכנית להבה, ורוב הפרויקטים המשתמשים בתוכנית אינם צורכים את מלוא הערך שלה. שמירה על תוכנית התמחור הזו בדרך כלל אינה משתלמת, ואנו מרגישים שנוכל לשרת את כולם טוב יותר אם המשאבים יועברו ליוזמות אחרות של Firebase.
במה שונה השימוש ללא עלות בתכנית Blaze מהשימוש ללא עלות בתכנית Spark?
השימוש ללא עלות בתוכנית Blaze מחושב מדי יום. מגבלות השימוש שונות גם מתוכנית Spark עבור פונקציות ענן, אימות טלפון ומעבדת בדיקות.
עבור פונקציות ענן, שימוש ללא עלות בתוכנית Blaze מחושב ברמת חשבון Cloud Billing, לא ברמת הפרויקט ויש לו את המגבלות הבאות:
- 2 מיליון פניות/חודש
- 400K GB-שניות/חודש
- 200K שניות מעבד/חודש
- 5 GB של יציאה לרשת/חודש
עבור אימות טלפוני, השימוש ללא עלות בתוכנית Blaze מחושב מדי חודש.
עבור Test Lab, לשימוש ללא עלות בתוכנית Blaze יש את המגבלות הבאות:
- 30 דקות מכשיר פיזי ליום
- 60 דקות מכשיר וירטואלי ליום
האם מכסת השימוש ללא עלות מתאפסת כשאני משנה מתוכנית Spark לתוכנית Blaze?
שימוש ללא עלות מתוכנית Spark כלול בתוכנית Blaze. השימוש ללא עלות אינו מתאפס בעת מעבר לתוכנית Blaze.
מהו "חיבור מסד נתונים סימולטני"?
חיבור סימולטני שווה ערך למכשיר נייד אחד, לשונית דפדפן או אפליקציית שרת המחוברים למסד הנתונים. Firebase מטיל מגבלות קשות על מספר החיבורים בו-זמנית למסד הנתונים של האפליקציה שלך. מגבלות אלה מוקמות כדי להגן הן על Firebase והן על המשתמשים שלנו מפני שימוש לרעה.
מגבלת תוכנית Spark היא 100 ולא ניתן להעלות אותה. לתוכניות Flame ו-Blaze יש מגבלה של 200,000 חיבורים בו זמנית לכל מסד נתונים.
מגבלה זו אינה זהה למספר המשתמשים הכולל של האפליקציה שלך, מכיוון שהמשתמשים שלך לא מתחברים בבת אחת. אם אתה זקוק ליותר מ-200,000 חיבורים בו-זמנית, אנא קרא קנה מידה עם מסדי נתונים מרובים .
מה קורה אם אני חורג ממגבלות אחסון או הורדה של תוכנית Spark עבור מסד נתונים בזמן אמת?
כדי לספק לך מחיר צפוי, המשאבים העומדים לרשותך בתוכניות Spark מוגבלים. משמעות הדבר היא שכאשר תחרוג ממגבלת תוכנית כלשהי בכל חודש, האפליקציה שלך תכבה כדי למנוע שימוש נוסף במשאבים וחיובים נוספים.
מה קורה אם אני חורג ממגבלות חיבור בו-זמנית של תוכנית Spark עבור מסד נתונים בזמן אמת?
כאשר האפליקציה שלך תגיע למגבלת הבו-זימות שלה בתוכנית Spark, כל החיבורים הבאים יידחו עד שחלק מהחיבורים הקיימים ייסגרו. האפליקציה תמשיך לעבוד עבור משתמשים מחוברים.
מה קורה אם אני חורג ממגבלות העלאה, הורדה או אחסון של תוכנית Spark עבור Cloud Storage?
כאשר אתה חורג מהמגבלות עבור Cloud Storage בפרויקט בתוכנית Spark, התוצאה תלויה בסוג המגבלה שאתה חורג ממנה:
- אם תחרוג ממגבלת ה- GB המאוחסנת , לא תוכל לאחסן נתונים נוספים באותו פרויקט אלא אם תסיר חלק מהנתונים המאוחסנים או תשדרג לתוכנית שמספקת יותר שטח אחסון, או שטח אחסון בלתי מוגבל.
- אם תחרוג ממגבלת ההורדות של GB , האפליקציה שלך לא תוכל להוריד נתונים נוספים עד למחרת (החל מחצות, שעון האוקיינוס השקט של ארה"ב), אלא אם תשדרג לתוכנית עם מגבלות פחות מגבילות, או ללא הגבלות.
- אם תחרוג ממגבלת פעולות ההעלאה או ההורדה , האפליקציה שלך לא תוכל להעלות או להוריד נתונים נוספים עד למחרת (החל מחצות, שעון האוקיינוס השקט של ארה"ב), אלא אם תשדרג לתוכנית עם מגבלות פחות מגבילות, או ללא מגבלות. גבולות.
כיצד פועלת האינטגרציה של Firebase עם Google Cloud?
Firebase משולבת באופן עמוק עם Google Cloud . פרויקטים משותפים בין Firebase ו-Google Cloud, כך שניתן להפעיל את שירותי Firebase ו-Google Cloud בפרויקטים. אתה יכול לגשת לאותו פרויקט ממסוף Firebase או מ-Google Cloud Console. באופן ספציפי:
- מוצרי Firebase מסוימים מגובים ישירות על ידי Google Cloud, כגון Cloud Storage for Firebase. רשימת המוצרים המגובים על ידי Google Cloud תמשיך לגדול עם הזמן.
- רבות מההגדרות שלך, כולל שותפי עריכה ופרטי חיוב, משותפות על ידי Firebase ו-Google Cloud. השימוש שלך ב-Firebase וגם ב-Google Cloud מופיע באותו חשבון.
בנוסף, כאשר אתה משדרג לתוכנית Blaze, אתה יכול להשתמש בכל אחד מה-Infrastructure-as-a-Service ו-APIs ברמה עולמית של Google Cloud ישירות בתוך פרויקט Firebase שלך, בתמחור סטנדרטי של Google Cloud . אתה יכול גם לייצא נתונים מ-Google Cloud ישירות ל-BigQuery לצורך ניתוח. למידע נוסף, ראה קישור BigQuery עם Firebase.
ישנם יתרונות רבים לשיפור האבטחה, משפרי האחזור וחוסך זמן לשימוש ב-Google Cloud עם Firebase (לעומת שירותי ענן אחרים שאינם ממוקמים יחד). בדוק את אתר Google Cloud לפרטים נוספים.
מה יקרה לפרויקט Firebase שלי אם אני מוסיף או מסיר חשבונות חיוב עבור הפרויקט הזה ב-Google Cloud Console?
אם נוסף חשבון Cloud Billing לפרויקט ב-Google Cloud Console, אותו פרויקט ישודרג אוטומטית לתוכנית Firebase Blaze אם הפרויקט הזה נמצא כעת בתוכנית Spark.
לעומת זאת, אם חשבון חיוב פעיל בענן יוסר מפרויקט ב-Google Cloud Console, פרויקט זה ישודרג לאחור לתוכנית Firebase Spark.
האם אוכל לשדרג, לשדרג לאחור או לבטל בכל עת?
כן, אתה יכול לשדרג, לשדרג לאחור או לבטל בכל עת. שים לב שאנו לא מספקים החזרים יחסיים עבור שדרוג לאחור או ביטולים. המשמעות היא שאם תשדרג לאחור או תבטל לפני תום תקופת החיוב שלך, אתה עדיין משלם עבור שארית החודש.
איזו תמיכה אקבל?
כל אפליקציות Firebase, כולל אלה המשתמשות בתכניות ללא עלות, מגיעות עם תמיכה בדוא"ל מצוות Firebase במהלך שעות הפעילות בארה"ב באוקיינוס השקט. All accounts have unlimited support for billing-related issues, account-related issues, technical (troubleshooting) questions, and incident reports.
Can I cap usage on the Blaze plan?
No, you cannot currently cap your Blaze plan usage. We are evaluating options for supporting caps on Blaze plan usage.
Blaze users can define a budget for their project or account, and receive alerts as their spending approaches those limits. Learn how to set up budget alerts .
What are automated backups? Do you offer hourly backups?
Automated backups are an advanced feature for customers on our Blaze pricing plan that backs up your Firebase Realtime Database data once a day and uploads it to Google Cloud Storage .
We do not offer hourly backups.
Do you offer open-source, nonprofit, or educational discounts?
Our Spark plan can be used by any type of individual or organization, including nonprofits, schools, and open-source projects. Since these plans already include generous quotas, we don't offer any special discounts or plans for open-source, nonprofit, or educational projects.
Do you offer enterprise contracts, pricing, support, or dedicated infrastructure hosting?
Our Blaze plan is suitable for enterprises of all sizes, and our SLA meets or exceeds the industry standard for cloud infrastructure. However, we do not currently offer enterprise contracts, pricing, or support, nor do we offer dedicated infrastructure hosting (that is, on-premises installations) for services like our Realtime Database. We are hard at work adding some of these features.
Do you offer ad-hoc pricing? I only want pay-as-you-go for one or two features.
We offer ad-hoc pricing in the Blaze plan, where you pay only for the features you use.
How do the paid Firebase plans work with Ads? Are there no-cost advertising credits with paid plans?
The Firebase pricing plans are separate from Ads, so there are no advertising credits without cost. As a Firebase developer, you are able to "link" your Ads account to Firebase to support conversion tracking.
All ads campaigns are managed directly in Ads, and Ads billing is managed from the Ads console.
Cloud Functions pricing
Why do I need a billing account to use Cloud Functions for Firebase?
Cloud Functions for Firebase relies on some paid Google services. New function deployments with Firebase CLI 11.2.0 and higher rely on Cloud Build and Artifact Registry . Deployments to older versions use Cloud Build in the same way, but rely on Container Registry and Cloud Storage for storage instead of Artifact Registry. Usage of these services will be billed in addition to existing pricing.
Storage space for Firebase CLI 11.2.0 and newer versions
Artifact Registry provides the containers in which functions run. Artifact Registry provides the first 500MB at no cost, so your first function deployments may not incur any fees. Above that threshold, each additional GB of storage is billed at $0.10 per month.
Storage space for Firebase CLI 11.1.x and prior versions
For functions deployed to older versions, Container Registry , provides the containers in which functions run. You'll be billed for each container required to deploy a function. You may notice small charges for each container stored—for example, 1GB of storage is billed at $0.026 per month .
To understand more about how your bill might change, please review the following
- Cloud Functions pricing : existing no-cost tier is unchanged.
- Cloud Build pricing: Cloud Build provides for a no-cost tier.
- Artifact Registry pricing .
- Container Registry pricing .
Does Cloud Functions for Firebase still have no-cost usage?
Yes. On the Blaze plan, Cloud Functions provides a no-cost tier for invocations, compute time, and internet traffic. The first 2,000,000 invocations, 400,000 GB-sec, 200,000 CPU-sec, and 5 GB of Internet egress traffic is provided at no cost each month. You'll be charged only for usage above those thresholds.
After the first 500MB of no-cost storage, each deployment operation will incur small-scale charges for the storage space used for the function's container. 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. Do I need a billing account?
Yes. Since extensions use Cloud Functions , extensions will be subject to the same charges as other functions.
To use extensions, 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
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.
A/B Testing: Why can't I view my experiments after unlinking and re-linking my project to Google Analytics?
Linking to a different Google Analytics property will cause you to lose access to experiments created beforehand. To regain access to a previous experiment, re-link your project to the Google Analytics property that was linked when the experiment was created.
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.5.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: 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: 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 .
אימות
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 |
לא | 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 runtime support
How do I upgrade to the latest supported version of Node.js?
- Make sure you're on the Blaze pricing plan .
- Make sure you are using the latest version of the Firebase CLI.
- Update the
engines
field in your functions'package.json
. - Optionally, test your changes using the Firebase Local Emulator Suite .
- Redeploy all functions.
How can I make sure I deployed my functions to a specific Node.js runtime?
In the Firebase console, go to the functions dashboard , select a function, and check the function's language under Additional details .
I use Firebase Extensions. Will I be affected by Cloud Functions runtime updates?
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 periodically 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: 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 for Firebase
Cloud Storage for Firebase: Why can't I use Cloud Storage for Firebase?
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 for Firebase: Why do I get error code 412 responses about service account permissions and failed service account operations when using the Cloud Storage for Firebase API?
It's likely you're getting 412 error codes either because the Cloud Storage for Firebase API is not enabled for your project or a necessary service account is missing the required permissions.
See the related FAQ .
Cloud Storage for Firebase: Why do I see new service account IDs associated with my Firebase projects that use Cloud Storage for Firebase?
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.
The service account that Cloud Storage for Firebase uses is scoped to your project and is named
service- PROJECT_NUMBER @gcp-sa-firebasestorage.iam.gserviceaccount.com
.
If you used Cloud Storage for Firebase before September 19, 2022, you may see an additional service account on previously-linked Cloud Storage buckets named firebase-storage@system.gserviceaccount.com
. As of September 19, 2022, this service account is no longer supported.
You can view all service accounts associated with your project in the Firebase console, on the Service accounts tab .
Adding the new service account
If you removed the service account previously or the service account is not present in your project, you may do one of the following to add the account.
- (Recommended) Automated: Use the AddFirebase REST endpoint to re-import your bucket into Firebase. You will only need to call this endpoint once, not once for each linked bucket.
- Manual: Follow the steps in Creating and managing service accounts . Following that guide, add a service account with the IAM role
Cloud Storage for Firebase Service Agent
, and service account name
service- PROJECT_NUMBER @gcp-sa-firebasestorage.iam.gserviceaccount.com
.
Removing the new service account
We strongly discourage you from removing the service account because this may block access to your Cloud Storage buckets from your apps. To remove the service account from your project, follow the instructions in Disabling a service account .
Crashlytics
Visit the Crashlytics troubleshooting & FAQ page for helpful tips and answers to more FAQs.
קישורים דינמיים
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.
Firebase Local Emulator Suite
Why do Emulator Suite logs show an error starting with "Multiple projectIds are not recommended in single project mode"?
This message means the Emulator Suite has detected it may be running a particular product emulator using different project IDs. This may indicate a misconfiguration, and can cause issues when emulators try to communicate with one another, and when you try to interact with emulators from your code. If project IDs don't match, it often appears that data is missing, since data stored in emulators is keyed to projectID, and interoperability depends on matching project IDs.
This has been a common source of confusion among developers, so by default the Local Emulator Suite will now only allow running with a single project ID, unless you specify otherwise in the firebase.json
configuration file. If an emulator detects more than one project ID, it will log a warning and potentially throw a fatal error.
Check your project ID declaration(s) for mismatches in:
- The default project set at the command line. By default, the project ID will be taken on startup from the project selected with
firebase init
orfirebase use
. To view the list of projects (and see which one is selected) usefirebase projects:list
. - Unit tests. The project ID is often specified in calls to the Rules Unit Testing library methods
initializeTestEnvironment
orinitializeTestApp
. Other testing code may initialize withinitializeApp(config)
. - The command line
--project
flag. Passing the Firebase CLI--project
flag overrides the default project. You'll need to ensure the value of the flag matches the project ID in unit tests and app initialization.
Platform-specific places to check:
Web | The projectId property in your JavaScript firebaseConfig object, used in initializeApp . |
Android | The project_id property inside the google-services.json configuration file. |
Apple platforms | The PROJECT_ID property in the GoogleService-Info.plist configuration file. |
To disable single project mode, update firebase.json
with the singleProjectMode
key:
{ "firestore": { ... }, "functions": { ... }, "hosting": { ... }, "emulators": { "singleProjectMode": false, "auth": { "port": 9099 }, "functions": { "port": 5001 }, ... } }
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: 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: 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.
Firebase User Segmentation Storage
What is Firebase User Segmentation Storage?
Firebase User Segmentation Storage stores Firebase installation IDs and related attributes and segments as well as 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.
Have other challenges or don't see your issue outlined below? Please report a bug or request a feature and join the Stack Overflow discussions.
Firebase projects and Firebase apps
What is a Firebase project?
A Firebase project is the top-level entity for Firebase. In a project, you can register your Apple, Android, or web apps. After you register your apps with Firebase, you can add the product-specific Firebase SDKs to your app, like Analytics, Cloud Firestore, Crashlytics, or Remote Config.
You should register your Apple, Android, and web app variants within a single Firebase project. You can use multiple Firebase projects to support multiple environments, such as development, staging, and production.
Here are some resources for learning more about Firebase projects:
- Understand Firebase projects — provides brief overviews of several important concepts about Firebase projects, including their relationship with Google Cloud and the basic hierarchy of a project and its apps and resources.
- General best practices for setting up Firebase projects — provides general, high-level best practices for setting up Firebase projects and registering your apps with a project so that you have a clear development workflow that uses distinct environments.
Note that for all Firebase projects, Firebase automatically adds a label of firebase:enabled
within the Labels page for your project in the Google Cloud Console. Learn more about this label in our FAQ .
What is a Google Cloud organization?
A Google Cloud organization is a container for Google Cloud projects (including Firebase projects). This hierarchy enables better organization, access management, and auditing of your Google Cloud and Firebase projects. For more information, refer to Creating and Managing Organizations .
How do I add Firebase to an existing Google Cloud project?
You may have existing projects managed through the Google Cloud Console or the Google APIs console . By default, these projects are visible in the Firebase console , but are not considered to be Firebase projects.
To add Firebase to your existing Google Cloud project, click Add Project on the Firebase console landing page, then select your project in the Project name menu.
Why does my Google Cloud project have a label of firebase:enabled
?
In the Labels page for your project in the Google Cloud Console, you may see a label of firebase:enabled
(specifically, a Key
of firebase
with a Value
of enabled
).
Firebase automatically added this label because your project is a Firebase project, which means that your project has Firebase-specific configurations and services enabled for it. Learn more about the relationship between Firebase projects and Google Cloud .
We strongly recommend that you do not modify or delete this label. This label is used by Firebase and Google Cloud to list your Firebase projects (for example, via the REST API projects.list
endpoint or in menus within the Firebase console).
Be aware that manually adding this label to your list of project labels does NOT enable Firebase-specific configurations and services for your Google Cloud project. To do that, you need to add Firebase via the Firebase console (or, for advanced use cases, via the Firebase Management REST API or the Firebase CLI ).
Why isn't my Firebase project showing up in my list of Firebase projects?
This FAQ is applicable if you don't see your Firebase project in the following places:
- In a list of projects that you're viewing within the Firebase console
- In the response from calling the REST API
projects.list
endpoint - In the response from running the Firebase CLI command
firebase projects:list
Try these troubleshooting steps:
- First, try accessing your project by visiting the project's URL directly. Use the following format:
https://console.firebase.google.com/project/ PROJECT-ID /overview
- If you can't access the project or receive permissions errors, check the following:
- Make sure that you're signed into Firebase using the same Google account that has access to the project. You can sign in and out of the Firebase console via your account avatar in the top-right corner of the console.
- Check if you can view the project in the Google Cloud Console .
- Make sure that your project has the label
firebase:enabled
in the Labels page for your project in the Google Cloud Console. Firebase and Google Cloud use this label to list your Firebase projects. If you do not see this label but the Firebase Management API is enabled for your project, then manually add the label (specifically, aKey
offirebase
with aValue
ofenabled
). - Make sure that you're assigned one of the basic IAM roles (Owner, Editor, Viewer) or a role that has Firebase-related permissions in it, for example a Firebase predefined role . You can view your role(s) in the IAM page of the Google Cloud Console.
- If your project belongs to a Google Cloud organization, you may require additional permissions to see the project listed in the Firebase console. Contact the person who manages your Google Cloud organization to give you the appropriate role to view the project, for example the Browser role.
If none of the troubleshooting steps above enable you to see your project in a list of Firebase projects, contact Firebase Support .
How many projects can I have per account?
- Spark pricing plan — Your project quota is limited to a small number of projects (usually around 5-10).
- Blaze pricing plan — Your project quota per Cloud Billing account increases substantially as long as your Cloud Billing account is in good standing.
The limit on project quota is rarely a concern for most developers, but if needed, you can request an increase in your project quota .
Note that the complete deletion of a project requires 30 days and counts toward your quota until it is fully deleted.
How many Firebase Apps can I have in a Firebase project?
A Firebase project is a container for Firebase Apps across Apple, Android, and web. Firebase restricts the total number of Firebase Apps within a Firebase project to 30.
After this number, performance starts to degrade (especially for Google Analytics) and eventually, at a higher number of apps, some product functionality stops working. Additionally, adding a Firebase App to a project creates one or more underlying OAuth 2.0 client IDs. There's a limit of around 30 client IDs that can be created within a single project.
You should ensure that all Firebase Apps within a single Firebase project are platform variants of the same application from an end-user perspective. For example, if you develop a white label application, each independently labeled app should have its own Firebase project, but the Apple and Android versions of that label can be in the same project. Read more detailed guidance in our general best practices for setting up Firebase projects .
In the rare case your project requires more than 30 apps, you can request an app limit increase. Your project must be on the Blaze pricing plan to make this request. Visit the Google Cloud Console to make your request and have it evaluated. Learn more about quota management in the Google Cloud documentation.
What happens if I tag my project as a "production" environment?
In the Firebase console, you can tag your Firebase projects with their environment type, either as Production or Unspecified (non-prod) environments.
Tagging your project as an environment type has no effect on how your Firebase project works or its features. However, the tagging can help you and your team manage your various Firebase projects for the app lifecycle.
If you tag your project as a production environment, we add a brightly colored Prod tag to the project in the Firebase console, reminding you that any changes could affect your associated production apps. In the future, we might add more features and safeguards for Firebase projects tagged as production environments.
To change the environment type of your Firebase project, go to settings Project settings > General , then in the Your project card under Environment , click edit to change the environment type.
Where can I find the App ID for my Firebase app?
In the Firebase console, go to your settings Project settings . Scroll down to the Your apps card, then click on the desired Firebase App to view the app's information, including its App ID .
Here are some example App ID values:
- Firebase iOS Apps:
1:1234567890:ios:321abc456def7890
- Firebase Android Apps:
1:1234567890:android:321abc456def7890
- Firebase Web Apps:
1:1234567890:web:321abc456def7890
What are the prerequisites for linking Google Play / AdMob / Google Ads / BigQuery to my Firebase project or app?
- For linking your Google Play account , you need the following:
- Either of the following Firebase roles: Owner or Firebase Admin
and - Either of the following Google Play access levels: account Owner or Admin
- Either of the following Firebase roles: Owner or Firebase Admin
- For linking your AdMob app , you need to be both a Firebase project owner and an AdMob administrator.
- For linking your AdWords account , you need to be both a Firebase project owner and an AdWords administrator.
- For linking your BigQuery project , you need to be the Firebase project owner.
What open source notices should I include in my app?
On Apple platforms, the Firebase pod contains a NOTICES file which includes the relevant entries. The Firebase Android SDK contains a helper Activity
for showing license information.
Permissions and access to Firebase projects
How do I assign a project member a role, like the Owner role?
To manage the role(s) assigned to each project member, you must be an Owner of the Firebase project (or be assigned a role with the permission resourcemanager.projects.setIamPolicy
).
Here are the places where you can assign and manage roles:
- The Firebase console offers a simplified way to assign roles to project members in the Users and permissions tab of settings > Project settings . In the Firebase console, you can assign any of the basic roles (Owner, Editor, Viewer), the Firebase Admin/Viewer roles , or any of the Firebase predefined product-category roles .
- The Google Cloud Console offers an expansive set of tools to assign roles to project members in the IAM page . In the Cloud Console, you can also create and manage custom roles , as well as give service accounts access to your project.
Note that in the Google Cloud Console, project members are called principals .
If the Owner of your project can no longer perform the tasks of an Owner (for example, the person left your company) and your project isn't managed via a Google Cloud organization (see next paragraph), you can contact Firebase Support to have a temporary Owner assigned.
Note that if a Firebase project is part of a Google Cloud organization, it may not have an Owner. If you're unable to find an Owner for your Firebase project, contact the person who manages your Google Cloud organization to assign an Owner for the project.
How do I find the Owner of a Firebase project?
You can view project members and their roles in the following places:
- If you have access to the project in the Firebase console, you can view the list of project members, including Owners, in the Users and permissions page of the Firebase console.
- If you do not have access to the project in the Firebase console, check if you have access to the project in the Google Cloud Console. You can view the list of project members, including Owners, in the IAM page of the Google Cloud Console.
If the Owner of your project can no longer perform the tasks of an Owner (for example, the person left your company) and your project isn't managed via a Google Cloud organization (see next paragraph), you can contact Firebase Support to have a temporary Owner assigned.
Note that if a Firebase project is part of a Google Cloud organization, it may not have an Owner. Instead, the person who manages your Google Cloud organization can perform many tasks that an Owner can do. However, to perform several Owner-specific tasks (like assigning roles or managing Google Analytics properties), the administrator may need to assign themselves the actual Owner role to perform those tasks. If you're unable to find an Owner for your Firebase project, contact the person who manages your Google Cloud organization to assign an Owner for the project.
Why or when should I assign a project member the Owner role?
To ensure proper management of a Firebase project, it must have an Owner . A project's Owner is the person who can perform several important administrative actions (like assigning roles and managing Google Analytics properties), and Firebase Support can only fulfill administrative requests from demonstrated project Owners.
After you set up the Owner(s) for a Firebase project, it's important to keep those assignments up-to-date.
Note that if a Firebase project is part of a Google Cloud organization, the person who manages your Google Cloud organization can perform many tasks that an Owner can do. However, for several Owner-specific tasks (like assigning roles or managing Google Analytics properties), the administrator may need to assign themselves the actual Owner role to perform those tasks.
I don't think that I have a Firebase project, but I got an email about one. How do I access this project?
The email you received should contain a link to open your Firebase project. Clicking the link in the email should open the project in the Firebase console.
If you're not able to open the project in the link, make sure that you're signed into Firebase using the same Google account that received the email about the project. You can sign in and out of the Firebase console via your account avatar in the top-right corner of the console.
Note that if you're the administrator of a Google Cloud organization, you may be notified about changes to Firebase projects inside your organization. However, you may not have sufficient permissions to open the Firebase project. In these cases, the simplest solution is to assign yourself the actual Owner role to open the project and perform the required actions. Learn more about why and when to assign the Owner role .
Platforms and frameworks
Visit the platform-specific troubleshooting & FAQ pages for helpful tips and answers for more FAQ.
Firebase console
What are the supported browsers for accessing the Firebase console?
The Firebase console can be accessed from recent versions of popular desktop browsers such as Chrome, Firefox, Safari and Edge. Mobile browsers are currently not fully supported.
I can load the Firebase console, but why can't I find or access my Firebase project?
This FAQ is applicable if you're experiencing either of the following issues:
- The Firebase console returns an error page that says your project may not exist or that you don't have access to the project.
- The Firebase console doesn't display your project even when you enter its project ID or project name in the console's search field.
Try these troubleshooting steps:
- First, try accessing your project by visiting the project's URL directly. Use the following format:
https://console.firebase.google.com/project/ PROJECT-ID /overview
- If you still can't access the project or receive permissions errors, check the following:
- Make sure that you're signed into Firebase using the same Google account that has access to the project. You can sign in and out of the Firebase console via your account avatar in the top-right corner of the console.
- Make sure that the Firebase Management API is enabled for the project.
- Make sure that you're assigned one of the basic IAM roles (Owner, Editor, Viewer) or a role that has Firebase-related permissions in it, for example a Firebase predefined role . You can view your role(s) in the IAM page of the Google Cloud Console.
- If your project belongs to a Google Cloud organization, you may require additional permissions to see the project listed in the Firebase console. Contact the person who manages your Google Cloud organization to give you the appropriate role to view the project, for example the Browser role.
If none of the troubleshooting steps above enable you to find or access your project, contact Firebase Support .
Why is the Firebase console not loading for me?
This FAQ is applicable if you're experiencing any of the following issues:
- A page in the Firebase console never finishes loading.
- Data within a page doesn't load as expected.
- You receive browser error messages when loading the Firebase console.
Try these troubleshooting steps:
- Check the Console row of the Firebase Status Dashboard for any possible service interruptions.
- Make sure that you're using a supported browser .
- Try to load the Firebase console in an incognito or private window.
- Disable all browser extensions.
- Verify that the network connection is not blocked by ad blocker, antivirus, proxy, firewall, or other software.
- Try loading the Firebase console using a different network or device.
- If using Chrome, check the Developer Tools Console for any errors .
If none of the troubleshooting steps above resolve the issue, contact Firebase Support .
How is my Firebase console language determined?
The language setting for the Firebase console is based on the language selected in your Google account settings .
To change your language preference, see Change language .
The Firebase console supports the following languages:
- English
- Brazilian Portuguese
- French
- German
- Indonesian
- Japanese
- Korean
- Russian
- Simplified Chinese
- Spanish
- Traditional Chinese
What roles and permissions does the Firebase console support?
The Firebase console and Google Cloud Console use the same underlying roles and permissions. Learn more about roles and permissions in the Firebase IAM documentation .
Firebase supports the fundamental (basic) roles of Owner, Editor, and Viewer:
- A project Owner can add other members to the project, set up integrations (project linking to services like BigQuery or Slack), and has full edit access for the project.
- A project Editor has full edit access for the project.
- A project Viewer has only read access for the project. Note that the Firebase console currently does not hide/disable edit UI controls from project Viewers, but these operations will fail for project members assigned the Viewer role.
Firebase also supports:
- Firebase predefined roles — Curated Firebase-specific roles that enable more granular access control than the basic roles of Owner, Editor, and Viewer.
- Custom roles — Fully customized IAM roles that you create to tailor a set of permissions that meet the specific requirements of your organization.
Pricing
Which products are paid? Which are no-cost?
Firebase's paid infrastructure products are the Realtime Database, Cloud Storage for Firebase, Cloud Functions, Hosting, Test Lab, and phone authentication. We offer a no-cost tier for all of these features.
Firebase also has many no-cost products: Analytics, Cloud Messaging, the Notifications composer, Remote Config, App Indexing, Dynamic Links, and Crash Reporting. You can use an unlimited amount of any of these products in all plans, including our no-cost Spark plan. In addition, all Authentication features beyond phone authentication are no-cost.
Does Firebase offer no-cost trial credits for paid products?
Firebase paid services can be used under the Google Cloud Free Trial . New Google Cloud and Firebase users can take advantage of a 90-day trial period that includes $300 in free Cloud Billing credits to explore and evaluate Google Cloud and Firebase products and services.
During the Google Cloud Free Trial period, you'll be provided a Free Trial Cloud Billing account. Any Firebase project that uses that billing account will be on the Blaze pricing plan during the free trial period.
Don't worry, setting up this Free Trial Cloud Billing account does not enable us to charge you. You are not charged unless you explicitly enable billing by upgrading your Free Trial Cloud Billing account to a paid account. You can upgrade to a paid account at any time during the trial. After you've upgraded, you can still use any remaining credits (within the 90-day period).
Once the free trial expires, you'll need to either downgrade your project to the Spark pricing plan or set up the Blaze pricing plan in the Firebase console to continue using your Firebase project.
Learn more about the Google Cloud Free Trial .
How do I know which pricing plan is right for me?
Spark pricing plan
Our Spark plan is a great place to develop your app at no cost. You get all the no-cost Firebase features (Analytics, the Notifications composer, Crashlytics, and so on) and generous amounts of our paid infrastructure features. However, if you exceed your Spark plan resources in a calendar month, your app will be shut off for the remainder of that month. In addition, Google Cloud features are not available when using the Spark plan.
Blaze pricing plan
Our Blaze plan is designed for production apps. The Blaze plan also allows you to extend your app with paid Google Cloud features. You pay only for the resources that you consume, allowing you to scale with demand. We strive to make our Blaze plan prices competitive with industry-leading cloud providers.
How can I monitor my usage and billing?
You can track your usage of project resources in the Firebase console on any of the following dashboards:
What happened to the Flame pricing plan?
In January 2020, the Flame pricing plan ($25/mo of additional quota) was removed as an option for new sign-ups. Existing plan users were granted a grace period to migrate their projects off the Flame plan. In February 2022, the remaining projects on the Flame pricing plan were downgraded to the Spark pricing plan.
Accordingly,
- Existing Spark and Blaze plan projects and any new projects can no longer switch to or sign up for the Flame plan.
- If you moved an existing Flame plan project to a different pricing plan, the project cannot return to the Flame plan.
- Projects downgraded to the Spark plan can be upgraded to the Blaze plan to resume additional paid services.
- References to the Flame plan have been removed from documentation.
Do you have more questions about the Flame plan retirement? Read some of the additional FAQs below.
Want to learn about the other pricing plans offered by Firebase? Visit our Firebase pricing page ! If you'd like to start moving any existing projects to another pricing plan, you can do that in the Firebase console for your project.
Additional FAQs about the Flame plan retirement
I have a project or a process or a business model that relies on a fixed Firebase cost. What should I do?
Sign up for the Blaze pricing plan, and make sure to set budget alerts .
May I be given special access to create new Flame plan projects?
No, Firebase isn't offering special access for projects to switch to or sign-up for the Flame plan.
I changed my Flame plan project to a different pricing plan. How do I change it back?
Switching to the Flame plan is no longer possible. For access to services provided by the Flame plan, make sure that you're using the Blaze pricing plan, and consider setting up budget alerts for your project.
My project was automatically switched to a different pricing plan as part of the Flame plan retirement. What should I do?
If your project requires additional quota beyond what is provided with the Spark plan, you'll need to upgrade your project to the Blaze pricing plan.
Why is the Flame plan being retired?
Over the years, we've seen declining usage of the Flame plan, and most projects that use the plan are not consuming its full value. Maintaining this pricing plan is generally not cost-effective, and we feel that we can serve everyone better if resources went to other Firebase initiatives.
How is the no-cost usage in the Blaze plan different from the no-cost usage in the Spark plan?
No-cost usage on the Blaze plan is calculated daily. Usage limits also differ from the Spark plan for Cloud Functions, phone authentication, and Test Lab.
For Cloud Functions, no-cost usage on the Blaze plan is calculated at the Cloud Billing account level, not the project level and has the following limits:
- 2M invocations/month
- 400K GB-seconds/month
- 200K CPU-seconds/month
- 5 GB of networking egress/month
For phone authentication, no-cost usage on the Blaze plan is calculated monthly.
For Test Lab, no-cost usage on the Blaze plan has the following limits:
- 30 physical device minutes/day
- 60 virtual device minutes/day
Does the no-cost usage quota reset when I change from a Spark to a Blaze plan?
No-cost usage from the Spark plan is included in the Blaze plan. No-cost usage does not reset when moving to a Blaze plan.
What is a "simultaneous database connection"?
A simultaneous connection is equivalent to one mobile device, browser tab, or server app connected to the database. Firebase imposes hard limits on the number of simultaneous connections to your app's database. These limits are in place to protect both Firebase and our users from abuse.
The Spark plan limit is 100 and cannot be raised. The Flame and Blaze plans have a limit of 200,000 simultaneous connections per database.
This limit isn't the same as the total number of users of your app, because your users don't all connect at once. If you need more than 200,000 simultaneous connections, please read Scale with Multiple Databases .
What happens if I exceed Spark plan storage or download limits for Realtime Database?
To provide you with a predictable price, the resources available to you in the Spark plans are capped. This means that when you exceed any plan limit in any month, your app will be turned off to prevent any further resource usage and additional charges.
What happens if I exceed Spark plan simultaneous connection limits for Realtime Database?
When your app reaches its concurrency limit on the Spark plan, any subsequent connections will be rejected until some of the existing connections are closed. The app will continue to work for users who are connected.
What happens if I exceed Spark plan upload, download or storage limits for Cloud Storage?
When you exceed limits for Cloud Storage in a project on the Spark plan, the result depends on the type of limit that you exceed:
- If you exceed the GB stored limit, you will not be able to store any more data in that project unless you remove some of the data stored or upgrade to a plan that provides more storage space, or unlimited storage space.
- If you exceed the GB downloaded limit, your app will not be able to download more data until the next day (starting at midnight, US Pacific Time), unless you upgrade to a plan with less restrictive limits, or with no limits.
- If you exceed the upload or download operations limit, your app will not be able to upload or download more data until the next day (starting at midnight, US Pacific Time), unless you upgrade to a plan with less restrictive limits, or with no limits.
How does Firebase's integration with Google Cloud work?
Firebase is deeply integrated with Google Cloud . Projects are shared between Firebase and Google Cloud, so projects can have Firebase services and Google Cloud services enabled. You can access the same project from the Firebase console or the Google Cloud Console. Specifically:
- Certain Firebase products are backed directly by Google Cloud, such as Cloud Storage for Firebase. The list of products backed by Google Cloud will continue to grow over time.
- Many of your settings, including collaborators and billing information, are shared by Firebase and Google Cloud. Your usage of both Firebase and Google Cloud appears on the same bill.
In addition, when you upgrade to the Blaze plan, you can use any of Google Cloud's world-class Infrastructure-as-a-Service and APIs directly inside your Firebase project, at standard Google Cloud pricing . You can also export data from Google Cloud directly to BigQuery for analysis. To learn more, see Link BigQuery with Firebase.
There are many security-enhancing, latency-improving, and time-saving benefits to using Google Cloud with Firebase (versus other, cloud services that are not co-located). Check out the Google Cloud site for more details.
What happens to my Firebase project if I add or remove billing accounts for that project in the Google Cloud Console?
If a Cloud Billing account is added to a project in the Google Cloud Console, the same project will automatically be upgraded to the Firebase Blaze plan if that project is currently on the Spark plan.
In contrast, if an existing active Cloud Billing account is removed from a project in the Google Cloud Console, that project will be downgraded to the Firebase Spark plan.
Can I upgrade, downgrade, or cancel at any time?
Yes, you can upgrade, downgrade, or cancel at any time. Note that we don't provide prorated refunds for downgrades or cancellations. This means that if you downgrade or cancel before the end of your billing period, you still pay for the remainder of the month.
What kind of support will I receive?
All Firebase apps, including those using no-cost plans, come with email support from Firebase staff during US Pacific business hours. All accounts have unlimited support for billing-related issues, account-related issues, technical (troubleshooting) questions, and incident reports.
Can I cap usage on the Blaze plan?
No, you cannot currently cap your Blaze plan usage. We are evaluating options for supporting caps on Blaze plan usage.
Blaze users can define a budget for their project or account, and receive alerts as their spending approaches those limits. Learn how to set up budget alerts .
What are automated backups? Do you offer hourly backups?
Automated backups are an advanced feature for customers on our Blaze pricing plan that backs up your Firebase Realtime Database data once a day and uploads it to Google Cloud Storage .
We do not offer hourly backups.
Do you offer open-source, nonprofit, or educational discounts?
Our Spark plan can be used by any type of individual or organization, including nonprofits, schools, and open-source projects. Since these plans already include generous quotas, we don't offer any special discounts or plans for open-source, nonprofit, or educational projects.
Do you offer enterprise contracts, pricing, support, or dedicated infrastructure hosting?
Our Blaze plan is suitable for enterprises of all sizes, and our SLA meets or exceeds the industry standard for cloud infrastructure. However, we do not currently offer enterprise contracts, pricing, or support, nor do we offer dedicated infrastructure hosting (that is, on-premises installations) for services like our Realtime Database. We are hard at work adding some of these features.
Do you offer ad-hoc pricing? I only want pay-as-you-go for one or two features.
We offer ad-hoc pricing in the Blaze plan, where you pay only for the features you use.
How do the paid Firebase plans work with Ads? Are there no-cost advertising credits with paid plans?
The Firebase pricing plans are separate from Ads, so there are no advertising credits without cost. As a Firebase developer, you are able to "link" your Ads account to Firebase to support conversion tracking.
All ads campaigns are managed directly in Ads, and Ads billing is managed from the Ads console.
Cloud Functions pricing
Why do I need a billing account to use Cloud Functions for Firebase?
Cloud Functions for Firebase relies on some paid Google services. New function deployments with Firebase CLI 11.2.0 and higher rely on Cloud Build and Artifact Registry . Deployments to older versions use Cloud Build in the same way, but rely on Container Registry and Cloud Storage for storage instead of Artifact Registry. Usage of these services will be billed in addition to existing pricing.
Storage space for Firebase CLI 11.2.0 and newer versions
Artifact Registry provides the containers in which functions run. Artifact Registry provides the first 500MB at no cost, so your first function deployments may not incur any fees. Above that threshold, each additional GB of storage is billed at $0.10 per month.
Storage space for Firebase CLI 11.1.x and prior versions
For functions deployed to older versions, Container Registry , provides the containers in which functions run. You'll be billed for each container required to deploy a function. You may notice small charges for each container stored—for example, 1GB of storage is billed at $0.026 per month .
To understand more about how your bill might change, please review the following
- Cloud Functions pricing : existing no-cost tier is unchanged.
- Cloud Build pricing: Cloud Build provides for a no-cost tier.
- Artifact Registry pricing .
- Container Registry pricing .
Does Cloud Functions for Firebase still have no-cost usage?
Yes. On the Blaze plan, Cloud Functions provides a no-cost tier for invocations, compute time, and internet traffic. The first 2,000,000 invocations, 400,000 GB-sec, 200,000 CPU-sec, and 5 GB of Internet egress traffic is provided at no cost each month. You'll be charged only for usage above those thresholds.
After the first 500MB of no-cost storage, each deployment operation will incur small-scale charges for the storage space used for the function's container. 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. Do I need a billing account?
Yes. Since extensions use Cloud Functions , extensions will be subject to the same charges as other functions.
To use extensions, 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
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.
A/B Testing: Why can't I view my experiments after unlinking and re-linking my project to Google Analytics?
Linking to a different Google Analytics property will cause you to lose access to experiments created beforehand. To regain access to a previous experiment, re-link your project to the Google Analytics property that was linked when the experiment was created.
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.5.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: 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: 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 .
אימות
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 |
לא | 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 runtime support
How do I upgrade to the latest supported version of Node.js?
- Make sure you're on the Blaze pricing plan .
- Make sure you are using the latest version of the Firebase CLI.
- Update the
engines
field in your functions'package.json
. - Optionally, test your changes using the Firebase Local Emulator Suite .
- Redeploy all functions.
How can I make sure I deployed my functions to a specific Node.js runtime?
In the Firebase console, go to the functions dashboard , select a function, and check the function's language under Additional details .
I use Firebase Extensions. Will I be affected by Cloud Functions runtime updates?
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 periodically 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: 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 for Firebase
Cloud Storage for Firebase: Why can't I use Cloud Storage for Firebase?
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 for Firebase: Why do I get error code 412 responses about service account permissions and failed service account operations when using the Cloud Storage for Firebase API?
It's likely you're getting 412 error codes either because the Cloud Storage for Firebase API is not enabled for your project or a necessary service account is missing the required permissions.
See the related FAQ .
Cloud Storage for Firebase: Why do I see new service account IDs associated with my Firebase projects that use Cloud Storage for Firebase?
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.
The service account that Cloud Storage for Firebase uses is scoped to your project and is named
service- PROJECT_NUMBER @gcp-sa-firebasestorage.iam.gserviceaccount.com
.
If you used Cloud Storage for Firebase before September 19, 2022, you may see an additional service account on previously-linked Cloud Storage buckets named firebase-storage@system.gserviceaccount.com
. As of September 19, 2022, this service account is no longer supported.
You can view all service accounts associated with your project in the Firebase console, on the Service accounts tab .
Adding the new service account
If you removed the service account previously or the service account is not present in your project, you may do one of the following to add the account.
- (Recommended) Automated: Use the AddFirebase REST endpoint to re-import your bucket into Firebase. You will only need to call this endpoint once, not once for each linked bucket.
- Manual: Follow the steps in Creating and managing service accounts . Following that guide, add a service account with the IAM role
Cloud Storage for Firebase Service Agent
, and service account name
service- PROJECT_NUMBER @gcp-sa-firebasestorage.iam.gserviceaccount.com
.
Removing the new service account
We strongly discourage you from removing the service account because this may block access to your Cloud Storage buckets from your apps. To remove the service account from your project, follow the instructions in Disabling a service account .
Crashlytics
Visit the Crashlytics troubleshooting & FAQ page for helpful tips and answers to more FAQs.
קישורים דינמיים
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.
Firebase Local Emulator Suite
Why do Emulator Suite logs show an error starting with "Multiple projectIds are not recommended in single project mode"?
This message means the Emulator Suite has detected it may be running a particular product emulator using different project IDs. This may indicate a misconfiguration, and can cause issues when emulators try to communicate with one another, and when you try to interact with emulators from your code. If project IDs don't match, it often appears that data is missing, since data stored in emulators is keyed to projectID, and interoperability depends on matching project IDs.
This has been a common source of confusion among developers, so by default the Local Emulator Suite will now only allow running with a single project ID, unless you specify otherwise in the firebase.json
configuration file. If an emulator detects more than one project ID, it will log a warning and potentially throw a fatal error.
Check your project ID declaration(s) for mismatches in:
- The default project set at the command line. By default, the project ID will be taken on startup from the project selected with
firebase init
orfirebase use
. To view the list of projects (and see which one is selected) usefirebase projects:list
. - Unit tests. The project ID is often specified in calls to the Rules Unit Testing library methods
initializeTestEnvironment
orinitializeTestApp
. Other testing code may initialize withinitializeApp(config)
. - The command line
--project
flag. Passing the Firebase CLI--project
flag overrides the default project. You'll need to ensure the value of the flag matches the project ID in unit tests and app initialization.
Platform-specific places to check:
Web | The projectId property in your JavaScript firebaseConfig object, used in initializeApp . |
Android | The project_id property inside the google-services.json configuration file. |
Apple platforms | The PROJECT_ID property in the GoogleService-Info.plist configuration file. |
To disable single project mode, update firebase.json
with the singleProjectMode
key:
{ "firestore": { ... }, "functions": { ... }, "hosting": { ... }, "emulators": { "singleProjectMode": false, "auth": { "port": 9099 }, "functions": { "port": 5001 }, ... } }
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: 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: 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.
Firebase User Segmentation Storage
What is Firebase User Segmentation Storage?
Firebase User Segmentation Storage stores Firebase installation IDs and related attributes and segments as well as 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.
Have other challenges or don't see your issue outlined below? Please report a bug or request a feature and join the Stack Overflow discussions.
Firebase projects and Firebase apps
What is a Firebase project?
A Firebase project is the top-level entity for Firebase. In a project, you can register your Apple, Android, or web apps. After you register your apps with Firebase, you can add the product-specific Firebase SDKs to your app, like Analytics, Cloud Firestore, Crashlytics, or Remote Config.
You should register your Apple, Android, and web app variants within a single Firebase project. You can use multiple Firebase projects to support multiple environments, such as development, staging, and production.
Here are some resources for learning more about Firebase projects:
- Understand Firebase projects — provides brief overviews of several important concepts about Firebase projects, including their relationship with Google Cloud and the basic hierarchy of a project and its apps and resources.
- General best practices for setting up Firebase projects — provides general, high-level best practices for setting up Firebase projects and registering your apps with a project so that you have a clear development workflow that uses distinct environments.
Note that for all Firebase projects, Firebase automatically adds a label of firebase:enabled
within the Labels page for your project in the Google Cloud Console. Learn more about this label in our FAQ .
What is a Google Cloud organization?
A Google Cloud organization is a container for Google Cloud projects (including Firebase projects). This hierarchy enables better organization, access management, and auditing of your Google Cloud and Firebase projects. For more information, refer to Creating and Managing Organizations .
How do I add Firebase to an existing Google Cloud project?
You may have existing projects managed through the Google Cloud Console or the Google APIs console . By default, these projects are visible in the Firebase console , but are not considered to be Firebase projects.
To add Firebase to your existing Google Cloud project, click Add Project on the Firebase console landing page, then select your project in the Project name menu.
Why does my Google Cloud project have a label of firebase:enabled
?
In the Labels page for your project in the Google Cloud Console, you may see a label of firebase:enabled
(specifically, a Key
of firebase
with a Value
of enabled
).
Firebase automatically added this label because your project is a Firebase project, which means that your project has Firebase-specific configurations and services enabled for it. Learn more about the relationship between Firebase projects and Google Cloud .
We strongly recommend that you do not modify or delete this label. This label is used by Firebase and Google Cloud to list your Firebase projects (for example, via the REST API projects.list
endpoint or in menus within the Firebase console).
Be aware that manually adding this label to your list of project labels does NOT enable Firebase-specific configurations and services for your Google Cloud project. To do that, you need to add Firebase via the Firebase console (or, for advanced use cases, via the Firebase Management REST API or the Firebase CLI ).
Why isn't my Firebase project showing up in my list of Firebase projects?
This FAQ is applicable if you don't see your Firebase project in the following places:
- In a list of projects that you're viewing within the Firebase console
- In the response from calling the REST API
projects.list
endpoint - In the response from running the Firebase CLI command
firebase projects:list
Try these troubleshooting steps:
- First, try accessing your project by visiting the project's URL directly. Use the following format:
https://console.firebase.google.com/project/ PROJECT-ID /overview
- If you can't access the project or receive permissions errors, check the following:
- Make sure that you're signed into Firebase using the same Google account that has access to the project. You can sign in and out of the Firebase console via your account avatar in the top-right corner of the console.
- Check if you can view the project in the Google Cloud Console .
- Make sure that your project has the label
firebase:enabled
in the Labels page for your project in the Google Cloud Console. Firebase and Google Cloud use this label to list your Firebase projects. If you do not see this label but the Firebase Management API is enabled for your project, then manually add the label (specifically, aKey
offirebase
with aValue
ofenabled
). - Make sure that you're assigned one of the basic IAM roles (Owner, Editor, Viewer) or a role that has Firebase-related permissions in it, for example a Firebase predefined role . You can view your role(s) in the IAM page of the Google Cloud Console.
- If your project belongs to a Google Cloud organization, you may require additional permissions to see the project listed in the Firebase console. Contact the person who manages your Google Cloud organization to give you the appropriate role to view the project, for example the Browser role.
If none of the troubleshooting steps above enable you to see your project in a list of Firebase projects, contact Firebase Support .
How many projects can I have per account?
- Spark pricing plan — Your project quota is limited to a small number of projects (usually around 5-10).
- Blaze pricing plan — Your project quota per Cloud Billing account increases substantially as long as your Cloud Billing account is in good standing.
The limit on project quota is rarely a concern for most developers, but if needed, you can request an increase in your project quota .
Note that the complete deletion of a project requires 30 days and counts toward your quota until it is fully deleted.
How many Firebase Apps can I have in a Firebase project?
A Firebase project is a container for Firebase Apps across Apple, Android, and web. Firebase restricts the total number of Firebase Apps within a Firebase project to 30.
After this number, performance starts to degrade (especially for Google Analytics) and eventually, at a higher number of apps, some product functionality stops working. Additionally, adding a Firebase App to a project creates one or more underlying OAuth 2.0 client IDs. There's a limit of around 30 client IDs that can be created within a single project.
You should ensure that all Firebase Apps within a single Firebase project are platform variants of the same application from an end-user perspective. For example, if you develop a white label application, each independently labeled app should have its own Firebase project, but the Apple and Android versions of that label can be in the same project. Read more detailed guidance in our general best practices for setting up Firebase projects .
In the rare case your project requires more than 30 apps, you can request an app limit increase. Your project must be on the Blaze pricing plan to make this request. Visit the Google Cloud Console to make your request and have it evaluated. Learn more about quota management in the Google Cloud documentation.
What happens if I tag my project as a "production" environment?
In the Firebase console, you can tag your Firebase projects with their environment type, either as Production or Unspecified (non-prod) environments.
Tagging your project as an environment type has no effect on how your Firebase project works or its features. However, the tagging can help you and your team manage your various Firebase projects for the app lifecycle.
If you tag your project as a production environment, we add a brightly colored Prod tag to the project in the Firebase console, reminding you that any changes could affect your associated production apps. In the future, we might add more features and safeguards for Firebase projects tagged as production environments.
To change the environment type of your Firebase project, go to settings Project settings > General , then in the Your project card under Environment , click edit to change the environment type.
Where can I find the App ID for my Firebase app?
In the Firebase console, go to your settings Project settings . Scroll down to the Your apps card, then click on the desired Firebase App to view the app's information, including its App ID .
Here are some example App ID values:
- Firebase iOS Apps:
1:1234567890:ios:321abc456def7890
- Firebase Android Apps:
1:1234567890:android:321abc456def7890
- Firebase Web Apps:
1:1234567890:web:321abc456def7890
What are the prerequisites for linking Google Play / AdMob / Google Ads / BigQuery to my Firebase project or app?
- For linking your Google Play account , you need the following:
- Either of the following Firebase roles: Owner or Firebase Admin
and - Either of the following Google Play access levels: account Owner or Admin
- Either of the following Firebase roles: Owner or Firebase Admin
- For linking your AdMob app , you need to be both a Firebase project owner and an AdMob administrator.
- For linking your AdWords account , you need to be both a Firebase project owner and an AdWords administrator.
- For linking your BigQuery project , you need to be the Firebase project owner.
What open source notices should I include in my app?
On Apple platforms, the Firebase pod contains a NOTICES file which includes the relevant entries. The Firebase Android SDK contains a helper Activity
for showing license information.
Permissions and access to Firebase projects
How do I assign a project member a role, like the Owner role?
To manage the role(s) assigned to each project member, you must be an Owner of the Firebase project (or be assigned a role with the permission resourcemanager.projects.setIamPolicy
).
Here are the places where you can assign and manage roles:
- The Firebase console offers a simplified way to assign roles to project members in the Users and permissions tab of settings > Project settings . In the Firebase console, you can assign any of the basic roles (Owner, Editor, Viewer), the Firebase Admin/Viewer roles , or any of the Firebase predefined product-category roles .
- The Google Cloud Console offers an expansive set of tools to assign roles to project members in the IAM page . In the Cloud Console, you can also create and manage custom roles , as well as give service accounts access to your project.
Note that in the Google Cloud Console, project members are called principals .
If the Owner of your project can no longer perform the tasks of an Owner (for example, the person left your company) and your project isn't managed via a Google Cloud organization (see next paragraph), you can contact Firebase Support to have a temporary Owner assigned.
Note that if a Firebase project is part of a Google Cloud organization, it may not have an Owner. If you're unable to find an Owner for your Firebase project, contact the person who manages your Google Cloud organization to assign an Owner for the project.
How do I find the Owner of a Firebase project?
You can view project members and their roles in the following places:
- If you have access to the project in the Firebase console, you can view the list of project members, including Owners, in the Users and permissions page of the Firebase console.
- If you do not have access to the project in the Firebase console, check if you have access to the project in the Google Cloud Console. You can view the list of project members, including Owners, in the IAM page of the Google Cloud Console.
If the Owner of your project can no longer perform the tasks of an Owner (for example, the person left your company) and your project isn't managed via a Google Cloud organization (see next paragraph), you can contact Firebase Support to have a temporary Owner assigned.
Note that if a Firebase project is part of a Google Cloud organization, it may not have an Owner. Instead, the person who manages your Google Cloud organization can perform many tasks that an Owner can do. However, to perform several Owner-specific tasks (like assigning roles or managing Google Analytics properties), the administrator may need to assign themselves the actual Owner role to perform those tasks. If you're unable to find an Owner for your Firebase project, contact the person who manages your Google Cloud organization to assign an Owner for the project.
Why or when should I assign a project member the Owner role?
To ensure proper management of a Firebase project, it must have an Owner . A project's Owner is the person who can perform several important administrative actions (like assigning roles and managing Google Analytics properties), and Firebase Support can only fulfill administrative requests from demonstrated project Owners.
After you set up the Owner(s) for a Firebase project, it's important to keep those assignments up-to-date.
Note that if a Firebase project is part of a Google Cloud organization, the person who manages your Google Cloud organization can perform many tasks that an Owner can do. However, for several Owner-specific tasks (like assigning roles or managing Google Analytics properties), the administrator may need to assign themselves the actual Owner role to perform those tasks.
I don't think that I have a Firebase project, but I got an email about one. How do I access this project?
The email you received should contain a link to open your Firebase project. Clicking the link in the email should open the project in the Firebase console.
If you're not able to open the project in the link, make sure that you're signed into Firebase using the same Google account that received the email about the project. You can sign in and out of the Firebase console via your account avatar in the top-right corner of the console.
Note that if you're the administrator of a Google Cloud organization, you may be notified about changes to Firebase projects inside your organization. However, you may not have sufficient permissions to open the Firebase project. In these cases, the simplest solution is to assign yourself the actual Owner role to open the project and perform the required actions. Learn more about why and when to assign the Owner role .
Platforms and frameworks
Visit the platform-specific troubleshooting & FAQ pages for helpful tips and answers for more FAQ.
Firebase console
What are the supported browsers for accessing the Firebase console?
The Firebase console can be accessed from recent versions of popular desktop browsers such as Chrome, Firefox, Safari and Edge. Mobile browsers are currently not fully supported.
I can load the Firebase console, but why can't I find or access my Firebase project?
This FAQ is applicable if you're experiencing either of the following issues:
- The Firebase console returns an error page that says your project may not exist or that you don't have access to the project.
- The Firebase console doesn't display your project even when you enter its project ID or project name in the console's search field.
Try these troubleshooting steps:
- First, try accessing your project by visiting the project's URL directly. Use the following format:
https://console.firebase.google.com/project/ PROJECT-ID /overview
- If you still can't access the project or receive permissions errors, check the following:
- Make sure that you're signed into Firebase using the same Google account that has access to the project. You can sign in and out of the Firebase console via your account avatar in the top-right corner of the console.
- Make sure that the Firebase Management API is enabled for the project.
- Make sure that you're assigned one of the basic IAM roles (Owner, Editor, Viewer) or a role that has Firebase-related permissions in it, for example a Firebase predefined role . You can view your role(s) in the IAM page of the Google Cloud Console.
- If your project belongs to a Google Cloud organization, you may require additional permissions to see the project listed in the Firebase console. Contact the person who manages your Google Cloud organization to give you the appropriate role to view the project, for example the Browser role.
If none of the troubleshooting steps above enable you to find or access your project, contact Firebase Support .
Why is the Firebase console not loading for me?
This FAQ is applicable if you're experiencing any of the following issues:
- A page in the Firebase console never finishes loading.
- Data within a page doesn't load as expected.
- You receive browser error messages when loading the Firebase console.
Try these troubleshooting steps:
- Check the Console row of the Firebase Status Dashboard for any possible service interruptions.
- Make sure that you're using a supported browser .
- Try to load the Firebase console in an incognito or private window.
- Disable all browser extensions.
- Verify that the network connection is not blocked by ad blocker, antivirus, proxy, firewall, or other software.
- Try loading the Firebase console using a different network or device.
- If using Chrome, check the Developer Tools Console for any errors .
If none of the troubleshooting steps above resolve the issue, contact Firebase Support .
How is my Firebase console language determined?
The language setting for the Firebase console is based on the language selected in your Google account settings .
To change your language preference, see Change language .
The Firebase console supports the following languages:
- English
- Brazilian Portuguese
- French
- German
- Indonesian
- Japanese
- Korean
- Russian
- Simplified Chinese
- Spanish
- Traditional Chinese
What roles and permissions does the Firebase console support?
The Firebase console and Google Cloud Console use the same underlying roles and permissions. Learn more about roles and permissions in the Firebase IAM documentation .
Firebase supports the fundamental (basic) roles of Owner, Editor, and Viewer:
- A project Owner can add other members to the project, set up integrations (project linking to services like BigQuery or Slack), and has full edit access for the project.
- A project Editor has full edit access for the project.
- A project Viewer has only read access for the project. Note that the Firebase console currently does not hide/disable edit UI controls from project Viewers, but these operations will fail for project members assigned the Viewer role.
Firebase also supports:
- Firebase predefined roles — Curated Firebase-specific roles that enable more granular access control than the basic roles of Owner, Editor, and Viewer.
- Custom roles — Fully customized IAM roles that you create to tailor a set of permissions that meet the specific requirements of your organization.
Pricing
Which products are paid? Which are no-cost?
Firebase's paid infrastructure products are the Realtime Database, Cloud Storage for Firebase, Cloud Functions, Hosting, Test Lab, and phone authentication. We offer a no-cost tier for all of these features.
Firebase also has many no-cost products: Analytics, Cloud Messaging, the Notifications composer, Remote Config, App Indexing, Dynamic Links, and Crash Reporting. You can use an unlimited amount of any of these products in all plans, including our no-cost Spark plan. In addition, all Authentication features beyond phone authentication are no-cost.
Does Firebase offer no-cost trial credits for paid products?
Firebase paid services can be used under the Google Cloud Free Trial . New Google Cloud and Firebase users can take advantage of a 90-day trial period that includes $300 in free Cloud Billing credits to explore and evaluate Google Cloud and Firebase products and services.
During the Google Cloud Free Trial period, you'll be provided a Free Trial Cloud Billing account. Any Firebase project that uses that billing account will be on the Blaze pricing plan during the free trial period.
Don't worry, setting up this Free Trial Cloud Billing account does not enable us to charge you. You are not charged unless you explicitly enable billing by upgrading your Free Trial Cloud Billing account to a paid account. You can upgrade to a paid account at any time during the trial. After you've upgraded, you can still use any remaining credits (within the 90-day period).
Once the free trial expires, you'll need to either downgrade your project to the Spark pricing plan or set up the Blaze pricing plan in the Firebase console to continue using your Firebase project.
Learn more about the Google Cloud Free Trial .
How do I know which pricing plan is right for me?
Spark pricing plan
Our Spark plan is a great place to develop your app at no cost. You get all the no-cost Firebase features (Analytics, the Notifications composer, Crashlytics, and so on) and generous amounts of our paid infrastructure features. However, if you exceed your Spark plan resources in a calendar month, your app will be shut off for the remainder of that month. In addition, Google Cloud features are not available when using the Spark plan.
Blaze pricing plan
Our Blaze plan is designed for production apps. The Blaze plan also allows you to extend your app with paid Google Cloud features. You pay only for the resources that you consume, allowing you to scale with demand. We strive to make our Blaze plan prices competitive with industry-leading cloud providers.
How can I monitor my usage and billing?
You can track your usage of project resources in the Firebase console on any of the following dashboards:
What happened to the Flame pricing plan?
In January 2020, the Flame pricing plan ($25/mo of additional quota) was removed as an option for new sign-ups. Existing plan users were granted a grace period to migrate their projects off the Flame plan. In February 2022, the remaining projects on the Flame pricing plan were downgraded to the Spark pricing plan.
Accordingly,
- Existing Spark and Blaze plan projects and any new projects can no longer switch to or sign up for the Flame plan.
- If you moved an existing Flame plan project to a different pricing plan, the project cannot return to the Flame plan.
- Projects downgraded to the Spark plan can be upgraded to the Blaze plan to resume additional paid services.
- References to the Flame plan have been removed from documentation.
Do you have more questions about the Flame plan retirement? Read some of the additional FAQs below.
Want to learn about the other pricing plans offered by Firebase? Visit our Firebase pricing page ! If you'd like to start moving any existing projects to another pricing plan, you can do that in the Firebase console for your project.
Additional FAQs about the Flame plan retirement
I have a project or a process or a business model that relies on a fixed Firebase cost. What should I do?
Sign up for the Blaze pricing plan, and make sure to set budget alerts .
May I be given special access to create new Flame plan projects?
No, Firebase isn't offering special access for projects to switch to or sign-up for the Flame plan.
I changed my Flame plan project to a different pricing plan. How do I change it back?
Switching to the Flame plan is no longer possible. For access to services provided by the Flame plan, make sure that you're using the Blaze pricing plan, and consider setting up budget alerts for your project.
My project was automatically switched to a different pricing plan as part of the Flame plan retirement. What should I do?
If your project requires additional quota beyond what is provided with the Spark plan, you'll need to upgrade your project to the Blaze pricing plan.
Why is the Flame plan being retired?
Over the years, we've seen declining usage of the Flame plan, and most projects that use the plan are not consuming its full value. Maintaining this pricing plan is generally not cost-effective, and we feel that we can serve everyone better if resources went to other Firebase initiatives.
How is the no-cost usage in the Blaze plan different from the no-cost usage in the Spark plan?
No-cost usage on the Blaze plan is calculated daily. Usage limits also differ from the Spark plan for Cloud Functions, phone authentication, and Test Lab.
For Cloud Functions, no-cost usage on the Blaze plan is calculated at the Cloud Billing account level, not the project level and has the following limits:
- 2M invocations/month
- 400K GB-seconds/month
- 200K CPU-seconds/month
- 5 GB of networking egress/month
For phone authentication, no-cost usage on the Blaze plan is calculated monthly.
For Test Lab, no-cost usage on the Blaze plan has the following limits:
- 30 physical device minutes/day
- 60 virtual device minutes/day
Does the no-cost usage quota reset when I change from a Spark to a Blaze plan?
No-cost usage from the Spark plan is included in the Blaze plan. No-cost usage does not reset when moving to a Blaze plan.
What is a "simultaneous database connection"?
A simultaneous connection is equivalent to one mobile device, browser tab, or server app connected to the database. Firebase imposes hard limits on the number of simultaneous connections to your app's database. These limits are in place to protect both Firebase and our users from abuse.
The Spark plan limit is 100 and cannot be raised. The Flame and Blaze plans have a limit of 200,000 simultaneous connections per database.
This limit isn't the same as the total number of users of your app, because your users don't all connect at once. If you need more than 200,000 simultaneous connections, please read Scale with Multiple Databases .
What happens if I exceed Spark plan storage or download limits for Realtime Database?
To provide you with a predictable price, the resources available to you in the Spark plans are capped. This means that when you exceed any plan limit in any month, your app will be turned off to prevent any further resource usage and additional charges.
What happens if I exceed Spark plan simultaneous connection limits for Realtime Database?
When your app reaches its concurrency limit on the Spark plan, any subsequent connections will be rejected until some of the existing connections are closed. The app will continue to work for users who are connected.
What happens if I exceed Spark plan upload, download or storage limits for Cloud Storage?
When you exceed limits for Cloud Storage in a project on the Spark plan, the result depends on the type of limit that you exceed:
- If you exceed the GB stored limit, you will not be able to store any more data in that project unless you remove some of the data stored or upgrade to a plan that provides more storage space, or unlimited storage space.
- If you exceed the GB downloaded limit, your app will not be able to download more data until the next day (starting at midnight, US Pacific Time), unless you upgrade to a plan with less restrictive limits, or with no limits.
- If you exceed the upload or download operations limit, your app will not be able to upload or download more data until the next day (starting at midnight, US Pacific Time), unless you upgrade to a plan with less restrictive limits, or with no limits.
How does Firebase's integration with Google Cloud work?
Firebase is deeply integrated with Google Cloud . Projects are shared between Firebase and Google Cloud, so projects can have Firebase services and Google Cloud services enabled. You can access the same project from the Firebase console or the Google Cloud Console. Specifically:
- Certain Firebase products are backed directly by Google Cloud, such as Cloud Storage for Firebase. The list of products backed by Google Cloud will continue to grow over time.
- Many of your settings, including collaborators and billing information, are shared by Firebase and Google Cloud. Your usage of both Firebase and Google Cloud appears on the same bill.
In addition, when you upgrade to the Blaze plan, you can use any of Google Cloud's world-class Infrastructure-as-a-Service and APIs directly inside your Firebase project, at standard Google Cloud pricing . You can also export data from Google Cloud directly to BigQuery for analysis. To learn more, see Link BigQuery with Firebase.
There are many security-enhancing, latency-improving, and time-saving benefits to using Google Cloud with Firebase (versus other, cloud services that are not co-located). Check out the Google Cloud site for more details.
What happens to my Firebase project if I add or remove billing accounts for that project in the Google Cloud Console?
If a Cloud Billing account is added to a project in the Google Cloud Console, the same project will automatically be upgraded to the Firebase Blaze plan if that project is currently on the Spark plan.
In contrast, if an existing active Cloud Billing account is removed from a project in the Google Cloud Console, that project will be downgraded to the Firebase Spark plan.
Can I upgrade, downgrade, or cancel at any time?
Yes, you can upgrade, downgrade, or cancel at any time. Note that we don't provide prorated refunds for downgrades or cancellations. This means that if you downgrade or cancel before the end of your billing period, you still pay for the remainder of the month.
What kind of support will I receive?
All Firebase apps, including those using no-cost plans, come with email support from Firebase staff during US Pacific business hours. All accounts have unlimited support for billing-related issues, account-related issues, technical (troubleshooting) questions, and incident reports.
Can I cap usage on the Blaze plan?
No, you cannot currently cap your Blaze plan usage. We are evaluating options for supporting caps on Blaze plan usage.
Blaze users can define a budget for their project or account, and receive alerts as their spending approaches those limits. Learn how to set up budget alerts .
What are automated backups? Do you offer hourly backups?
Automated backups are an advanced feature for customers on our Blaze pricing plan that backs up your Firebase Realtime Database data once a day and uploads it to Google Cloud Storage .
We do not offer hourly backups.
Do you offer open-source, nonprofit, or educational discounts?
Our Spark plan can be used by any type of individual or organization, including nonprofits, schools, and open-source projects. Since these plans already include generous quotas, we don't offer any special discounts or plans for open-source, nonprofit, or educational projects.
Do you offer enterprise contracts, pricing, support, or dedicated infrastructure hosting?
Our Blaze plan is suitable for enterprises of all sizes, and our SLA meets or exceeds the industry standard for cloud infrastructure. However, we do not currently offer enterprise contracts, pricing, or support, nor do we offer dedicated infrastructure hosting (that is, on-premises installations) for services like our Realtime Database. We are hard at work adding some of these features.
Do you offer ad-hoc pricing? I only want pay-as-you-go for one or two features.
We offer ad-hoc pricing in the Blaze plan, where you pay only for the features you use.
How do the paid Firebase plans work with Ads? Are there no-cost advertising credits with paid plans?
The Firebase pricing plans are separate from Ads, so there are no advertising credits without cost. As a Firebase developer, you are able to "link" your Ads account to Firebase to support conversion tracking.
All ads campaigns are managed directly in Ads, and Ads billing is managed from the Ads console.
Cloud Functions pricing
Why do I need a billing account to use Cloud Functions for Firebase?
Cloud Functions for Firebase relies on some paid Google services. New function deployments with Firebase CLI 11.2.0 and higher rely on Cloud Build and Artifact Registry . Deployments to older versions use Cloud Build in the same way, but rely on Container Registry and Cloud Storage for storage instead of Artifact Registry. Usage of these services will be billed in addition to existing pricing.
Storage space for Firebase CLI 11.2.0 and newer versions
Artifact Registry provides the containers in which functions run. Artifact Registry provides the first 500MB at no cost, so your first function deployments may not incur any fees. Above that threshold, each additional GB of storage is billed at $0.10 per month.
Storage space for Firebase CLI 11.1.x and prior versions
For functions deployed to older versions, Container Registry , provides the containers in which functions run. You'll be billed for each container required to deploy a function. You may notice small charges for each container stored—for example, 1GB of storage is billed at $0.026 per month .
To understand more about how your bill might change, please review the following
- Cloud Functions pricing : existing no-cost tier is unchanged.
- Cloud Build pricing: Cloud Build provides for a no-cost tier.
- Artifact Registry pricing .
- Container Registry pricing .
Does Cloud Functions for Firebase still have no-cost usage?
Yes. On the Blaze plan, Cloud Functions provides a no-cost tier for invocations, compute time, and internet traffic. The first 2,000,000 invocations, 400,000 GB-sec, 200,000 CPU-sec, and 5 GB of Internet egress traffic is provided at no cost each month. You'll be charged only for usage above those thresholds.
After the first 500MB of no-cost storage, each deployment operation will incur small-scale charges for the storage space used for the function's container. 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. Do I need a billing account?
Yes. Since extensions use Cloud Functions , extensions will be subject to the same charges as other functions.
To use extensions, 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
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.
A/B Testing: Why can't I view my experiments after unlinking and re-linking my project to Google Analytics?
Linking to a different Google Analytics property will cause you to lose access to experiments created beforehand. To regain access to a previous experiment, re-link your project to the Google Analytics property that was linked when the experiment was created.
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.5.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: 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: 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 .
אימות
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 |
לא | 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 runtime support
How do I upgrade to the latest supported version of Node.js?
- Make sure you're on the Blaze pricing plan .
- Make sure you are using the latest version of the Firebase CLI.
- Update the
engines
field in your functions'package.json
. - Optionally, test your changes using the Firebase Local Emulator Suite .
- Redeploy all functions.
How can I make sure I deployed my functions to a specific Node.js runtime?
In the Firebase console, go to the functions dashboard , select a function, and check the function's language under Additional details .
I use Firebase Extensions. Will I be affected by Cloud Functions runtime updates?
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 periodically 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: 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 for Firebase
Cloud Storage for Firebase: Why can't I use Cloud Storage for Firebase?
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 for Firebase: Why do I get error code 412 responses about service account permissions and failed service account operations when using the Cloud Storage for Firebase API?
It's likely you're getting 412 error codes either because the Cloud Storage for Firebase API is not enabled for your project or a necessary service account is missing the required permissions.
See the related FAQ .
Cloud Storage for Firebase: Why do I see new service account IDs associated with my Firebase projects that use Cloud Storage for Firebase?
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.
The service account that Cloud Storage for Firebase uses is scoped to your project and is named
service- PROJECT_NUMBER @gcp-sa-firebasestorage.iam.gserviceaccount.com
.
If you used Cloud Storage for Firebase before September 19, 2022, you may see an additional service account on previously-linked Cloud Storage buckets named firebase-storage@system.gserviceaccount.com
. As of September 19, 2022, this service account is no longer supported.
You can view all service accounts associated with your project in the Firebase console, on the Service accounts tab .
Adding the new service account
If you removed the service account previously or the service account is not present in your project, you may do one of the following to add the account.
- (Recommended) Automated: Use the AddFirebase REST endpoint to re-import your bucket into Firebase. You will only need to call this endpoint once, not once for each linked bucket.
- Manual: Follow the steps in Creating and managing service accounts . Following that guide, add a service account with the IAM role
Cloud Storage for Firebase Service Agent
, and service account name
service- PROJECT_NUMBER @gcp-sa-firebasestorage.iam.gserviceaccount.com
.
Removing the new service account
We strongly discourage you from removing the service account because this may block access to your Cloud Storage buckets from your apps. To remove the service account from your project, follow the instructions in Disabling a service account .
Crashlytics
Visit the Crashlytics troubleshooting & FAQ page for helpful tips and answers to more FAQs.
קישורים דינמיים
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.
Firebase Local Emulator Suite
Why do Emulator Suite logs show an error starting with "Multiple projectIds are not recommended in single project mode"?
This message means the Emulator Suite has detected it may be running a particular product emulator using different project IDs. This may indicate a misconfiguration, and can cause issues when emulators try to communicate with one another, and when you try to interact with emulators from your code. If project IDs don't match, it often appears that data is missing, since data stored in emulators is keyed to projectID, and interoperability depends on matching project IDs.
This has been a common source of confusion among developers, so by default the Local Emulator Suite will now only allow running with a single project ID, unless you specify otherwise in the firebase.json
configuration file. If an emulator detects more than one project ID, it will log a warning and potentially throw a fatal error.
Check your project ID declaration(s) for mismatches in:
- The default project set at the command line. By default, the project ID will be taken on startup from the project selected with
firebase init
orfirebase use
. To view the list of projects (and see which one is selected) usefirebase projects:list
. - Unit tests. The project ID is often specified in calls to the Rules Unit Testing library methods
initializeTestEnvironment
orinitializeTestApp
. Other testing code may initialize withinitializeApp(config)
. - The command line
--project
flag. Passing the Firebase CLI--project
flag overrides the default project. You'll need to ensure the value of the flag matches the project ID in unit tests and app initialization.
Platform-specific places to check:
Web | The projectId property in your JavaScript firebaseConfig object, used in initializeApp . |
Android | The project_id property inside the google-services.json configuration file. |
Apple platforms | The PROJECT_ID property in the GoogleService-Info.plist configuration file. |
To disable single project mode, update firebase.json
with the singleProjectMode
key:
{ "firestore": { ... }, "functions": { ... }, "hosting": { ... }, "emulators": { "singleProjectMode": false, "auth": { "port": 9099 }, "functions": { "port": 5001 }, ... } }
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: 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: 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.
Firebase User Segmentation Storage
What is Firebase User Segmentation Storage?
Firebase User Segmentation Storage stores Firebase installation IDs and related attributes and segments as well as 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.