یک پروژه Firebase، نهاد سطح بالای Firebase است. در یک پروژه، میتوانید برنامههای Apple، Android یا وب خود را ثبت کنید. پس از ثبت برنامههای خود در Firebase، میتوانید SDK های Firebase مخصوص محصول مانند Analytics ، Cloud Firestore ، Crashlytics یا Remote Config را به برنامه خود اضافه کنید.
شما باید انواع برنامههای اپل، اندروید و وب خود را در یک پروژه Firebase ثبت کنید. میتوانید از چندین پروژه Firebase برای پشتیبانی از محیطهای مختلف، مانند توسعه، مرحلهبندی و تولید، استفاده کنید.
Here are some resources for learning more about Firebase projects:
درک پروژههای فایربیس - مروری مختصر بر چندین مفهوم مهم در مورد پروژههای فایربیس، از جمله ارتباط آنها با Google Cloud و سلسله مراتب اساسی یک پروژه و برنامهها و منابع آن، ارائه میدهد.
بهترین شیوههای عمومی برای راهاندازی پروژههای Firebase — بهترین شیوههای عمومی و سطح بالا را برای راهاندازی پروژههای Firebase و ثبت برنامههای شما در یک پروژه ارائه میدهد تا گردش کار توسعه واضحی داشته باشید که از محیطهای مجزا استفاده میکند.
توجه داشته باشید که برای همه پروژههای Firebase، Firebase به طور خودکار برچسب firebase:enabled در صفحه برچسبها برای پروژه شما در کنسول Google Cloud اضافه میکند. برای کسب اطلاعات بیشتر در مورد این برچسب به سوالات متداول ما مراجعه کنید.
سازمان Google Cloud چیست؟
یک سازمان Google Cloud یک ظرف برای پروژههای Google Cloud (از جمله پروژههای Firebase) است. این سلسله مراتب امکان سازماندهی بهتر، مدیریت دسترسی و حسابرسی پروژههای Google Cloud و Firebase شما را فراهم میکند. برای اطلاعات بیشتر، به ایجاد و مدیریت سازمانها مراجعه کنید.
How do I add Firebase to an existing Google Cloud project?
You may have existing Google Cloud projects managed through the Google Cloud console or the Google APIs console.
You can add Firebase to these existing Google Cloud projects using any of the following options:
How does Firebase's integration with Google Cloud work?
فایربیس عمیقاً با Google Cloud یکپارچه شده است. پروژهها بین فایربیس و Google Cloud به اشتراک گذاشته میشوند، بنابراین پروژهها میتوانند سرویسهای فایربیس و Google Cloud را فعال داشته باشند. میتوانید از کنسول Firebase یا کنسول Google Cloud به یک پروژه دسترسی داشته باشید. به طور خاص:
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.
علاوه بر این، وقتی به طرح قیمتگذاری پرداخت در محل Blaze ارتقا میدهید، میتوانید از هر یک از زیرساختهای به عنوان سرویس و APIهای درجه یک Google Cloud مستقیماً در پروژه Firebase خود، با قیمت استاندارد Google Cloud استفاده کنید. همچنین میتوانید دادهها را از Google Cloud مستقیماً برای تجزیه و تحلیل به BigQuery صادر کنید. برای کسب اطلاعات بیشتر، به پیوند BigQuery با Firebase مراجعه کنید.
مزایای زیادی در افزایش امنیت، بهبود تأخیر و صرفهجویی در زمان در استفاده از Google Cloud با Firebase (در مقایسه با سایر سرویسهای ابری که در یک مکان نیستند) وجود دارد. برای جزئیات بیشتر به سایت Google Cloud مراجعه کنید.
چرا پروژه Google Cloud من برچسب 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 ).
فایربیس به طور خودکار این برچسب را اضافه کرده است زیرا پروژه شما یک پروژه فایربیس است، به این معنی که پروژه شما پیکربندیها و سرویسهای مخصوص فایربیس را برای آن فعال کرده است. درباره رابطه بین پروژههای فایربیس و Google Cloud بیشتر بدانید.
اکیداً توصیه میکنیم که این برچسب را تغییر ندهید یا حذف نکنید. این برچسب توسط Firebase و Google Cloud برای فهرست کردن پروژههای Firebase شما استفاده میشود (برای مثال، با استفاده از نقطه پایانی REST API projects.list یا در منوهای کنسول Firebase ).
توجه داشته باشید که افزودن دستی این برچسب به فهرست برچسبهای پروژه، پیکربندیها و سرویسهای خاص Firebase را برای پروژه Google Cloud شما فعال نمیکند. برای انجام این کار، باید Firebase را با استفاده از کنسول Firebase (یا برای موارد استفاده پیشرفته، با استفاده از Firebase Management REST API یا Firebase CLI ) اضافه کنید.
Why is the Firebase console failing to load a list of my existing Google Cloud projects?
این پرسشهای متداول اغلب زمانی کاربرد دارد که میخواهید با استفاده از کنسول Firebase ، Firebase را به یک پروژه Google Cloud موجود «اضافه کنید» و به هزاران پروژه Google Cloud دسترسی داشته باشید .
In the response from running the Firebase CLI command firebase projects:list
این مراحل عیبیابی را امتحان کنید:
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:
مطمئن شوید که با همان حساب گوگلی که به پروژه دسترسی دارد، وارد Firebase شدهاید. میتوانید از طریق آواتار حساب خود در گوشه سمت راست بالای کنسول Firebase وارد و از آن خارج شوید.
بررسی کنید که آیا میتوانید پروژه را در کنسول Google Cloud مشاهده کنید یا خیر.
مطمئن شوید که پروژه شما برچسب firebase:enabled در صفحه Labels برای پروژهتان در کنسول Google Cloud دارد. Firebase و Google Cloud از این برچسب برای فهرست کردن پروژههای Firebase شما استفاده میکنند. اگر این برچسب را نمیبینید اما Firebase Management API برای پروژه شما فعال است ، برچسب را به صورت دستی اضافه کنید (به طور خاص، یک Keyfirebase با Valueenabled ).
مطمئن شوید که یکی از نقشهای اصلی IAM (مالک، ویرایشگر، مشاهدهگر) یا نقشی که مجوزهای مربوط به Firebase را دارد، مثلاً یک نقش از پیش تعریفشده Firebase ، به شما اختصاص داده شده است. میتوانید نقش(های) خود را در صفحه IAM کنسول Google Cloud مشاهده کنید.
اگر پروژه شما متعلق به یک سازمان Google Cloud است، ممکن است برای مشاهده پروژه ذکر شده در کنسول Firebase به مجوزهای بیشتری نیاز داشته باشید. با شخصی که سازمان Google Cloud شما را مدیریت میکند تماس بگیرید تا نقش مناسب برای مشاهده پروژه، مثلاً نقش مرورگر، را به شما بدهد.
اگر هیچ یک از مراحل عیبیابی بالا به شما امکان مشاهده پروژهتان در فهرست پروژههای Firebase را نداد، با پشتیبانی Firebase تماس بگیرید.
How many projects can I have per Google Account (email address)?
Spark pricing plan : Project-creation quota is limited to a small number of projects (usually around 5-10).
Blaze pricing plan : Project-creation quota is still limited, but it may increase with the linking of a Cloud Billing account in good standing.
در مورد محدودیت سهمیه ایجاد پروژه به موارد زیر توجه کنید:
This limit is not specific to Firebase. Firebase's limits on project quota are the same as those for Google Cloud .
How many Firebase Apps can I have in a Firebase project?
یک پروژه Firebase یک ظرف برای برنامههای Firebase در سراسر اپل، اندروید و وب است. Firebase تعداد کل برنامههای Firebase را در یک پروژه Firebase به 30 محدود میکند.
بعد از این تعداد، عملکرد شروع به کاهش میکند (بهخصوص برای Google Analytics ) و در نهایت، در تعداد بیشتری از برنامهها، برخی از قابلیتهای محصول از کار میافتند. علاوه بر این، اگر از ورود به سیستم گوگل به عنوان ارائهدهنده احراز هویت استفاده کنید، یک شناسه کلاینت OAuth 2.0 اساسی برای هر برنامه در پروژه شما ایجاد میشود. محدودیتی در حدود 30 شناسه کلاینت وجود دارد که میتوان در یک پروژه واحد ایجاد کرد.
شما باید اطمینان حاصل کنید که تمام برنامههای Firebase درون یک پروژه Firebase واحد، از دیدگاه کاربر نهایی، انواع پلتفرم یک برنامه مشابه هستند. به عنوان مثال، اگر یک برنامه با برچسب سفید توسعه میدهید، هر برنامه با برچسب مستقل باید پروژه Firebase مخصوص به خود را داشته باشد، اما نسخههای اپل و اندروید آن برچسب میتوانند در یک پروژه باشند. راهنماییهای دقیقتر را در بهترین شیوههای کلی ما برای راهاندازی پروژههای Firebase بخوانید.
در موارد نادری که پروژه شما به بیش از 30 برنامه نیاز دارد، میتوانید درخواست افزایش محدودیت برنامه را بدهید. برای ارائه این درخواست، پروژه شما باید در طرح قیمتگذاری Blaze باشد. برای ارائه درخواست و ارزیابی آن، به کنسول Google Cloud مراجعه کنید. برای کسب اطلاعات بیشتر در مورد مدیریت سهمیه به مستندات Google Cloud مراجعه کنید.
اگر پروژهام را به عنوان یک محیط «تولید» برچسبگذاری کنم، چه اتفاقی میافتد؟
در کنسول Firebase ، میتوانید پروژههای فایربیس خود را با نوع محیط آنها، چه به عنوان محیطهای تولیدی و چه به عنوان محیطهای نامشخص (غیر تولیدی)، برچسبگذاری کنید.
برچسبگذاری پروژه شما به عنوان یک نوع محیط هیچ تاثیری بر نحوه عملکرد یا ویژگیهای پروژه Firebase شما ندارد. با این حال، این برچسبگذاری میتواند به شما و تیمتان کمک کند تا پروژههای مختلف Firebase خود را برای چرخه عمر برنامه مدیریت کنید.
اگر پروژه خود را به عنوان یک محیط تولید برچسبگذاری کنید، ما یک برچسب Prod با رنگ روشن به پروژه در کنسول Firebase اضافه میکنیم و به شما یادآوری میکنیم که هرگونه تغییری میتواند بر برنامههای تولید مرتبط شما تأثیر بگذارد. در آینده، ممکن است ویژگیها و اقدامات حفاظتی بیشتری برای پروژههای Firebase که به عنوان محیطهای تولید برچسبگذاری شدهاند، اضافه کنیم.
برای تغییر نوع محیط پروژه Firebase خود، به مسیر زیر بروید:settingsپروژه > عمومی ، سپس در کارت پروژه شما در زیر محیط ، برای تغییر نوع محیط، روی edit کلیک کنید.
از کجا میتوانم شناسه برنامه (App ID) برنامه Firebase خود را پیدا کنم؟
در کنسول Firebase ، به مسیر زیر بروید:settingsپروژه . به پایین اسکرول کنید تا به کارت «برنامههای شما» برسید، سپس روی برنامه Firebase مورد نظر کلیک کنید تا اطلاعات برنامه، از جمله شناسه برنامه آن، را مشاهده کنید.
در اینجا چند نمونه از مقادیر شناسه برنامه آورده شده است:
هر یک از نقشهای فایربیس زیر: مالک یا مدیر فایربیس
هر یک از سطوح دسترسی Google Play زیر: مالک حساب یا مدیر
برای لینک کردن برنامه AdMob خود، باید هم مالک پروژه Firebase و هم مدیر AdMob باشید.
For linking your AdWords account , you need to be both a Firebase project owner and an AdWords administrator.
برای لینک کردن پروژه BigQuery خود، باید مالک پروژه Firebase باشید.
مجوزها و دسترسیها به پروژههای فایربیس
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:
کنسول Google Cloud مجموعهای گسترده از ابزارها را برای اختصاص نقشها به اعضای پروژه در صفحه IAM ارائه میدهد. در کنسول Cloud ، میتوانید نقشهای سفارشی ایجاد و مدیریت کنید و همچنین به حسابهای سرویس اجازه دسترسی به پروژه خود را بدهید.
Note that in the Google Cloud console, project members are called principals .
اگر مالک پروژه شما دیگر نمیتواند وظایف یک مالک را انجام دهد (مثلاً شخصی که شرکت شما را ترک کرده است) و پروژه شما از طریق یک سازمان Google Cloud مدیریت نمیشود (به پاراگراف بعدی مراجعه کنید)، میتوانید با پشتیبانی Firebase تماس بگیرید و در مورد نحوه درخواست دسترسی به پروژه Firebase با آنها مشورت کنید.
توجه داشته باشید که اگر یک پروژه Firebase بخشی از یک سازمان Google Cloud باشد، ممکن است مالک نداشته باشد. اگر نمیتوانید مالکی برای پروژه Firebase خود پیدا کنید، با شخصی که سازمان Google Cloud شما را مدیریت میکند تماس بگیرید تا یک مالک برای پروژه تعیین کند.
چگونه میتوانم مالک یک پروژه Firebase را پیدا کنم؟
شما میتوانید اعضای پروژه و نقشهای آنها را در مکانهای زیر مشاهده کنید:
اگر در کنسول Firebase به پروژه دسترسی ندارید ، بررسی کنید که آیا در کنسول Google Cloud به پروژه دسترسی دارید یا خیر. میتوانید لیست اعضای پروژه، از جمله مالکان، را در صفحه IAM کنسول Google Cloud مشاهده کنید.
اگر مالک پروژه شما دیگر نمیتواند وظایف یک مالک را انجام دهد (برای مثال، شخصی که شرکت شما را ترک کرده است) و پروژه شما از طریق یک سازمان Google Cloud مدیریت نمیشود (به پاراگراف بعدی مراجعه کنید)، میتوانید با پشتیبانی Firebase تماس بگیرید تا یک مالک موقت به شما اختصاص داده شود.
توجه داشته باشید که اگر یک پروژه Firebase بخشی از یک سازمان Google Cloud باشد، ممکن است مالک نداشته باشد. در عوض، شخصی که سازمان Google Cloud شما را مدیریت میکند، میتواند بسیاری از وظایفی را که یک مالک میتواند انجام دهد، انجام دهد. با این حال، برای انجام چندین وظیفه خاص مالک (مانند اختصاص نقشها یا مدیریت ویژگیهای Google Analytics )، ممکن است مدیر نیاز داشته باشد که نقش مالک واقعی را برای انجام آن وظایف به خود اختصاص دهد. اگر نمیتوانید مالکی برای پروژه Firebase خود پیدا کنید، با شخصی که سازمان Google Cloud شما را مدیریت میکند تماس بگیرید تا یک مالک برای پروژه تعیین کند.
چرا یا چه زمانی باید به یکی از اعضای پروژه نقش مالک (Owner) را اختصاص دهم؟
برای اطمینان از مدیریت صحیح یک پروژه Firebase، باید یک مالک (Owner) داشته باشد.
Project members with the Owner role are often the only project members who can do administrative tasks or receive important notifications :
اعضای پروژه با نقش مالک اغلب تنها اعضایی هستند که میتوانند اقدامات مهم مدیریتی (مانند اختصاص نقشها و مدیریت ویژگیهای Google Analytics ) را انجام دهند، و پشتیبانی Firebase فقط میتواند درخواستهای مدیریتی از مالکان پروژههای مشخصشده را انجام دهد.
اعضای پروژه با نقش مالک اغلب تنها اعضایی هستند که (به طور پیشفرض) اعلانهایی در مورد تغییرات پروژه یا محصولات (مانند تغییرات صورتحساب و قانونی، منسوخ شدن ویژگیها و غیره) دریافت میکنند. اگر میخواهید اعضای خاص یا اضافی پروژه اعلانها را دریافت کنند، میتوانید به صورت اختیاری «مخاطبین ضروری» پروژه خود را سفارشی کنید .
پس از اینکه مالک(گان) یک پروژه Firebase را تعیین کردید، بهروز نگه داشتن این وظایف بسیار مهم است.
توجه داشته باشید که اگر یک پروژه Firebase بخشی از یک سازمان Google Cloud باشد، فردی که سازمان Google Cloud شما را مدیریت میکند میتواند بسیاری از وظایفی را که یک مالک میتواند انجام دهد، انجام دهد. با این حال، برای چندین وظیفه خاص مالک (مانند اختصاص نقشها یا مدیریت ویژگیهای Google Analytics )، ممکن است مدیر نیاز داشته باشد که نقش مالک واقعی را برای انجام آن وظایف به خود اختصاص دهد.
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.
اگر نمیتوانید پروژه موجود در لینک را باز کنید، مطمئن شوید که با همان حساب گوگلی که ایمیل مربوط به پروژه را دریافت کردهاید، وارد Firebase شدهاید. میتوانید از طریق آواتار حساب خود در گوشه سمت راست بالای کنسول، وارد و از آن خارج شوید.
توجه داشته باشید که اگر شما مدیر یک سازمان Google Cloud هستید، ممکن است از تغییرات پروژههای Firebase در داخل سازمان خود مطلع شوید. با این حال، ممکن است مجوزهای کافی برای باز کردن پروژه Firebase را نداشته باشید. در این موارد، سادهترین راه حل این است که نقش مالک واقعی را برای خود تعیین کنید تا پروژه را باز کرده و اقدامات لازم را انجام دهید. درباره دلیل و زمان تعیین نقش مالک بیشتر بدانید.
کلیدهای API برای فایربیس
آیا کلیدهای API فایربیس مخفی هستند؟ آیا میتوان آنها را در کد یا فایلهای پیکربندی من قرار داد؟
Here are the most important things to learn about API keys for Firebase services:
عمومی از نظر طراحی : کلیدهای API برای سرویسهای Firebase فقط پروژه و برنامه Firebase شما را به آن سرویسها معرفی میکنند . مجوز از طریق مجوزهای IAM Google Cloud ، Firebase Security Rules و Firebase App Check انجام میشود.
Security Rules و App Check بسیار مهم هستند : امنیت دادههایRealtime Database ، Cloud Firestore و Cloud Storage شما با استفاده از Firebase Security Rules اعمال میشود و حفاظت از APIهای تحت پوشش توسط Firebase App Check انجام میشود - نه با مخفی نگه داشتن کلید API Firebase شما.
اعمال محدودیتها : اگرچه این موضوع مخفی نیست، اما همچنان باید محدودیتهایی را در کنسول Google Cloud اعمال کنید تا از استفاده غیرمجاز از سهمیه پروژه خود برای سایر APIها جلوگیری کنید. تمام کلیدهای API ارائه شده توسط Firebase به طور خودکار به APIهای مرتبط با Firebase محدود میشوند.
فقط برای سرویسهای Firebase استفاده شود : از کلیدهای API ارائه شده توسط Firebase خود فقط برای APIهای مرتبط با Firebase استفاده کنید. اگر برنامه شما از APIهای دیگری استفاده میکند (مثلاً API Places برای نقشهها یا API توسعهدهنده Gemini )، از یک کلید API جداگانه استفاده کنید و آن را به API مربوطه محدود کنید.
اگر تنظیمات برنامه شما از دستورالعملهای بالا پیروی میکند، نیازی نیستکلیدهای API محدود به سرویسهای Firebase به عنوان اطلاعات محرمانه در نظر گرفته شوند و میتوان آنها را با خیال راحت در کد یا فایلهای پیکربندی خود قرار داد.
من ایمیلی از Google Cloud در مورد «کلید API گوگل برای پروژه Google Cloud شما که برای عموم قابل دسترسی است» دریافت کردم. چه کاری باید انجام دهم؟
اگر ایمیلی از Google Cloud در مورد «کلید API گوگل قابل دسترس برای پروژه Google Cloud شما» دریافت کردهاید و کلید API ذکر شده در ایمیل، کلید API فایربیس شماست ، مطمئن شوید که کلید API الزامات زیر را برآورده میکند تا بتوانید آن را با خیال راحت در کد یا فایلهای پیکربندی خود قرار دهید. میتوانید موارد زیر را در پنل APIها و خدمات > اعتبارنامهها در کنسول Google Cloud تأیید کنید.
این کلید API است که شما برای برنامه Firebase خود و فقط برای سرویسهای Firebase استفاده میکنید. این کلیدها معمولاً Browser key (auto created by Firebase) یا Android key (auto created by Firebase) یا iOS key (auto created by Firebase) نامیده میشوند.
مرورگرهای پشتیبانی شده برای دسترسی به کنسول Firebase کدامند؟
کنسول Firebase از طریق نسخههای اخیر مرورگرهای دسکتاپ محبوب مانند کروم، فایرفاکس، سافاری و اج قابل دسترسی است. مرورگرهای موبایل به طور کامل پشتیبانی نمیشوند.
میتوانم کنسول Firebase را بارگذاری کنم، اما چرا نمیتوانم پروژه Firebase خود را پیدا کنم یا به آن دسترسی داشته باشم؟
این سوالات متداول در صورتی قابل استفاده است که با هر یک از مشکلات زیر مواجه هستید:
کنسول Firebase یک صفحه خطا برمیگرداند که میگوید پروژه شما ممکن است وجود نداشته باشد یا اینکه شما به پروژه دسترسی ندارید.
کنسول Firebase ، حتی وقتی شناسه پروژه یا نام پروژه را در فیلد جستجوی کنسول وارد میکنید، پروژه شما را نمایش نمیدهد.
این مراحل عیبیابی را امتحان کنید:
ابتدا، با مراجعه مستقیم به URL پروژه، سعی کنید به پروژه خود دسترسی پیدا کنید. از فرمت زیر استفاده کنید: https://console.firebase.google.com/project/ PROJECT-ID /overview
اگر هنوز نمیتوانید به پروژه دسترسی پیدا کنید یا خطاهای مجوز دریافت میکنید، موارد زیر را بررسی کنید:
مطمئن شوید که با همان حساب گوگلی که به پروژه دسترسی دارد، وارد Firebase شدهاید. میتوانید از طریق آواتار حساب خود در گوشه سمت راست بالای کنسول Firebase وارد و از آن خارج شوید.
مطمئن شوید که یکی از نقشهای اصلی IAM (مالک، ویرایشگر، مشاهدهگر) یا نقشی که مجوزهای مربوط به Firebase را دارد، مثلاً یک نقش از پیش تعریفشده Firebase ، به شما اختصاص داده شده است. میتوانید نقش(های) خود را در صفحه IAM کنسول Google Cloud مشاهده کنید.
اگر پروژه شما متعلق به یک سازمان Google Cloud است، ممکن است برای مشاهده پروژه ذکر شده در کنسول Firebase به مجوزهای بیشتری نیاز داشته باشید. با شخصی که سازمان Google Cloud شما را مدیریت میکند تماس بگیرید تا نقش مناسب برای مشاهده پروژه، مثلاً نقش مرورگر، را به شما بدهد.
اگر هیچ یک از مراحل عیبیابی بالا شما را قادر به یافتن یا دسترسی به پروژهتان نکرد، با پشتیبانی Firebase تماس بگیرید.
چرا کنسول Firebase برای من بارگذاری نمیشود؟
این سوالات متداول در صورتی قابل استفاده است که با هر یک از مشکلات زیر مواجه هستید:
بارگذاری یک صفحه در کنسول Firebase هرگز تمام نمیشود.
دادههای درون یک صفحه آنطور که انتظار میرود بارگیری نمیشوند.
هنگام بارگذاری کنسول Firebase پیامهای خطای مرورگر دریافت میکنید.
این مراحل عیبیابی را امتحان کنید:
ردیف کنسول در داشبورد وضعیت فایربیس را برای هرگونه وقفه احتمالی در سرویس بررسی کنید.
If none of the troubleshooting steps above resolve the issue, contact Firebase Support .
زبان کنسول Firebase من چگونه تعیین میشود؟
The language setting for the Firebase console is based on the language selected in your Google Account settings .
برای تغییر ترجیح زبان خود، به تغییر زبان مراجعه کنید.
The Firebase console supports the following languages:
انگلیسی
پرتغالی برزیلی
فرانسوی
آلمانی
اندونزیایی
ژاپنی
کره ای
روسی
چینی سادهشده
اسپانیایی
چینی سنتی
کنسول Firebase از چه نقشها و مجوزهایی پشتیبانی میکند؟
کنسول Firebase و کنسول Google Cloud از نقشها و مجوزهای اساسی یکسانی استفاده میکنند. برای کسب اطلاعات بیشتر در مورد نقشها و مجوزها به مستندات Firebase IAM مراجعه کنید.
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.
یک ویرایشگر پروژه، دسترسی کامل به ویرایش پروژه دارد.
یک نمایشگر پروژه فقط دسترسی خواندن پروژه را دارد. توجه داشته باشید که کنسول Firebase کنترلهای ویرایش رابط کاربری را از نمایشگرهای پروژه پنهان/غیرفعال نمیکند، اما این عملیات برای اعضای پروژه که نقش نمایشگر به آنها اختصاص داده شده است، با شکست مواجه خواهد شد.
فایربیس همچنین از موارد زیر پشتیبانی میکند:
نقشهای از پیش تعریفشدهی فایربیس — نقشهای منتخب مختص فایربیس که کنترل دسترسی جزئیتری نسبت به نقشهای پایهی مالک، ویرایشگر و مشاهدهگر فراهم میکنند.
نقشهای سفارشی — نقشهای IAM کاملاً سفارشیسازیشدهای که شما ایجاد میکنید تا مجموعهای از مجوزها را متناسب با الزامات خاص سازمان شما تنظیم کنند.
«تجربه برنامه نمونه» کنسول چگونه کار میکند؟ چه اتفاقی میافتد و چه کاری میتوانم انجام دهم؟
کنسول Firebase یک تجربه برنامه نمونه ارائه میدهد تا شما یک برنامه کاربردی واقعی برای کاوش و آزمایش با فایربیس و سایر سرویسهای گوگل (مانند Gemini API ) داشته باشید.
راهاندازی و استقرار خودکار Firebase از برنامه نمونه
وقتی تجربه برنامه نمونه را در کنسول Firebase مرور میکنید، ما به طور خودکار موارد زیر را برای شما انجام میدهیم:
یک پروژه Firebase جدید برای برنامه نمونه خود ایجاد کنید
Register a Firebase Web App in the new Firebase project
سرویسها و APIهایی را که توسط برنامه نمونه استفاده میشوند فعال کنید (برای مثال، Firebase Authentication ، Cloud Firestore و غیره)
منابع مورد نیاز را فراهم کنید (برای مثال، نمونههای پایگاه داده و قوانین امنیتی)
تنظیم Firebase AI Logic برای استفاده از Gemini Developer API
برنامه نمونه را با استفاده از Firebase Hosting روی یک URL پیشنمایش موقت مستقر کنید (به طور پیشفرض، این URL ظرف ۷ روز منقضی میشود )
کدبیس برنامه نمونه را بررسی کنید
گزینه ۱: یک نسخه شخصیسازیشده از کدبیس برنامه نمونه را در Firebase Studio باز کنید
تجربه برنامه نمونه، مسیری را برای باز کردن یک نسخه شخصیسازیشده از کدبیس برنامه نمونه در Firebase Studio (فضای کاری مبتنی بر مرورگر گوگل برای توسعه برنامه کامل) فراهم میکند. پس از راهاندازی پروژه و برنامه شما (به بالا مراجعه کنید)، میتوانید پیوندهایی به Firebase Studio را در بنرهای کنسول Firebase و در بالای برنامه مستقر شده پیدا کنید.
When you open your sample app in Firebase Studio , we automatically do the following for you:
Use the same Firebase project, Firebase Web App, and resources created in the initial setup (see above)
پیکربندی Firebase برنامه نمونه خود را در کدبیس (معمولاً در src/bootstrap.js ) وارد کنید.
در Firebase Studio ، میتوانید کدبیس را بررسی کنید تا نحوه تعامل با سرویسهای مختلف Firebase و Google را درک کنید.
گزینه ۲: مشاهده نسخه عمومی و غیرشخصیشده کدبیس برنامه نمونه در گیتهاب
از طرف دیگر، میتوانید نسخه عمومی و غیرشخصیشدهی کدبیس برنامهی نمونه را در گیتهاب مشاهده کنید.
«برنامهریزی با رابط برنامهنویسی Gemini» - مخزن گیتهاب
Firebase Local Emulator Suite
Why do Local Emulator Suite logs show an error starting with "Multiple projectIds are not recommended in single project mode"?
این پیام به این معنی است که Local Emulator Suite تشخیص داده است که ممکن است یک شبیهساز محصول خاص را با استفاده از شناسههای پروژه مختلف اجرا کند. این ممکن است نشاندهنده یک پیکربندی نادرست باشد و میتواند هنگام تلاش شبیهسازها برای برقراری ارتباط با یکدیگر و همچنین هنگام تلاش شما برای تعامل با شبیهسازها از کد شما، مشکلاتی ایجاد کند. اگر شناسههای پروژه مطابقت نداشته باشند، اغلب به نظر میرسد که دادهها از دست رفتهاند، زیرا دادههای ذخیره شده در شبیهسازها به projectID مرتبط هستند و قابلیت همکاری به تطبیق شناسههای پروژه بستگی دارد.
این موضوع باعث سردرگمی رایجی در بین توسعهدهندگان شده است، بنابراین بهطور پیشفرض Local Emulator Suite اکنون فقط اجازه اجرا با یک شناسه پروژه را میدهد، مگر اینکه در فایل پیکربندی firebase.json خلاف آن را مشخص کنید. اگر یک شبیهساز بیش از یک شناسه پروژه را شناسایی کند، یک هشدار ثبت میکند و بهطور بالقوه یک خطای مهلک ایجاد میکند.
Check your project ID declaration(s) for mismatches in:
پروژه پیشفرض در خط فرمان تنظیم شده است. به طور پیشفرض، شناسه پروژه در هنگام راهاندازی از پروژه انتخاب شده با firebase init یا firebase use گرفته میشود. برای مشاهده لیست پروژهها (و دیدن اینکه کدام یک انتخاب شده است) firebase projects:list استفاده کنید.
تستهای واحد. شناسه پروژه اغلب در فراخوانی متدهای کتابخانه تست واحد Rules به نام initializeTestEnvironment یا initializeTestApp مشخص میشود. سایر کدهای تست ممکن است با initializeApp(config) مقداردهی اولیه شوند.
پرچم --project در خط فرمان. ارسال پرچم --project در Firebase CLI، پروژه پیشفرض را لغو میکند. باید مطمئن شوید که مقدار این پرچم با شناسه پروژه در تستهای واحد و مقداردهی اولیه برنامه مطابقت دارد.
مکانهای مخصوص پلتفرم برای بررسی:
وب
The projectId property in your JavaScript firebaseConfig object, used in initializeApp .
اندروید
The project_id property inside the google-services.json configuration file.
پلتفرمهای اپل
ویژگی PROJECT_ID در فایل پیکربندی GoogleService-Info.plist .
برای غیرفعال کردن حالت تک پروژه، firebase.json با کلید singleProjectMode بهروزرسانی کنید:
Does Firebase offer no-cost trial credits for paid products?
سرویسهای پولی فایربیس را میتوان تحت دوره آزمایشی رایگان Google Cloud استفاده کرد. کاربران جدید Google Cloud و فایربیس میتوانند از یک دوره آزمایشی ۹۰ روزه که شامل ۳۰۰ دلار اعتبار رایگان Cloud Billing است، برای بررسی و ارزیابی محصولات و خدمات Google Cloud و فایربیس استفاده کنند.
در طول دوره آزمایشی رایگان Google Cloud ، یک حساب Cloud Billing به شما ارائه خواهد شد. هر پروژه فایربیس که به آن حساب کاربری متصل باشد، در طول دوره آزمایشی رایگان، در طرح قیمتگذاری پرداخت در حین استفاده Blaze قرار خواهد گرفت.
Don't worry, linking a Firebase project to this Free Trial Cloud Billing account does not enable us to charge you for usage beyond these credits . You are not charged for usage beyond these credits 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 to a paid account, you can still use any remaining credits (within the 90-day period).
The no-cost Spark pricing plan is a great place to develop your app at no cost. You get all the no-cost Firebase products (like Analytics , Remote Config , Crashlytics , and so on) and generous amounts of our paid infrastructure features. However, if you exceed your Spark pricing 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 pricing plan.
Blaze pricing plan
The pay-as-you-go Blaze pricing plan is designed for production apps. The Blaze pricing plan also lets you 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 pricing plan prices competitive with industry-leading cloud providers.
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.
How is the no-cost usage in the Blaze pricing plan different from the no-cost usage in the Spark pricing plan?
No-cost usage on the Blaze pricing plan is calculated daily. Usage limits also differ from the Spark pricing plan for Cloud Functions , phone authentication, and Test Lab .
For Cloud Functions , no-cost usage on the Blaze pricing 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 pricing plan is calculated monthly.
For Test Lab , no-cost usage on the Blaze pricing 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 the Spark pricing plan to the Blaze pricing plan?
No-cost usage from the Spark pricing plan is included in the Blaze pricing plan. No-cost usage does not reset when moving to the Blaze pricing plan.
What happens to my Firebase project if I link a billing account to that project in the Google Cloud console?
If a Cloud Billing account is linked to a project in the Google Cloud console, the same project will automatically be upgraded to the Firebase pay-as-you-go Blaze pricing plan (if that project was on the no-cost Spark pricing plan).
In contrast, if an existing active Cloud Billing account is unlinked from a project in the Google Cloud console, that project will be downgraded to the Firebase no-cost Spark pricing plan.
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:
No, you cannot cap your usage on the Blaze pricing plan. However, we are actively evaluating options for supporting caps on usage when on the Blaze pricing plan.
If your project is on the Blaze pricing plan, you can define a budget for your project or account, and receive alerts as spending approaches those limits. Learn how to set up budget alerts .
چه نوع حمایتی دریافت خواهم کرد؟
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.
Do you offer open-source, nonprofit, or educational discounts?
The no-cost Spark pricing 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?
The pay-as-you-go Blaze pricing plan is suitable for enterprises of all sizes, and our SLA meets or exceeds the industry standard for cloud infrastructure. However, we don't offer enterprise contracts, pricing, or support, nor do we offer dedicated infrastructure hosting (that is, on-premises installations) for services like our Realtime Database . However, we're actively investigating options for 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 via the pay-as-you-go Blaze pricing plan, where you pay only for the features that 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.
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 no-cost Spark pricing plan. بر این اساس،
Existing Spark pricing plan and Blaze pricing 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 pricing plan can be upgraded to the Blaze pricing 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 pricing 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.
حریم خصوصی
Where can I find information about privacy and security in Firebase?
Do the Firebase SDKs log any usage/diagnostic information outside of Analytics?
Yes. Right now, this is 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
To use AdMob , always use the Google Mobile Ads SDK as described in this FAQ. Additionally and optionally, if you want to collect user metrics for AdMob , then include the Firebase SDK for Google Analytics in your app.
For Android projects : Add the dependency for the Google Mobile Ads SDK to your build.gradle file: implementation 'com.google.android.gms:play-services-ads:25.1.0'
Analytics : Why is Google Analytics a recommended part of using Firebase products?
Google Analytics is a no-cost and unlimited analytics solution that works with Firebase features to deliver powerful insights. It lets you 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.
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 : How do I update my Analytics property settings?
From the Admin page in your Google Analytics property, you can update your property settings, such as:
تنظیمات اشتراکگذاری دادهها
Data retention settings
Time zone and currency settings
To update your property settings, follow these steps:
In the Firebase console, go to yoursettings > Project settings .
Go to the Integrations tab, and then in the Google Analytics card, click Manage or View link .
Analytics on-device measurement in my iOS app: How was the Analytics SDK updated for on-device conversion measurement support, and am I required to upgrade?
Before our release updating on-device conversion measurement using event data, developers had to manually include multiple SDK modules to use on-device measurement capabilities, a time-consuming process. As a result, we updated the existing default SDK module ( FirebaseAnalytics ) to include on-device conversion measurement capabilities as well for Google Ads .
تجزیه و تحلیل IDFA On-Device Conversion Measurement (Event Data)
ناموجود
FirebaseAnalytics
* This configuration will include On-Device Conversion Measurement (Event Data) as well. If needed, you can disable the feature by setting the value of GOOGLE_ADS_ON_DEVICE_CONVERSION_EVENT_DATA_ENABLED to NO (Boolean) in your app's Info.plist file.
Analytics in my iOS app: Can I install Analytics without ad attribution and IDFA collection features?
Analytics in my iOS app: How do I enable the AdSupport framework?
Some Analytics features, such as audiences and campaign attribution, and some user properties, such as age and interests, require the AdSupport framework to be enabled. Without this framework, Analytics cannot collect information needed for these features to function properly.
To enable the AdSupport framework:
In your Xcode project, select your project's target.
Select the General tab for your target.
Expand the Linked Frameworks and Libraries section.
Click + to add a framework.
Select AdSupport.framework .
Add the -ObjC linker flag to your project's build settings under Other Linker Flags .
Before submitting your app for review, ensure your app complies with IDFA usage guidelines .
Analytics : What changed in the Google Analytics section with the October 2021 update?
Analytics : Why don't I see any Analytics data in the Firebase console after unlinking Firebase from Google Analytics?
Analytics data resides within the Google Analytics property — not within the Firebase project. If you delete or unlink the property, then the Analytics data won't be accessible to Firebase and you'll see an empty Analytics dashboard in the Firebase console. Note that since the data still resides in the previously linked property, you can always relink the property to Firebase and see the Analytics data in the Firebase console.
Linking a brand new Google Analytics account (and thus a new Google Analytics property) to your Firebase project will result in an empty Analytics dashboard in the Firebase console. However, if your previously linked property still exists, then you can move the existing data from the old property to the new property.
Analytics : If my Analytics property and its data were deleted, is there any way to get them back?
No. If your property has been deleted, it isn't possible to undelete the property or retrieve the previously collected Analytics data stored in that property.
If you'd like to start using Google Analytics again, you can link either a new property or an existing property to your Firebase project. You can do this linking in either the Firebase console or the Google Analytics UI. Learn more about linking a Google Analytics property to your Firebase project.
Analytics : If my Analytics property was deleted, can I link a new Google Analytics property to my Firebase project and start using Analytics again?
If you'd like to start using Google Analytics again, you can link either a new property or an existing property to your Firebase project. You can do this linking in either the Firebase console or the Google Analytics UI. Learn more about linking a Google Analytics property to your Firebase project.
Note that since all Analytics data is stored in the property (not the Firebase project), the previously collected Analytics data cannot be retrieved.
Analytics : How will Firebase products or integrated Google products be affected by the deletion of my Analytics property?
Several Firebase products rely on the Google Analytics integration. If your Analytics property and its data are deleted, the following will happen if you use the following products:
Crashlytics — You can no longer see crash-free users, breadcrumb logs, and/or velocity alerts.
Cloud Messaging and In-App Messaging — You can no longer use targeting, campaign metrics, audience segmentation, and analytics labels.
Remote Config — You can no longer use targeted configurations or Personalization.
A/B Testing — You can no longer use A/B Testing since the experiment measurement is supplied by Google Analytics.
Dynamic Links — Any feature that relies on data from Google Analytics will be disrupted.
In addition, the following integrations will be affected:
Analytics: Can I move Analytics data from one Firebase project to another project?
No, it isn't possible to directly move Analytics data from one Firebase project to another project. However, you can export and combine data from both projects into a single location, such as BigQuery for analysis.
While moving existing data isn't possible, you can link an existing Analytics property to a new Firebase project and start collecting data from then on in that new project. You can do this linking in either the Firebase console or the Google Analytics UI. Learn more about linking a property to your Firebase project .
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.
Authentication
Authentication : Which regions are supported for phone authentication?
Firebase Authentication supports phone number verification globally, but not all networks reliably deliver verification messages. The following regions have good rates of delivery, and should be expected to work well for phone authentication. Where noted, some carriers are unavailable in a region due to poor delivery success rates.
منطقه
کد
آگهی
آندورا
AE
امارات متحده عربی
اف
افغانستان
آ.گ
آنتیگوا و باربودا
ال
آلبانی
صبح
ارمنستان
آئو
آنگولا
واقعیت افزوده
آرژانتین
به عنوان
ساموآی آمریکا
در
اتریش
دانشگاه آئورلی
استرالیا
آ
آروبا
آریزونا
آذربایجان
لیسانس
بوسنی و هرزگوین
بی بی
باربادوس
بی دی
بنگلادش
باش
بلژیک
بی اف
بورکینافاسو
بی جی
بلغارستان
بیجی
بنین
بی ام
برمودا
بی ان
برونئی دارالسلام
بو
بولیوی
بی آر
برزیل
کارشناسی
باهاما
بی تی
بوتان
بی دبلیو
بوتسوانا
توسط
بلاروس
بی.زی.
بلیز
کالیفرنیا
کانادا
سی دی
کنگو، (کینشاسا)
سی اف
جمهوری آفریقای مرکزی
CG
کنگو (برازاویل)
چ
سوئیس
سی آی
ساحل عاج
سی کی
جزایر کوک
سی ال
شیلی
سی ام
کامرون
شرکت
کلمبیا
سی آر
کاستاریکا
رزومه
کیپ ورد
سی دابلیو
کوراسائو
سی وای
قبرس
سی زد
جمهوری چک
دی
آلمان
دیجی
جیبوتی
دی کی
دانمارک
دی ام
دومینیکا
انجام دهید
جمهوری دومینیکن
دی زد
الجزایر
ای سی
اکوادور
ای جی
مصر
ای اس
اسپانیا
ای تی
اتیوپی
اف آی
فنلاند
اف جی
فیجی
اف کی
جزایر فالکلند (مالویناس)
اف ام
میکرونزی، ایالات فدرال
فو
جزایر فارو
فرانسوی
فرانسه
جی ای
گابن
گیگابایت
بریتانیا
جی دی
گرنادا
جنرال الکتریک
جورجیا
جی اف
گویان فرانسه
جی جی
گرنزی
جی اچ
غنا
دستگاه گوارش
جبل الطارق
جی ال
گرینلند
جی ام
گامبیا
پزشک عمومی
گوادلوپ
جی کیو
گینه استوایی
جی آر
یونان
جی تی
گواتمالا
GY
گویانا
هنگ کنگ
هنگ کنگ، منطقه اداری ویژه چین
ه.ن.
هندوراس
منابع انسانی
کرواسی
اچ تی
هائیتی
هو
مجارستان
شناسه
اندونزی
اینترنت اکسپلورر
ایرلند
ایلینویز
اسرائیل
آی ام
جزیره من
در
هند
ضریب هوشی
عراق
فناوری اطلاعات
ایتالیا
جی ای
جرسی
جی ام
جامائیکا
جو
اردن
جی پی
ژاپن
کی ای
کنیا
کیلوگرم
قرقیزستان
خ.
کامبوج
کیلومتر
کومور
KN
سنت کیتس و نویس
کی آر
کره (جنوبی)
کیلو وات
کویت
کی
جزایر کیمن
کی زد
قزاقستان
لس آنجلس
جمهوری خلق لائوس
ل ب
لبنان
ال سی
سنت لوسیا
لی
لیختناشتاین
ال کی
سریلانکا
ال اس
لسوتو
آن
لیتوانی
لو
لوکزامبورگ
ال وی
لتونی
لی
لیبی
کارشناسی ارشد
مراکش
دکتر
مولداوی
من
مونتهنگرو
ام اف
سن مارتین (بخش فرانسوی)
ام جی
ماداگاسکار
ام کی
مقدونیه، جمهوری
میلی متر
میانمار
مینهسوتا
مغولستان
مو
Macao, SAR China
اماس
مونتسرات
تن
مالت
MU
موریس
مگاوات
مالاوی
ام ایکس
مکزیک
من
مالزی
ام زد
موزامبیک
نه
نامیبیا
کارولینای شمالی
کالدونیای جدید
شمال شرقی
نیجر
ان اف
جزیره نورفولک
ان جی
نیجریه
ان آی
نیکاراگوئه
هلند
هلند
خیر
نروژ
ن پ
نپال
نیوزیلند
نیوزیلند
اوم
عمان
پی. ان.
پاناما
پی ای
پرو
پی جی
پاپوآ گینه نو
پی اچ
فیلیپین
پی کی
پاکستان
پی ال
لهستان
پی ام
سنت پیر و میکلون
روابط عمومی
پورتوریکو
پیاس
سرزمین فلسطین
پی تی
پرتغال
پی وای
پاراگوئه
تضمین کیفیت
قطر
دوباره
رئونیون
رو
رومانی
آر اس
صربستان
آر یو
فدراسیون روسیه
آر دبلیو
رواندا
اس ای
عربستان سعودی
اس سی
سیشل
جنوب شرقی
سوئد
اس جی
سنگاپور
ش
سنت هلنا
سی
اسلوونی
اس کی
اسلواکی
اس ال
سیرالئون
اس ان
سنگال
اس آر
سورینام
خیابان
سائوتومه و پرینسیپ
اس وی
السالوادور
س.ز.
سوازیلند
TC
جزایر تورکس و کایکوس
تیجی
توگو
تی اچ
تایلند
تی ال
تیمور شرقی
™
ترکمنستان
به
تونگا
تی آر
ترکیه
تی تی
ترینیداد و توباگو
تی دبلیو
تایوان، جمهوری چین
تیزد
تانزانیا، جمهوری متحده
یو ای
اوکراین
یو جی
اوگاندا
ما
ایالات متحده آمریکا
یو
اروگوئه
یو زد
ازبکستان
وی سی
سنت وینسنت و گرنادینها
وی ای
ونزوئلا (جمهوری بولیواری)
وی جی
جزایر ویرجین بریتانیا
ششم
جزایر ویرجین، ایالات متحده
وی ان
ویتنام
دبلیو اس
ساموآ
بله
یمن
ی تی
مایوت
زا
آفریقای جنوبی
ز.م.
زامبیا
زد دبلیو
زیمبابوه
Authentication : What happened to the no-cost SMS on the Spark pricing plan?
Starting September 2024, to improve the security and service quality of Phone Authentication, Firebase projects must be linked to a Cloud Billing account to enable and use the SMS Service.
Authentication : How can I prevent SMS abuse when using phone authentication?
To help protect your project from SMS traffic pumping and API abuse, take the following steps:
Look for regions with a very high number of sent SMS and a very low number (or zero) of verified SMS. The ratio of verified/sent is your success rate. Healthy success rates are commonly in the 70-85% range since SMS is not a guaranteed delivery protocol, and some regions may experience abuse. Success rates lower than 50% imply many sent SMS but few successful logins, which is a common indicator of bad actors and SMS traffic pumping.
Use SMS Region Policy to either deny SMS regions with low success rates, or only allow certain regions if your app is only intended for distribution in certain markets.
Limit your authorized authentication domains
Use the Authentication settings dashboard to manage authorized domains. The localhost domain is added by default to the approved authentication domains to simplify development. Consider removing localhost from the authorized domains in your production project to prevent bad actors from running code on theirlocalhost to access your production project.
Enable and enforce App Check
Enable App Check to help protect your project from API abuse by attesting that requests only come from applications associated with your project.
Remember that you need to enforce App Check for Authentication in the Firebase console (consider monitoring traffic before enforcing). Also, double check your reCAPTCHA Enterprise approved sites list to validate that it only contains your production sites, and that the list of applications registered to your project in App Check is accurate.
Note that App Check helps protect against automated attacks by asserting that the call comes from one of your registered applications. It does not prevent users from using your app in unintended ways (for example, starting then never finishing login flows to generate sent SMS).
Authentication : Are phone numbers ported to a new carrier supported by phone authentication?
At this time, numbers ported between carriers will result in all SMS becoming undeliverable for those end users. There is no workaround, and Firebase is working on this issue.
Authentication : In my Android app, why am I getting the following error: Google sign in failed ?
Follow the troubleshooting steps in this FAQ if you're getting the following error:
GoogleFragment: Google sign in failed
com.google.android.gms.common.api.ApiException: 13: Unable to get token.
at
com.google.android.gms.internal.auth-api.zbay.getSignInCredentialFromIntent(com.google.android.gms:play-services-auth@@20.3.0:6)
Make sure that Google sign-in is properly enabled as an authentication provider:
Within the Sign in method tab, disable and then re-enable the Google sign-in method (even if it's already enabled):
Open the Google sign-in method, disable it, and then click Save .
Re-open the Google sign-in method, enable it, and then click Save .
Also, in the Google sign-in provider configuration of the Authentication section, make sure that the OAuth client ID and secret match the web client displayed in the Credentials page of the Google Cloud console (look in the OAuth 2.0 Client IDs section).
Authentication : In my web app, why are sign-in with redirects failing with the following error: This domain YOUR_REDIRECT_DOMAIN is not authorized to run this operation ?
Follow the troubleshooting steps in this FAQ if you're getting the following error:
This domain YOUR_REDIRECT_DOMAIN is not authorized to run this operation.
This error is most likely caused because your redirect domain isn't listed as a authorized domain for Firebase Authentication , or the API key that you use with the Firebase Authentication Service is invalid.
First make sure that YOUR_REDIRECT_DOMAIN is in the list of authorized domains for your Firebase project. If your redirect domain is already listed there, continue to troubleshoot an invalid API key.
By default, Firebase Authentication JS SDK relies on the API key for your Firebase project that's labeled as the Browser key , and it uses this key to verify that a sign-in redirect URL is valid according to the list of authorized domains. Authentication gets this API key depending on how you access the Authentication SDK:
If you use Hosting -provided Auth helpers to log users in with the Authentication JS SDK, then Firebase automatically obtains your API key with the rest of your Firebase configuration each time you deploy to Firebase Hosting . Make sure that the authDomain in your web app firebaseConfig is properly configured to use one of the domains for that Hosting site. You can verify this by going to https:// authDomain __/firebase/init.json , and checking that the projectId matches that from your firebaseConfig .
If you self-host the sign-in code , then you can use a __/firebase/init.json file to provide the Firebase configuration to the self-hosted Authentication JS SDK Redirect helper. The API key and the projectId listed in this config file should match your web app firebaseConfig .
Check to make sure this API key hasn't been deleted: Go to the APIs & Services > Credentials panel in the Google Cloud console where all the API keys for your project are listed.
If the Browser key has not been deleted, check the following:
If you self-host the sign-in code, make sure the API key listed in your __/firebase/init.json file matches the API key in the Google Cloud console. Correct the key in the file, if necessary, then redeploy your app.
If the Browser key has been deleted, you can have Firebase generate a new API key for you: In the Firebase console, go tosettings > Project settings , then in the Your apps section, click your web app. This action automatically creates an API key that you can see in the SDK setup and configuration section for your web app.
Note that in the Google Cloud console this new API key won't be called Browser key ; instead, it will be the same name as your Firebase Web App's nickname. If you decide to add API restrictions to this new API key, make sure the Firebase Authentication API is in the list of allowed APIs.
Once your new API key is created, complete the applicable steps below:
If you use reserved Hosting URLs , then redeploy your app to Firebase so that it can automatically obtain the new API key with the rest of your Firebase configuration.
If you self-host the sign-in code , copy the new API key and add it to your __/firebase/init.json file, then redeploy your app.
Authentication : How do I manually construct an OAuth web client?
Open the Credentials page of the Google Cloud console.
At the top of the page, select Create credentials > OAuth client ID .
If you're prompted to configure your consent screen, follow the on-screen instructions, and then continue with the following steps of this FAQ.
Create the OAuth web client:
For the Application Type , select Web application .
For the Authorized JavaScript Origins , add the following:
http://localhost
http://localhost:5000
https:// PROJECT_ID .firebaseapp.com
https:// PROJECT_ID .web.app
For the Authorized Redirect URIs , add the following:
Within the Sign in method tab, open the Google sign-in provider, and then paste the web server client ID and secret you just constructed and copied from the Google Cloud console. Click Save .
Authentication : How is %APP_NAME% determined for the email template for the confirmation email that can be sent to a user when they sign up using an email address and password?
Before December 2022, the %APP_NAME% in the email template was populated with the OAuth brand name that was automatically provisioned whenever an Android app was registered in the Firebase project. Now, since the OAuth brand is provisioned only when Google sign-in is enabled, the following describes how %APP_NAME% is determined:
If the OAuth brand name is available, then the %APP_NAME% in the email template will be the OAuth brand name (same as pre-December 2022 behavior).
If the OAuth brand name is not available, here's how the %APP_NAME% in the email template is determined:
For web apps , the %APP_NAME% will be the default Firebase Hosting site name (the value preceding .firebaseapp.com and .web.app and usually the Firebase project ID).
For mobile apps:
If the Android package name or iOS bundle ID is present in the request, then the %APP_NAME% will be the app name used in the Play Store or App Store (respectively).
Otherwise, the %APP_NAME% will be the default Firebase Hosting site name (the value preceding .firebaseapp.com and .web.app and usually the Firebase project ID).
Note that if the lookup of the default Firebase Hosting site name fails, then the final fallback is to use the Firebase project ID as the %APP_NAME% .
Cloud Storage for Firebase : Why do I see an unexpected increase in upload and download operations?
Previously, download and upload requests to the Cloud Storage for Firebase API were not being counted properly. We have taken steps to fix this issue, starting from September 15, 2023.
We recommend monitoring your Usage page for any increases that may count towards your limits.
Cloud Storage for Firebase : How do I predict how much I will be billed for upload and download operations?
Visit the Firebase Pricing page and use the Blaze pricing plan calculator . The calculator lists all the usage types for Cloud Storage for Firebase .
Use the sliders to input the expected usage of your Storage bucket. The calculator will estimate your monthly bill.
Cloud Storage for Firebase : Why am I getting service account permission errors in the console or when using the Cloud Storage for Firebase API (like error code 412)?
Here are some likely reasons for getting these errors:
The Cloud Storage for Firebase API is not enabled for your project.
You can check if the API is enabled in the Google Cloud console. Learn how to find enabled APIs in your project and how to enable them in this Google Cloud guide .
The required service account for Cloud Storage for Firebase has one of the following issues:
The service account is missing required permissions.
The service account has been deleted. Note that in the Firebase console, a missing service account might manifest as a failure to add required IAM permissions.
For these two service account issues, see the related FAQ on this page.
Cloud Storage for Firebase : Why do I see new or multiple service accounts in 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 required service account for Cloud Storage for Firebase 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 . This old service account is no longer supported as of September 19, 2022.
You can view all service accounts for your project in the Service accounts tab of the Firebase console.
Add the required service account if it's missing
If you deleted the required service account or it's not present in your project, you can do one of the following to add the service account.
In the Firebase console, a missing service account might manifest as a failure to add required IAM permissions.
(Recommended) Automated : Use the AddFirebase REST endpoint to re-import your bucket into Firebase. You only need to call this endpoint once, not once for each linked bucket.
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 .
Remove the required service account
We strongly discourage 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 .
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.
Realtime Database : 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 pricing plan limit is 100 and cannot be raised. The Blaze pricing plan has 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, review options in Scale with multiple databases .
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.
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 DatabaseUsage 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 of once() .
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.
Realtime Database : What happens if I exceed the Spark pricing plan storage or download limits for Realtime Database ?
To provide you with a predictable price, the resources available to you are capped when your project is on the Spark pricing plan. 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.
Realtime Database : What happens if I exceed Spark pricing plan simultaneous connection limits for Realtime Database ?
When your app reaches its concurrency limit on the Spark pricing 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.
Realtime Database : What are automated backups? Do you offer hourly backups for Realtime Database ?
Automated backups are an advanced feature for projects that are on the Blaze pricing plan. This feature backs up your Firebase Realtime Database data once a day and uploads it to Google Cloud Storage .
We don't offer hourly backups.
Realtime Database : Why was my Realtime Database reported bandwidth lower than average between September 2016 and March 2017?
For 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.
Firebase App Indexing is no longer the recommended way of indexing content for display as suggested results in Google Search App. This FAQ points to other useful developer products.
Apple platforms
Universal Links are the recommended way of linking users directly from search results, websites and other apps to specific content within your app.
اندروید
Android App Links are the recommended way of linking users directly from search results, websites and other apps to specific content within your app.
You might also be interested in the following options:
App Actions : Let users launch and control Android apps with their voice, using Google Assistant.
Android Shortcuts : Provide users with quick methods to perform an action or access content in your app.
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.
تاریخ آخرین بهروزرسانی 2026-03-26 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2026-03-26 بهوقت ساعت هماهنگ جهانی."],[],[]]