هل لديك تحديات أخرى أو لا ترى مشكلتك موضحة أدناه؟ يرجى الإبلاغ عن خطأ أو طلب ميزة والانضمام إلى مناقشات Stack Overflow .
مشاريع Firebase وتطبيقات Firebase
ما هو مشروع Firebase؟
المشروع عبارة عن حاوية للتطبيقات عبر iOS و Android والويب. وهو يدعم مشاركة ميزات مثل قاعدة البيانات والتكوين والإشعارات بين تطبيقات الأنظمة الأساسية الخاصة بك.
يجب عليك إضافة متغيرات تطبيقات iOS و Android والويب إلى مشروع واحد. يمكنك استخدام مشاريع متعددة لدعم بيئات متعددة ، مثل التطوير والتدريج والإنتاج.
كيف أضيف Firebase إلى مشروع Google Cloud موجود؟
قد يكون لديك مشاريع حالية تتم إدارتها من خلال Google Cloud Console أو وحدة تحكم Google APIs . بشكل افتراضي ، تكون هذه المشاريع مرئية في وحدة تحكم Firebase ، لكنها لا تعتبر مشروعات Firebase.
لإضافة Firebase إلى مشروع Google Cloud الحالي ، انقر على " إضافة مشروع" في الصفحة المقصودة لوحدة تحكم Firebase ، ثم حدد مشروعك في قائمة اسم المشروع .
كم عدد المشاريع التي يمكنني الحصول عليها لكل حساب؟
- خطة Spark المجانية - حصة مشروعك محدودة بعدد صغير من المشاريع (عادة حوالي 5-10).
- الخطط المدفوعة - تزداد حصة مشروعك لكل حساب Cloud Billing بشكل كبير طالما أن حساب Cloud Billing الخاص بك في وضع جيد.
نادرًا ما يكون الحد الأقصى لحصة المشروع مصدر قلق لمعظم المطورين ، ولكن إذا لزم الأمر ، يمكنك طلب زيادة في حصة المشروع الخاصة بك .
لاحظ أن الحذف الكامل للمشروع يتطلب 30 يومًا ويتم احتسابه ضمن حصتك حتى يتم حذفه بالكامل.
كم عدد تطبيقات Firebase التي يمكنني الحصول عليها في مشروع Firebase؟
مشروع Firebase عبارة عن حاوية لتطبيقات Firebase عبر iOS و Android والويب. يقيد Firebase العدد الإجمالي لتطبيقات Firebase ضمن مشروع Firebase بـ 30.
بعد هذا الرقم ، يبدأ الأداء في التدهور (خاصة بالنسبة لبرنامج Google Analytics) ، وفي النهاية ، في عدد أكبر من التطبيقات ، تتوقف بعض وظائف المنتج عن العمل. بالإضافة إلى ذلك ، تؤدي إضافة تطبيق Firebase إلى مشروع إلى إنشاء معرف عميل OAuth 2.0 أساسي واحد أو أكثر. يوجد حد يبلغ حوالي 30 معرّفًا للعميل يمكن إنشاؤها في مشروع واحد.
يجب عليك التأكد من أن جميع تطبيقات Firebase ضمن مشروع Firebase واحد هي متغيرات النظام الأساسي للتطبيق نفسه من منظور المستخدم النهائي. على سبيل المثال ، إذا قمت بتطوير تطبيق تسمية أولية ، فيجب أن يكون لكل تطبيق مصنف بشكل مستقل مشروع Firebase الخاص به. تفضل بزيارة فهم مشاريع Firebase لمعرفة المزيد من أفضل الممارسات حول مشاريع Firebase وتطبيقات Firebase.
في حالة نادرة يتطلب مشروعك أكثر من 30 تطبيقًا ، يمكنك طلب زيادة حد التطبيق. يجب أن يكون مشروعك في خطة فوترة Blaze لتقديم هذا الطلب. قم بزيارة Google Cloud Console لتقديم طلبك وتقييمه. تعرف على المزيد حول إدارة الحصص في وثائق Google Cloud.
أين يمكنني العثور على معرف التطبيق لتطبيق Firebase الخاص بي؟
في وحدة تحكم Firebase ، انتقل إلى settings المشروع الخاصة بك. قم بالتمرير لأسفل إلى بطاقة التطبيقات الخاصة بك ، ثم انقر فوق تطبيق Firebase المطلوب لعرض معلومات التطبيق ، بما في ذلك معرف التطبيق الخاص به.
فيما يلي بعض الأمثلة على قيم معرّف التطبيق:
- تطبيقات Firebase iOS:
1:1234567890:ios:321abc456def7890
- تطبيقات Firebase Android:
1:1234567890:android:321abc456def7890
- تطبيقات
1:1234567890:web:321abc456def7890
:1:1234567890:web:321abc456def7890
هل أحتاج إلى تقديم SHA-1 عند إضافة تطبيق Android؟
معلومات SHA-1 مطلوبة من خلال مصادقة Firebase (عند استخدام تسجيل الدخول إلى Google أو تسجيل الدخول برقم الهاتف ) و Firebase Dynamic Links . إذا كنت لا تستخدم هذه الميزات ، فلن تحتاج إلى توفير SHA-1.
كيف يمكنني حل هذا الخطأ: "عميل OAuth2 موجود بالفعل لاسم الحزمة هذا و SHA-1 في مشروع آخر"؟
يحدث هذا الخطأ إذا اكتشفنا أن مشروع Firebase أو Google Cloud آخر يحتوي على معرّف عميل OAuth 2.0 مع اسم الحزمة و SHA-1 الذي حددته. تعرف على كيفية حل هذا الخطأ .
عند إضافة Firebase إلى مشروع Android ، يظهر لي الخطأ "تعذر العثور على".
يعني هذا الخطأ عادةً أن تطبيقك يفتقد إلى مرجع واحد أو أكثر إلى مستودع Google Maven. في مستوى المشروع الخاص بك build.gradle
الملف، تأكد من تضمين مستودع مخضرم جوجل ( google()
) في كل من buildscript
و allprojects
أقسام.
ما هي المتطلبات الأساسية لربط Play / AdMob / AdWords / BigQuery بمشروع Firebase؟
- لربط حساب Play الخاص بك ، يجب أن تكون مالكًا لمشروع Firebase ومالكًا لحساب Play.
- لربط تطبيق AdMob ، يجب أن تكون مالك مشروع Firebase ومسؤول AdMob.
- لربط حسابك في AdWords ، يجب أن تكون مالكًا لمشروع Firebase ومسؤولًا في AdWords.
- لربط مشروع BigQuery ، يجب أن تكون مالك مشروع Firebase.
ما هي إشعارات المصدر المفتوح التي يجب أن أدرجها في تطبيقي؟
في نظام iOS ، تحتوي حافظة Firebase على ملف NOTICES الذي يتضمن الإدخالات ذات الصلة. تحتوي حزمة Firebase Android SDK على Activity
مساعد لعرض معلومات الترخيص.
ما إصدارات Xcode التي يدعمها Firebase؟
يدعم Firebase ما يصل إلى إصدارين رئيسيين من Xcode ، ولا يشمل ذلك إصدارات Xcode التي لم تعد Apple تدعمها. على سبيل المثال ، بدءًا من مارس 2019 ، تطلب Apple iOS 12 على الأقل على جميع تطبيقات iOS ، مما يعني أنه سيتم إسقاط دعم Xcode 9 وسيكون Xcode 10 هو الإصدار الرئيسي الوحيد المدعوم.
يتم تحديد التغييرات لدعم إصدارات ثانوية معينة أو إصدارات التصحيح من Xcode (على سبيل المثال ، 9.2.0 إلى 9.4.1) بناءً على احتياجات Firebase iOS SDK واستطلاع استخدام المطور. تنعكس هذه التغييرات في ملاحظات إصدار Firebase iOS SDK وفي صفحة إعداد Firebase iOS SDK .
لمعرفة الحد الأدنى من إصدار Xcode المدعوم بواسطة Firebase iOS SDK ، تحقق من المتطلبات المدرجة في إضافة Firebase إلى مشروع iOS الخاص بك .
يتوفر دعم Firebase للإصدارات التجريبية من Xcode على أساس "أفضل جهد". يمكن للمطورين تتبع المشكلات وإرسالها في مستودع Firebase iOS SDK على GitHub .
وحدة تحكم Firebase
ما المتصفحات المدعومة للوصول إلى وحدة تحكم Firebase؟
يمكن الوصول إلى وحدة تحكم Firebase من الإصدارات الحديثة من متصفحات سطح المكتب الشائعة مثل Chrome و Firefox و Safari و Edge. متصفحات الهاتف المحمول ليست مدعومة بالكامل حاليًا.
لماذا لا يتم تحميل وحدة تحكم Firebase بالنسبة لي؟
فيما يلي بعض خطوات استكشاف الأخطاء وإصلاحها لتجربتها إذا كنت تواجه مشكلات في تحميل وحدة تحكم Firebase:
- تحقق من صف وحدة التحكم في Firebase Status Dashboard بحثًا عن أي انقطاعات محتملة في الخدمة.
- تأكد من أنك تستخدم متصفحًا مدعومًا .
- حاول تحميل وحدة تحكم Firebase في نافذة التصفح المتخفي أو الخاصة.
- تعطيل كافة ملحقات المتصفح.
- تحقق مما إذا كان هناك أي شيء يحظر اتصالك مثل برنامج مكافحة الفيروسات أو وكلاء الشبكة أو جدار الحماية. إذا كان الأمر كذلك ، فحاول تعطيلها.
- حاول تحميل وحدة تحكم Firebase باستخدام شبكة أو جهاز مختلف.
إذا لم تنجح أي من خطوات استكشاف الأخطاء وإصلاحها المذكورة أعلاه في حل المشكلة ، فيرجى الاتصال بالدعم .
كيف يتم تحديد لغة وحدة تحكم Firebase الخاصة بي؟
يعتمد إعداد اللغة لوحدة تحكم Firebase على اللغة المحددة في إعدادات حساب Google الخاص بك.
لتغيير تفضيلات اللغة الخاصة بك ، راجع تغيير اللغة .
تدعم وحدة تحكم Firebase اللغات التالية:
- الإنجليزية
- البرتغالية البرازيلية
- الفرنسية
- ألمانية
- الأندونيسية
- اليابانية
- الكورية
- الروسية
- الصينية المبسطة
- الأسبانية
- الصينية التقليدية
ما الأدوار والأذونات التي تدعمها وحدة تحكم Firebase؟
تستخدم وحدة تحكم Firebase و Google Cloud Console نفس الأدوار والأذونات الأساسية. تعرف على المزيد حول الأدوار والأذونات في وثائق Firebase IAM .
يدعم Firebase الأدوار الأساسية (الأساسية) للمالك والمحرر والعارض:
- يمكن لمالك المشروع إضافة أعضاء آخرين إلى المشروع ، وإعداد عمليات التكامل (ربط المشروع بخدمات مثل BigQuery أو Slack) ، ولديه حق الوصول الكامل للتعديل للمشروع.
- محرر المشروع لديه حق الوصول الكامل لتحرير المشروع.
- يمتلك عارض المشروع حق الوصول للقراءة فقط للمشروع. لاحظ أن وحدة تحكم Firebase لا تخفي حاليًا / تعطل عناصر تحكم تعديل واجهة المستخدم من عارضين المشروع ، لكن هذه العمليات ستفشل لأعضاء المشروع الذين تم تعيين دور العارض لهم.
يدعم Firebase أيضًا:
- أدوار Firebase المحددة مسبقًا - أدوار محددة خاصة بـ Firebase تمكِّن من التحكم في الوصول الدقيق أكثر من الأدوار الأساسية للمالك والمحرر والعارض.
- الأدوار المخصصة - أدوار IAM المخصصة بالكامل التي تقوم بإنشائها لتخصيص مجموعة من الأذونات التي تلبي المتطلبات المحددة لمؤسستك.
التسعير
ما هي المنتجات المدفوعة؟ أيهما مجاني؟
منتجات البنية التحتية المدفوعة من Firebase هي Realtime Database و Cloud Storage for Firebase والوظائف والاستضافة ومختبر الاختبار ومصادقة الهاتف. نحن نقدم طبقة مجانية لجميع هذه الميزات.
يحتوي Firebase أيضًا على العديد من المنتجات المجانية: التحليلات والمراسلة السحابية وملحن الإشعارات والتكوين عن بُعد وفهرسة التطبيقات والارتباطات الديناميكية وتقارير الأعطال. يمكنك استخدام كمية غير محدودة من أي من هذه المنتجات في جميع الخطط ، بما في ذلك خطة Spark المجانية الخاصة بنا. بالإضافة إلى ذلك ، فإن جميع ميزات المصادقة بخلاف مصادقة الهاتف مجانية.
هل يقدم Firebase أرصدة تجريبية مجانية للمنتجات المدفوعة؟
يمكن استخدام خدمات Firebase المدفوعة ضمن الإصدار التجريبي المجاني من Google Cloud . يمكن لمستخدمي Google Cloud و Firebase الجدد الاستفادة من فترة تجريبية مدتها 90 يومًا تتضمن 300 دولارًا في أرصدة Cloud Billing المجانية لاستكشاف وتقييم منتجات Google Cloud و Firebase وخدماتها.
خلال فترة الإصدار التجريبي المجاني من Google Cloud ، سيتم تزويدك بحساب Free Trial Cloud Billing. سيكون أي مشروع Firebase يستخدم حساب الفوترة هذا في خطة فوترة Blaze خلال الفترة التجريبية المجانية.
لا تقلق ، إعداد حساب Free Trial Cloud Billing هذا لا يمكننا من تحصيل الرسوم منك. لا يتم محاسبتك إلا إذا قمت بتمكين الفوترة صراحةً عن طريق ترقية حساب Free Trial Cloud Billing الخاص بك إلى حساب مدفوع. يمكنك الترقية إلى حساب مدفوع في أي وقت أثناء الفترة التجريبية. بعد الترقية ، لا يزال بإمكانك استخدام أي أرصدة متبقية (خلال فترة 90 يومًا).
بمجرد انتهاء صلاحية الإصدار التجريبي المجاني ، ستحتاج إما إلى الرجوع إلى إصدار سابق من مشروعك إلى خطة فوترة Spark أو إعداد خطة فوترة Blaze الدفع أولاً بأول في وحدة تحكم Firebase لمواصلة استخدام مشروع Firebase الخاص بك.
تعرف على المزيد حول الإصدار التجريبي المجاني من Google Cloud .
كيف أعرف الخطة المناسبة لي؟
خطة فواتير شرارة
تعتبر خطة Spark الخاصة بنا مكانًا رائعًا لتطوير تطبيقك مجانًا. ستحصل على جميع ميزات Firebase المجانية (التحليلات ، ومنشئ الإشعارات ، وتقارير الأعطال ، وما إلى ذلك) وكميات سخية من ميزات البنية التحتية المدفوعة. ومع ذلك ، إذا تجاوزت موارد خطة Spark الخاصة بك في شهر تقويمي ، فسيتم إيقاف تشغيل تطبيقك لبقية ذلك الشهر. بالإضافة إلى ذلك ، لا تتوفر ميزات Google Cloud في طبقة Spark.
خطة فوترة الحريق
تم تصميم خطة Blaze الخاصة بنا لتطبيقات الإنتاج. تسمح لك خطة Blaze أيضًا بتوسيع تطبيقك بميزات Google Cloud المدفوعة. أنت تدفع فقط مقابل الموارد التي تستهلكها ، مما يسمح لك بالتوسع حسب الطلب. نحن نسعى جاهدين لجعل أسعار خطة Blaze الخاصة بنا تنافسية مع مزودي الخدمات السحابية الرائدين في الصناعة.
كيف يمكنني مراقبة استخدامي والفواتير الخاصة بي؟
يمكنك تتبع استخدامك لموارد المشروع في وحدة تحكم Firebase على أي من لوحات المعلومات التالية:
ماذا حدث لخطة فواتير Flame؟
اعتبارًا من كانون الثاني (يناير) 2020 ، لم تعد خطة فوترة Flame (25 دولارًا شهريًا من الحصة الإضافية) متاحة للاشتراكات الجديدة.
- لم يعد بإمكان مشاريع خطة Spark و Blaze الحالية وأي مشاريع جديدة التبديل إلى خطة Flame أو الاشتراك فيها.
- إذا قمت بنقل مشروع خطة Flame الحالي إلى خطة فوترة مختلفة ، فلن يتمكن المشروع من العودة إلى خطة Flame.
- يمكن أن تستمر مشاريع خطة Flame الحالية في استخدام خطة Flame في الوقت الحالي. ومع ذلك ، ستتلقى معلومات في الأشهر القادمة حول الجدول الزمني المطلوب للانتقال إلى خطة فوترة أخرى.
- تمت إزالة الإشارات إلى خطة Flame من الوثائق.
هل لديك المزيد من الأسئلة حول خطة تقاعد Flame؟ اقرأ بعض الأسئلة الشائعة الإضافية أدناه.
هل تريد التعرف على خطط الفوترة الأخرى التي تقدمها Firebase؟ قم بزيارة صفحة تسعير Firebase الخاصة بنا! إذا كنت ترغب في بدء نقل أي مشاريع حالية إلى خطة فوترة أخرى ، فيمكنك القيام بذلك في وحدة تحكم Firebase لمشروعك.
بالنسبة لمشاريع خطة Flame الحالية ، تظل حصص التخطيط وتوافر الميزات سارية المفعول.
- خطة لهب لا توفر أي حصة استخدام للمنتجات التالية:
BigQuery و Google Cloud IaaS الأخرى - تتضمن خطة Flame حصة استخدام مجانية للمنتجات التالية:
اختبار A / B ، والتحليلات ، وفهرسة التطبيقات ، والرسائل السحابية (FCM) ، و Crashlytics ، والروابط الديناميكية ، ومراقبة الأداء ، والتنبؤات ، والتكوين عن بُعد تتضمن خطة Flame حصة استخدام للمنتجات التالية:
منتج ميزة المدرجة في خطة اللهب المصادقة مصادقة الهاتف - الولايات المتحدة وكندا والهند 10 آلاف / شهر مصادقة الهاتف - جميع البلدان الأخرى 10 آلاف / شهر خدمات وميزات المصادقة الأخرى ✔ (مجاني) سحابة Firestore مخزن البيانات إجمالي 2.5 جيجا بايت خروج الشبكة 20 جيجابايت / الشهر وثيقة يكتب 100 ك / يوم يقرأ المستند 250 ألف / يوم يحذف المستند 100 ك / يوم وظائف السحابة لـ Firebase الدعاء 2 مليون / الشهر جيجا بايت ثانية 400 ألف / شهر وحدة المعالجة المركزية ثانية 200 ألف / شهر الشبكات الصادرة 5 جيجا / الشهر الاستضافة مخزن البيانات إجمالي 10 جيجا بايت نقل البيانات 50 جيجا / الشهر المجال المخصص و SSL ✔ (مجاني) مواقع متعددة لكل مشروع ✔ (مجاني) Firebase ML نموذج مخصص للاستضافة / الخدمة ✔ (مجاني) مجموعة بيانات AutoML Vision Edge 1k صورة / مشروع تدريب AutoML Vision Edge 3 ساعات / مشروع واجهات برمجة تطبيقات Cloud Vision غير مشمول قاعدة بيانات الوقت الفعلي اتصالات متزامنة 200 كيلو مخزن البيانات إجمالي 2.5 جيجا بايت تنزيل البيانات 20 جيجا / الشهر قواعد بيانات متعددة لكل مشروع غير مشمول سحابة التخزين مخزن البيانات إجمالي 50 جيجا بايت تنزيل البيانات 50 جيجا / يوم عمليات التحميل 100 ك / يوم عمليات التنزيل 250 ألف / يوم دلاء متعددة لكل مشروع غير مشمول معمل الاختبار اختبارات الجهاز الافتراضي 10 فحوصات / يوم اختبارات الجهاز المادي 5 اختبارات / يوم
أسئلة وأجوبة إضافية حول تقاعد خطة Flame
ماذا يحدث لمشاريع خطة Flame الحالية الخاصة بي الآن؟
في الوقت الحالي ، لا يوجد أي تغيير في مشروعك أو فواتيرك. ومع ذلك ، ستتلقى معلومات في الأشهر القادمة حول الجدول الزمني المطلوب للانتقال إلى خطة فوترة أخرى.
ماذا سيحدث لمشاريع خطة Flame الحالية الخاصة بي في المستقبل؟
في هذا الوقت ، لا يوجد جدول زمني محدد لنقل مشاريع خطة Flame إلى خطة فوترة مختلفة. ومع ذلك ، ستتلقى معلومات في الأشهر القادمة حول الجدول الزمني المطلوب للانتقال إلى خطة فوترة أخرى.
لديّ مشروع / عملية / نموذج عمل يعتمد على تكلفة Firebase ثابتة. ماذا علي أن أفعل؟
اشترك في خطة Blaze pay-as-you go وتأكد من تعيين تنبيهات ميزانية المشروع.
هل يمكنني الحصول على وصول خاص لإنشاء مشاريع خطة Flame الجديدة؟
لا ، لا يوفر Firebase وصولاً خاصًا للمشاريع للتبديل إلى خطة Flame أو الاشتراك فيها.
لقد غيرت مشروع خطة Flame إلى خطة فوترة مختلفة. كيف يمكنني تغييره مرة أخرى؟
لم يعد التبديل إلى خطة Flame ممكنًا. للوصول إلى الخدمات التي توفرها خطة Flame ، تأكد من أنك تستخدم خطة Blaze الدفع أولاً بأول ، وفكر في تعيين تنبيهات الميزانية لمشروعك.
تم تحويل مشروعي تلقائيًا إلى خطة فوترة مختلفة كجزء من تقاعد خطة Flame. ماذا علي أن أفعل؟
تغييرات خطة الفوترة التلقائية ليست جزءًا من النطاق الحالي لتقاعد خطة Flame. تأكد من مراجعة سجلات التدقيق الخاصة بك لمعرفة تغييرات الفواتير.
لماذا تم إيقاف خطة Flame؟
على مر السنين ، شهدنا انخفاضًا في استخدام خطة Flame ، ومعظم المشاريع التي تستخدم الخطة لا تستهلك قيمتها الكاملة. بشكل عام ، الحفاظ على خطة الفوترة هذه ليس فعالاً من حيث التكلفة ، ونعتقد أنه يمكننا خدمة الجميع بشكل أفضل إذا ذهبت الموارد إلى مبادرات Firebase الأخرى.
كيف يختلف الاستخدام المجاني في خطة Blaze عن الاستخدام المجاني في خطة Spark؟
يتم احتساب الاستخدام المجاني لخطة Blaze يوميًا. تختلف حدود الاستخدام أيضًا عن خطة Spark للوظائف السحابية ومصادقة الهاتف ومختبر الاختبار.
بالنسبة إلى وظائف السحابة ، يتم حساب الاستخدام المجاني في خطة Blaze على مستوى حساب الفوترة ، وليس على مستوى المشروع وله الحدود التالية:
- 2 مليون دعاء / شهر
- 400 كيلو بايت / ثانية / شهر
- 200 ألف وحدة معالجة مركزية ثانية / شهر
- 5 جيجابايت من شبكات الخروج / الشهر
لمصادقة الهاتف ، يتم حساب الاستخدام المجاني في خطة Blaze شهريًا.
بالنسبة إلى Test Lab ، فإن الاستخدام المجاني لخطة Blaze له الحدود التالية:
- 30 دقيقة على الجهاز الفعلي / اليوم
- 60 دقيقة على الجهاز الافتراضي / اليوم
هل يتم إعادة تعيين حصة الاستخدام المجانية عند التغيير من خطة Spark إلى خطة Blaze؟
يتم تضمين الاستخدام المجاني من خطة Spark في خطة Blaze. لا يتم إعادة تعيين الاستخدام المجاني عند الانتقال إلى خطة Blaze.
ما هو "اتصال قاعدة البيانات المتزامن"؟
الاتصال المتزامن يعادل جهاز محمول أو علامة تبويب متصفح أو تطبيق خادم متصل بقاعدة البيانات. يفرض Firebase قيودًا صارمة على عدد الاتصالات المتزامنة بقاعدة بيانات تطبيقك. تم وضع هذه الحدود لحماية Firebase ومستخدمينا من إساءة الاستخدام.
حد خطة Spark هو 100 ولا يمكن رفعه. تمتلك خطط Flame and Blaze حدًا يبلغ 200000 اتصال متزامن لكل قاعدة بيانات.
هذا الحد لا يماثل العدد الإجمالي لمستخدمي تطبيقك ، لأن المستخدمين لديك لا يتصلون جميعًا مرة واحدة. إذا كنت بحاجة إلى أكثر من 200000 اتصال متزامن ، فيرجى قراءة مقياس مع قواعد بيانات متعددة .
ماذا يحدث إذا تجاوزت حدود تخزين خطة Spark أو التنزيل لقاعدة بيانات Realtime؟
لتزويدك بسعر يمكن التنبؤ به ، يتم تحديد الموارد المتاحة لك في خطط Spark. هذا يعني أنه عند تجاوز أي حد للخطة في أي شهر ، سيتم إيقاف تشغيل التطبيق الخاص بك لمنع أي استخدام إضافي للموارد والرسوم الإضافية.
ماذا يحدث إذا تجاوزت حدود الاتصال المتزامن لخطة Spark لقاعدة بيانات Realtime؟
عندما يصل تطبيقك إلى حدود موافقاته في خطة Spark ، سيتم رفض أي اتصالات لاحقة حتى يتم إغلاق بعض الاتصالات الحالية. سيستمر التطبيق في العمل للمستخدمين المتصلين.
ماذا يحدث إذا تجاوزت حدود تحميل أو تنزيل أو تخزين خطة Spark لـ Cloud Storage؟
عندما تتجاوز حدود التخزين السحابي في مشروع على خطة Spark ، تعتمد النتيجة على نوع الحد الذي تتجاوزه:
- إذا تجاوزت حد الجيجابايت المخزنة ، فلن تتمكن من تخزين أي بيانات أخرى في هذا المشروع ما لم تقم بإزالة بعض البيانات المخزنة أو الترقية إلى خطة توفر مساحة تخزين أكبر أو مساحة تخزين غير محدودة.
- إذا تجاوزت حد التنزيل بالجيجابايت ، فلن يتمكن تطبيقك من تنزيل المزيد من البيانات حتى اليوم التالي (بدءًا من منتصف الليل ، بتوقيت المحيط الهادئ في الولايات المتحدة) ، ما لم تقم بالترقية إلى خطة ذات حدود أقل تقييدًا ، أو بلا حدود.
- إذا تجاوزت حد عمليات التحميل أو التنزيل ، فلن يتمكن تطبيقك من تحميل أو تنزيل المزيد من البيانات حتى اليوم التالي (بدءًا من منتصف الليل ، بتوقيت المحيط الهادئ في الولايات المتحدة) ، ما لم تقم بالترقية إلى خطة ذات حدود أقل تقييدًا ، أو بدون حدود.
كيف يعمل تكامل Firebase مع Google Cloud؟
تم دمج Firebase بعمق مع Google Cloud . تتم مشاركة المشاريع بين Firebase و Google Cloud ، لذا يمكن تمكين خدمات Firebase وخدمات Google Cloud للمشاريع. يمكنك الوصول إلى نفس المشروع من Firebase console أو Google Cloud Console. على وجه التحديد:
- يتم دعم بعض منتجات Firebase مباشرةً بواسطة Google Cloud ، مثل Cloud Storage for Firebase. ستستمر قائمة المنتجات المدعومة من Google Cloud في النمو بمرور الوقت.
- تتم مشاركة العديد من إعداداتك ، بما في ذلك المتعاونون ومعلومات الفوترة ، بواسطة Firebase و Google Cloud. يظهر استخدامك لكل من Firebase و Google Cloud في نفس الفاتورة.
بالإضافة إلى ذلك ، عند الترقية إلى خطة Blaze ، يمكنك استخدام أي من البنية التحتية كخدمة وواجهات برمجة تطبيقات Google Cloud ذات المستوى العالمي مباشرة داخل مشروع Firebase ، بسعر Google Cloud القياسي. يمكنك أيضًا تصدير البيانات من Google Cloud مباشرةً إلى BigQuery لتحليلها. لمعرفة المزيد ، راجع ربط BigQuery بـ Firebase.
هناك العديد من مزايا تعزيز الأمان وتحسين وقت الاستجابة وتوفير الوقت لاستخدام Google Cloud مع Firebase (مقابل الخدمات السحابية الأخرى غير الموجودة في نفس الموقع). تحقق من موقع Google Cloud للحصول على مزيد من التفاصيل.
ماذا يحدث لمشروع Firebase الخاص بي إذا أضفت أو أزلت حسابات الفوترة لهذا المشروع في Google Cloud Console؟
إذا تمت إضافة حساب الفوترة إلى مشروع في Google Cloud Console ، فسيتم تلقائيًا ترقية المشروع نفسه إلى خطة Firebase Blaze إذا كان هذا المشروع حاليًا على خطة Spark.
في المقابل ، إذا تمت إزالة حساب فوترة نشط حالي من مشروع في Google Cloud Console ، فسيتم إرجاع هذا المشروع إلى خطة Firebase Spark.
هل يمكنني الترقية أو الرجوع إلى إصدار سابق أو الإلغاء في أي وقت؟
نعم ، يمكنك الترقية أو الرجوع إلى إصدار سابق أو الإلغاء في أي وقت. لاحظ أننا لا نقدم المبالغ المستردة التناسبية لخفض التصنيف أو الإلغاء. هذا يعني أنك إذا رجعت إلى إصدار سابق أو ألغيت قبل نهاية فترة الفوترة ، فستظل تدفع مقابل الفترة المتبقية من الشهر.
ما نوع الدعم الذي سأحصل عليه؟
تأتي جميع تطبيقات Firebase ، بما في ذلك الخطط المجانية ، مزودة بدعم عبر البريد الإلكتروني من موظفي Firebase خلال ساعات العمل في المحيط الهادئ بالولايات المتحدة. تتمتع جميع الحسابات بدعم غير محدود للمشكلات المتعلقة بالفوترة والمشكلات المتعلقة بالحساب والأسئلة الفنية (استكشاف الأخطاء وإصلاحها) وتقارير الحوادث.
هل يمكنني تحديد الحد الأقصى للاستخدام في خطة Blaze؟
لا ، لا يمكنك حاليًا تحديد استخدام خطة Blaze الخاصة بك. نقوم بتقييم الخيارات لدعم الحدود القصوى لاستخدام خطة Blaze.
يمكن لمستخدمي Blaze تحديد ميزانية لمشروعهم أو حسابهم ، وتلقي تنبيهات عندما يقترب إنفاقهم من هذه الحدود. لمزيد من المعلومات ، راجع تعيين تنبيهات الميزانية .
ما هي النسخ الاحتياطية الآلية؟ هل تقدمون نسخ احتياطي كل ساعة؟
تعد النسخ الاحتياطية التلقائية ميزة متقدمة للعملاء في خطة فوترة Blaze التي تدعم بيانات قاعدة بيانات Firebase Realtime مرة واحدة يوميًا وتحميلها إلى Google Cloud Storage .
نحن لا نقدم نسخ احتياطية كل ساعة.
هل تقدم خصومات مفتوحة المصدر أو غير ربحية أو تعليمية؟
يمكن استخدام خطة Spark الخاصة بنا من قبل أي نوع من الأفراد أو المنظمات ، بما في ذلك المنظمات غير الربحية والمدارس والمشاريع مفتوحة المصدر. نظرًا لأن هذه الخطط تتضمن بالفعل حصصًا سخية ، فإننا لا نقدم أي خصومات أو خطط خاصة لمشاريع مفتوحة المصدر أو غير ربحية أو تعليمية.
هل تقدمون عقودًا للمؤسسات أو تسعيرًا أو دعمًا أو استضافة مخصصة للبنية التحتية؟
خطة Blaze الخاصة بنا مناسبة للمؤسسات من جميع الأحجام ، كما أن اتفاقية مستوى الخدمة (SLA) تلبي معايير الصناعة للبنية التحتية السحابية أو تتجاوزها. ومع ذلك ، فإننا لا نقدم حاليًا عقودًا أو أسعارًا أو دعمًا خاصًا بالمؤسسات ، كما أننا لا نقدم استضافة بنية تحتية مخصصة (أي عمليات التثبيت في أماكن العمل) لخدمات مثل قاعدة بيانات Realtime الخاصة بنا. نحن نعمل بجد لإضافة بعض هذه الميزات.
هل تقدمون أسعارًا مخصصة؟ أريد فقط الدفع أولاً بأول لميزة أو ميزتين.
نحن نقدم أسعارًا مخصصة في خطة Blaze ، حيث تدفع فقط مقابل الميزات التي تستخدمها.
كيف تعمل خطط Firebase المدفوعة مع الإعلانات؟ هل توجد أرصدة إعلانية مجانية مع خطط مدفوعة؟
خطط تسعير Firebase منفصلة عن الإعلانات ، لذلك لا توجد أرصدة إعلانية مجانية. بصفتك أحد مطوري Firebase ، يمكنك "ربط" حساب الإعلانات الخاص بك بـ Firebase لدعم تتبع التحويل.
تتم إدارة جميع حملات الإعلانات مباشرةً في الإعلانات ، وتتم إدارة فوترة الإعلانات من وحدة تحكم الإعلانات.
تسعير وظائف السحابة
لماذا أحتاج إلى حساب فوترة لاستخدام وظائف السحابة لـ Firebase؟
تعتمد وظائف السحابة في Firebase على بعض خدمات Google المدفوعة: Cloud Build و Container Registry و Cloud Storage . سيتم محاسبة استخدام هذه الخدمات بالإضافة إلى الأسعار الحالية.
ستتم محاسبتك فقط على وقت الحوسبة المطلوب لإنشاء حاوية وقت تشغيل الوظيفة.
سيوفر التخزين السحابي ، الذي يعمل مع Google Container Registry ، مساحة تخزين للحاويات التي تعمل فيها الوظائف. ستتم محاسبتك على كل حاوية مطلوبة لنشر وظيفة. قد تلاحظ رسومًا صغيرة لكل حاوية مخزنة - على سبيل المثال ، يتم إصدار فاتورة بقيمة 1 غيغابايت للتخزين بمبلغ 0.026 دولارًا أمريكيًا في الشهر .
لفهم المزيد حول كيفية تغيير فاتورتك ، يرجى مراجعة ما يلي
- تسعير وظائف السحابة : الطبقة المجانية الحالية لم تتغير.
- تسعير Cloud Build: يوفر Cloud Build مستوى مجانيًا.
- تسعير سجل الحاويات .
هل لا يزال استخدام Cloud Functions لـ Firebase مجانيًا؟
نعم. في خطة Blaze ، توفر وظائف السحابة مستوى مجانيًا دائمًا للاستدعاءات ووقت الحساب وحركة المرور على الإنترنت. يتم توفير أول 2،000،000 طلب ، و 400،000 غيغابايت في الثانية ، و 200000 وحدة المعالجة المركزية في الثانية ، و 5 غيغابايت من حركة مرور خروج الإنترنت مجانًا كل شهر. ستتم محاسبتك فقط على الاستخدام فوق تلك الحدود.
ستتحمل كل عملية نشر رسومًا صغيرة مقابل مساحة التخزين المستخدمة لحاوية الوظيفة. على سبيل المثال ، إذا كانت وظائفك تستهلك 1 غيغابايت من مساحة التخزين عبر Container Registry ، فستتم محاسبتك على 0.026 دولارًا شهريًا . إذا كانت عملية التطوير تعتمد على نشر الوظائف للاختبار ، فيمكنك تقليل التكاليف بشكل أكبر باستخدام Firebase Local Emulator Suite أثناء التطوير.
راجع خطط تسعير Firebase وأمثلة على سيناريوهات تسعير وظائف السحابة .
هل يخطط Firebase لزيادة الحصص والحدود لوظائف السحابة الخاصة بـ Firebase؟
لا ، لا توجد خطط لتغيير الحصص باستثناء إزالة الحد الأقصى لوقت البناء ؛ بدلاً من تلقي أخطاء أو تحذيرات عند الوصول إلى حصة الإصدار اليومية البالغة 120 دقيقة ، ستتم محاسبتك بموجب شروط خطة Blaze pay-as-you go. انظر الحصص والقيود .
هل يمكنني الحصول على رصيد Google Cloud $ 300؟
نعم ، يمكنك إنشاء حساب فوترة في Google Cloud Console للحصول على رصيد بقيمة 300 دولار ، ثم ربط حساب الفوترة هذا بمشروع Firebase.
المزيد حول رصيد Google Cloud هنا .
لاحظ أنه إذا قمت بذلك ، فيجب عليك بعد ذلك إعداد خطة فوترة Blaze pay-as-go في وحدة تحكم Firebase حتى يستمر مشروعك في العمل بعد نفاد رصيد 300 دولار
أرغب في متابعة مختبر الرموز للتعرف على Firebase. هل يمكن أن تعطيني حساب فواتير مؤقت؟
لا آسف. يمكنك استخدام محاكي Firebase للتطوير دون أن يكون لديك حساب فوترة. بدلاً من ذلك ، حاول التقدم للحصول على نسخة تجريبية مجانية من Google Cloud . إذا كنت لا تزال تواجه مشكلة في سداد فاتورتك بسبب هذا التغيير ، فاتصل بدعم Firebase.
أنا قلق من أن أجمع فاتورة ضخمة.
يمكنك إعداد تنبيهات الميزانية في Google Cloud Console للمساعدة في التحكم في التكاليف. للحصول على فكرة عن تكلفة السيناريوهات النموذجية ، راجع أمثلة تسعير وظائف السحابة .
كيف يمكنني التحقق من رسوم الفواتير الحالية الخاصة بي؟
اعرض لوحة معلومات الاستخدام والفوترة في وحدة تحكم Firebase.
أنا أستخدم ملحقات Firebase. هل سأتأثر بهذا التغيير؟
نعم. نظرًا لأن الإضافات تستخدم وظائف السحابة ، فإن الإضافات التي تستخدم Node.js 10 أو أحدث ستخضع لنفس الرسوم مثل الوظائف الأخرى.
لاستخدام الإضافات القائمة على Node.js 10 أو أحدث ، ستحتاج إلى الترقية إلى خطة فوترة Blaze الدفع أولاً بأول. سيتم تحصيل مبلغ صغير (عادةً حوالي 0.01 دولار شهريًا ) لموارد Firebase المطلوبة لكل ملحق تقوم بتثبيته (حتى إذا لم يتم استخدامها) ، بالإضافة إلى أي رسوم مرتبطة باستخدامك لخدمات Firebase.
خصوصية
أين يمكنني العثور على معلومات حول الخصوصية والأمان في Firebase؟
تحقق من صفحة الخصوصية والأمان في Firebase .
هل تُسجِّل حزم Firebase SDK أي معلومات استخدام / تشخيص خارج Analytics؟
نعم. هذا حاليًا لنظام iOS فقط ، ولكن قد يتغير في المستقبل. تتضمن حزمة Firebase iOS SDK إطار عمل FirebaseCoreDiagnostics
افتراضيًا. يتم استخدام إطار العمل هذا بواسطة Firebase لجمع معلومات حول استخدام SDK والتشخيص للمساعدة في تحديد أولويات تحسينات المنتج المستقبلية. يعد FirebaseCoreDiagnostics
اختياريًا ، لذلك إذا كنت ترغب في إلغاء الاشتراك في إرسال سجلات تشخيص Firebase ، فيمكنك القيام بذلك عن طريق إلغاء ربط المكتبة بالتطبيق الخاص بك. يمكنك تصفح المصدر الكامل ، بما في ذلك القيم المسجلة ، على GitHub
اختبار A / B
اختبار أ / ب: كم عدد التجارب التي يمكنني إنشاؤها وتشغيلها؟
يُسمح لك بما يصل إلى 300 تجربة لكل مشروع ، والتي يمكن أن تتكون من ما يصل إلى 24 تجربة قيد التشغيل ، والباقي كمسودة أو مكتملة.
AdMob
AdMob: هل سأتمكن من ربط تطبيقاتي على Windows بـ Firebase؟
تطبيقات Windows غير مدعومة حاليًا في وحدة تحكم Firebase.
AdMob: لماذا لا يمكنني ربط حسابي في AdMob بوحدة تحكم Firebase؟
يمكنك ربط تطبيق AdMob بتطبيق Firebase عبر وحدة تحكم AdMob. لربط الحساب ، يجب أن تكون مالكًا لمشروع Firebase ومسؤولًا في AdMob.
AdMob: هل يمكن لعدة مستخدمين ربط حساباتهم في AdMob بتطبيق Firebase؟
لا ، سيكون لكل حساب AdMob مستخدم أساسي واحد فقط. المستخدم الأساسي هو أول مستخدم يقبل شروط خدمة Firebase.
تحليلات
Analytics: لماذا يُنصح باستخدام Google Analytics كجزء من استخدام منتجات Firebase؟
Google Analytics عبارة عن حل تحليلات مجاني وغير محدود يعمل مع ميزات Firebase لتقديم رؤى قوية. يمكّنك من عرض سجلات الأحداث في Crashlytics ، وفعالية الإخطار في FCM ، وأداء الارتباط العميق للروابط الديناميكية ، وبيانات الشراء داخل التطبيق من Google Play. إنه يدعم استهداف الجمهور المتقدم في التكوين عن بعد والتنبؤات والمزيد.
يعمل Google Analytics كطبقة من الذكاء في وحدة تحكم Firebase لتزويدك بمزيد من الرؤى القابلة للتنفيذ حول كيفية تطوير تطبيق عالي الجودة ، وتنمية قاعدة المستخدمين ، وكسب المزيد من المال.
للبدء ، اقرأ الوثائق .
التحليلات: كيف أقوم بتقسيم المستخدمين الذين لم يستوفوا بعض المعايير؟
يمكنك إعادة صياغة المشكلة من خلال "الاستهداف السلبي" لهؤلاء المستخدمين. على سبيل المثال ، أعد صياغة المشكلة على النحو التالي "لا تعرض الإعلانات للأشخاص الذين اشتروا شيئًا ما" ، وقم بتكوين جمهور من هؤلاء المستخدمين للاستهداف.
التحليلات: كيف أتحكم في كيفية مشاركة بيانات Analytics مع بقية Firebase؟
بشكل افتراضي ، يتم استخدام بيانات Google Analytics لتحسين ميزات Firebase و Google الأخرى. يمكنك التحكم في كيفية مشاركة بيانات Google Analytics في إعدادات المشروع في أي وقت. تعرف على المزيد حول إعدادات مشاركة البيانات .
Analytics: ما هو حساب Google Analytics الجديد الذي تمت ترقيته بالكامل؟
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: 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: What is Firebase User Segmentation Storage?
Firebase User Segmentation Storage stores audience lists you've created to provide targeting information to other Firebase services that use them, such as Crashlytics, FCM, Predictions, and more.
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: Why do I get an error when trying to upgrade my project to the new Google Analytics experience?
If you are experiencing and 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 .
Analytics: Will audiences and/or events defined in Google Analytics be available on 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.
App Indexing
App Indexing: Can Google Search index multiple languages for a single app?
Google Search supports the following multi-language cases:
- The associated website has unique URLs for each language, and there is one corresponding app HTTP URL for each web URL.
- The associated website has unique URLs for each language, but there is only one app HTTP URL. The app uses system language settings to display the correct language content.
- The associated website has one URL for all languages (or it supports only one language), and there is one corresponding app URL. The website and the application must display the content in the same language when the user has set no preference.
App Indexing: Can App Indexing support multiple websites for an app?
نعم. Make sure that each associated website is verified for the Android app via the Google Play Console . Learn how to verify your app .
App Indexing: Do sitemaps need to be added via the Search Console?
iOS does not require sitemaps, and Android does not require them as long as your app supports HTTP URLs. For custom URLs, you do not need to add sitemaps via Search Console. You can reference sitemaps in your robots.txt
file and Google Search will use them. Learn more about managing sitemaps . However, submitting a sitemap through Search Console lets you see statistics on submitted and indexed HTTP URLs in Search Console.
Authentication
Firebase Authentication: Which countries are supported for phone authentication?
Firebase Authentication supports phone number verification across the the world, but not all networks reliably deliver our verification messages. The following countries have good rates of delivery, and should be expected to work well for phone number sign in.
Country | Code |
---|---|
AD | Andorra |
AE | United Arab Emirates |
AF | Afghanistan |
AG | Antigua and Barbuda |
AL | Albania |
AM | Armenia |
AO | Angola |
AR | Argentina |
AS | American Samoa |
AT | Austria |
AU | Australia |
AW | Aruba |
AZ | Azerbaijan |
BA | Bosnia and Herzegovina |
BB | Barbados |
BD | Bangladesh |
BE | Belgium |
BF | Burkina Faso |
BG | Bulgaria |
BJ | Benin |
BM | Bermuda |
BN | Brunei Darussalam |
BO | Bolivia |
BR | Brazil |
BS | Bahamas |
BT | Bhutan |
BW | Botswana |
BY | Belarus |
BZ | Belize |
CA | Canada |
CD | Congo, (Kinshasa) |
CF | Central African Republic |
CG | Congo (Brazzaville) |
CH | Switzerland |
CI | Côte d'Ivoire |
CK | Cook Islands |
CL | Chile |
CM | Cameroon |
CO | Colombia |
CR | Costa Rica |
CV | Cape Verde |
CW | Curaçao |
CY | Cyprus |
CZ | Czech Republic |
DE | Germany |
DJ | Djibouti |
DK | Denmark |
DM | Dominica |
DO | Dominican Republic |
DZ | Algeria |
EC | Ecuador |
EG | Egypt |
ES | Spain |
ET | Ethiopia |
FI | Finland |
FJ | Fiji |
FK | Falkland Islands (Malvinas) |
FM | Micronesia, Federated States of |
FO | Faroe Islands |
FR | France |
GA | Gabon |
GB | United Kingdom |
GD | Grenada |
GE | Georgia |
GF | French Guiana |
GG | Guernsey |
GH | Ghana |
GI | Gibraltar |
GL | Greenland |
GM | Gambia |
GP | Guadeloupe |
GQ | Equatorial Guinea |
GR | Greece |
GT | Guatemala |
GY | Guyana |
HK | Hong Kong, SAR China |
HN | Honduras |
HR | Croatia |
HT | Haiti |
HU | Hungary |
ID | Indonesia |
IE | Ireland |
IL | Israel |
IM | Isle of Man |
IN | India |
IQ | Iraq |
IT | Italy |
JE | Jersey |
JM | Jamaica |
JO | Jordan |
JP | Japan |
KE | Kenya |
KG | Kyrgyzstan |
KH | Cambodia |
KM | Comoros |
KN | Saint Kitts and Nevis |
KR | Korea (South) |
KW | Kuwait |
KY | Cayman Islands |
KZ | Kazakhstan |
LA | Lao PDR |
LB | Lebanon |
LC | Saint Lucia |
LI | Liechtenstein |
LK | Sri Lanka |
LS | Lesotho |
LT | Lithuania |
LU | Luxembourg |
LV | Latvia |
LY | Libya |
MA | Morocco |
MD | Moldova |
ME | Montenegro |
MF | Saint-Martin (French part) |
MG | Madagascar |
MK | Macedonia, Republic of |
MM | Myanmar |
MN | Mongolia |
MO | Macao, SAR China |
MS | Montserrat |
MT | Malta |
MU | Mauritius |
MW | Malawi |
MX | Mexico |
MY | Malaysia |
MZ | Mozambique |
NA | Namibia |
NC | New Caledonia |
NE | Niger |
NF | Norfolk Island |
NG | Nigeria |
NI | Nicaragua |
NL | Netherlands |
NO | Norway |
NP | Nepal |
NZ | New Zealand |
OM | Oman |
PA | Panama |
PE | Peru |
PG | Papua New Guinea |
PH | Philippines |
PK | Pakistan |
PL | Poland |
PM | Saint Pierre and Miquelon |
PR | Puerto Rico |
PS | Palestinian Territory |
PT | Portugal |
PY | Paraguay |
QA | Qatar |
RE | Réunion |
RO | Romania |
RS | Serbia |
RU | Russian Federation |
RW | Rwanda |
SA | Saudi Arabia |
SC | Seychelles |
SE | Sweden |
SG | Singapore |
SH | Saint Helena |
SI | Slovenia |
SK | Slovakia |
SL | Sierra Leone |
SN | Senegal |
SR | Suriname |
ST | Sao Tome and Principe |
SV | El Salvador |
SZ | Swaziland |
TC | Turks and Caicos Islands |
TG | Togo |
TH | Thailand |
TL | Timor-Leste |
TM | Turkmenistan |
TO | Tonga |
TR | Turkey |
TT | Trinidad and Tobago |
TW | Taiwan, Republic of China |
TZ | Tanzania, United Republic of |
UA | Ukraine |
UG | Uganda |
US | United States of America |
UY | Uruguay |
UZ | Uzbekistan |
VC | Saint Vincent and Grenadines |
VE | Venezuela (Bolivarian Republic) |
VG | British Virgin Islands |
VI | Virgin Islands, US |
VN | Viet Nam |
WS | Samoa |
YE | Yemen |
YT | Mayotte |
ZA | South Africa |
ZM | Zambia |
ZW | Zimbabwe |
Cloud Functions
Cloud Functions runtime support
Why is the Node.js 8 runtime deprecated?
On Dec 31, 2019, Node.js 8 was marked end-of-life by the Node.js Foundation . At that time, the Node.js Foundation stopped issuing security releases for Node.js 8. Because of this, we recommend that you update to Node.js 10 or later as soon as you can.
What happens if a Node.js 8 function is left running after the removal of Node.js 8 support? Will it work indefinitely?
No it will not. Deployment of functions to the Node.js 8 runtime was disabled in the Firebase CLI on December 15, 2020. Execution of already-deployed functions will stop at some point in the future; if you have deployed functions to the Node.js 8 runtime, we recommend that you upgrade to the Node.js 12 runtime .
How do I upgrade to Node.js 12?
- Make sure you're on the Blaze pay-as-you-go billing plan .
- Make sure you are using Firebase CLI version 8.1.0 or later.
- Change the
engines
field in your functions'package.json
. - Optionally, test your changes using the Firebase emulator .
- Redeploy functions using the Firebase CLI v8.1.0 or later.
How can I make sure I deployed my functions to the Node.js 12 runtime?
In the Firebase console, go to the functions dashboard and check the runtime column.
I use Firebase Extensions. Will I be affected by this change?
نعم. Since extensions use Cloud Functions , the runtime of your extensions will need to be updated on the same timeline as Cloud Functions.
We recommend that you upgrade your Firebase project to the Blaze plan and update to the latest version of each extension installed in your project. You can upgrade your projects' extensions on the Firebase console or CLI .
Cloud Messaging
Cloud Messaging: What's the difference between the Notifications composer and Cloud Messaging?
Firebase Cloud Messaging provides a complete set of messaging capabilities through its client SDKs and HTTP and XMPP server protocols. For deployments with more complex messaging requirements, FCM is the right choice.
The Notifications composer is a lightweight, serverless messaging solution built on Firebase Cloud Messaging. With a user-friendly graphical console and reduced coding requirements, the Notifications composer lets users easily send messages to reengage and retain users, foster app growth, and support marketing campaigns.
Capabilities | Notifications composer | Cloud Messaging | |
---|---|---|---|
Target | Single device | ||
Clients subscribed to topics (ie weather) | |||
Clients in predefined user segment (app, version, language) | |||
Clients in specified analytics audiences | |||
Clients in device groups | |||
Upstream from client to server | |||
Message Type | Notifications up to 2kb | ||
Data messages up to 4kb | |||
Delivery | Immediate | ||
Future client device local time | |||
Analytics | Built-in Notifications analytics collection and funnel analytics |
Cloud Messaging: Apple announced they're decprecating the legacy binary protocol for APNs. Do I need to do anything?
No. Firebase Cloud Messaging swtiched to the HTTP/2-based APNs protocol in 2017. If you are using FCM to send notifications to iOS devices, there should be no action required on your part.
Cloud Messaging: Do I need to use other Firebase services in order to use FCM?
You can use Firebase Cloud Messaging as a standalone component, in the same manner as you did with GCM, without using other Firebase services.
Cloud Messaging: I am an existing Google Cloud Messaging (GCM) developer. Should I move to Firebase Cloud Messaging?
FCM is the new version of GCM under the Firebase brand. It inherits GCM's core infrastructure, with new SDKs to make Cloud Messaging development easier.
Benefits of upgrading to FCM SDK include:
- Simpler client development. You no longer have to write your own registration or subscription retry logic.
- An out-of-the-box notification solution. You can use the Notifications composer, a serverless notifications solution with a web console that lets anyone send notifications to target specific audiences based on insights from Google Analytics for Firebase.
To upgrade from GCM SDKs to FCM SDKs, see the guides for migrating Android and iOS apps.
Cloud Messaging: Why do my targeted devices apparently fail to receive messages?
When it looks like devices haven't successfully received messages, check first for these two potential causes:
Foreground message handling for notification messages . Client apps need to add message handling logic to handle notification messages when the app is in the foreground on the device. See the details for iOS and Android .
Network firewall restrictions . If your organization has a firewall that restricts the traffic to or from the Internet, you need to configure it to allow connectivity with FCM in order for your Firebase Cloud Messaging client apps to receive messages. The ports to open are:
- 5228
- 5229
- 5230
FCM usually uses 5228, but it sometimes uses 5229 and 5230. FCM does not provide specific IPs, so you should allow your firewall to accept outgoing connections to all IP addresses contained in the IP blocks listed in Google's ASN of 15169 .
Cloud Messaging: I have implemented onMessageReceived
in my Android app, but it is not being called.
When your app is in the background, notification messages are displayed in the system tray, and onMessageReceived
is not called. For notification messages with a data payload, the notification message is displayed in the system tray, and the data that was included with the notification message can be retrieved from the intent launched when the user taps on the notification.
For more information, see Receive and handle messages .
Notifications composer: What's the difference between the Notifications composer and Cloud Messaging?
The Notifications composer is a lightweight, serverless messaging solution built on Firebase Cloud Messaging. With a user-friendly graphical console and reduced coding requirements, the Notifications composer lets users easily send messages to reengage and retain users, foster app growth, and support marketing campaigns.
Firebase Cloud Messaging provides a complete set of messaging capabilities through its client SDKs and HTTP and XMPP server protocols. For deployments with more complex messaging requirements, FCM is the right choice.
Here's a comparison of the messaging capabilities provided by Firebase Cloud Messaging and the Notifications composer:
Capabilities | Notifications composer | Cloud Messaging | |
---|---|---|---|
Target | Single device | ||
Clients subscribed to topics (ie weather) | |||
Clients in predefined user segment (app, version, language) | |||
Clients in specified analytics audiences | |||
Clients in device groups | |||
Upstream from client to server | |||
Message Type | Notifications up to 2kb | ||
Data messages up to 4kb | |||
Delivery | Immediate | ||
Future client device local time | |||
Analytics | Built-in Notifications analytics collection and funnel analytics |
Notifications composer: I am an existing Google Cloud Messaging (GCM) developer, and I want to use the Notifications composer. What should I do?
The Notifications composer is an out-of-the-box solution that lets anyone send notifications to target specific audiences based on insights from Google Analytics for Firebase. Also, the Notifications composer provides funnel analysis for every message, allowing easy evaluation of notification effectiveness.
If you are an existing GCM developer, to use the Notifications composer you have to upgrade from GCM SDKs to FCM SDKs. See the guides for migrating Android and iOS apps.
Cloud Storage
Cloud Storage: Why can't I use Cloud Storage?
Cloud Storage for Firebase creates a default bucket in the App Engine free 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 billing account. It also allows you to easily share data between Firebase and a Google Cloud project.
There are, however, two known cases where this bucket cannot be created and you will be unable to use Cloud Storage for Firebase:
- A project imported from Google Cloud which had a App Engine Master/Slave Datastore application.
- A project imported from Google Cloud which has domain prefixed projects. For example:
domain.com:project-1234
.
There are currently no workarounds to these issues, and we recommend that you create a new project in the Firebase console and enable Cloud Storage for Firebase in that project.
Cloud Storage: Why do I see new service account IDs associated with my Firebase projects that use Cloud Storage?
Firebase uses service accounts to operate and manage services without sharing user credentials. When you create a Firebase project, you might notice that a number of service accounts are already available in your project.
If you used Cloud Storage before September 15, 2020, you may see the following legacy service account that is used to manage your bucket: firebase-storage@system.gserviceaccount.com
.
After September 15, 2020, Cloud Storage for Firebase buckets may include an additional new service account: service-<project number>@gcp-sa-firebasestorage.iam.gserviceaccount.com
.
You can view all service accounts associated with your project in the Firebase console, on the Service accounts tab .
Removing the new service account
We strongly discourage you from removing the new service account because if you do so, you will not be able to take advantage of upcoming security improvements.
However, if you prefer, you can disable the API or remove access from the new service account. Removing this account may block access to your Cloud Storage bucket from your apps.
Adding the new service account
If you removed the new service account or disabled the API and want to add them back, follow the instructions provided in Creating and managing service accounts for using the Google Cloud Console to add service-<project number>@gcp-sa-firebasestorage.iam.gserviceaccount.com
to the set of service accounts for your project.
Crashlytics
Visit the Crashlytics troubleshooting & FAQ page for helpful tips and answers to more FAQs.
Crash Reporting: Why are there fewer crash reports in Analytics than Crash Reporting?
Crash Reporting creates a separate background process to upload crash info. If your app extends the Android Application class, you must ensure it is multi-process safe. Otherwise, it may cause concurrency issues. When an app extends an Application object, this object gets instantiated for each process in a multi-process app. Consider the following when adding Crash Reporting to your app:
- If the implementation of this object accesses any out-of-process state (a database, the file system, shared preferences, etc), or performs other actions not safe for a multi-process environment, concurrency issues might arise. This is because multiple instances of the Application object may run simultaneously.
- Many third-party libraries keep out-of-process state (eg in a local database) and are subject to the same concurrency issues if they are initialized from the Application object. If your app fits this description and you plan to use Crash Reporting in your app, we strongly encourage you to consider moving the Application logic to Content Providers, or to Android Activities. Any Application logic that is not safe for a multi-process environment can have unintended effects on your app.
Crash Reporting automatically exports captured errors to Google Analytics as app_exception events. Currently on Android, you may see a significant discrepancy between the number of Crash Reporting errors and Analytics app_exception events.
Dynamic Links
Dynamic Links: Why does my Android app access each Dynamic Link twice?
The getInvitation
API clears the saved Dynamic Link to prevent it from being accessed twice. Be sure to call this API with the autoLaunchDeepLink
parameter set to false
in each of the deep link activities to clear it for the case when the activity is triggered outside the main activity.
Hosting
Hosting: Why does my Hosting release history table in the Firebase console show file counts that are more than what my local project actually has?
Firebase automatically adds extra files containing metadata about the Hosting site, and these files are included in the total file count for the release.
Hosting: What's the largest file size that I can deploy to Firebase Hosting?
Hosting has a maximum size limit of 2 GB for individual files.
We recommend storing larger files using Cloud Storage , which offers a maximum size limit in the terabyte range for individual objects.
Hosting: How many Hosting sites can I have per Firebase project?
The Firebase Hosting multisite feature supports a maximum of 36 sites per project.
Performance Monitoring
Visit the Performance Monitoring troubleshooting & FAQ page for helpful tips and answers to more FAQs.
Performance Monitoring: How many custom URL patterns can I create?
You can create up to 400 total custom URL patterns per app and up to 100 custom URL patterns per domain for that app.
Performance Monitoring: Why am I not seeing real time display of performance data?
To view real time performance data, make sure that your app uses a Performance Monitoring SDK version that's compatible with real time data processing.
- iOS — v7.3.0 or later
- 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.
Predictions
Predictions: I just added Google Analytics to my app. When should I expect to see predictions in the console?
Predictions are based on your users' behavior, and the more history that's available, the better. At a bare minimum, Firebase Predictions needs two weeks of data: one week of activity to train on, and then one week to see what that activity led to (churning, spending, etc.). Beyond the first two weeks, the quality of the predictions will typically increase as Predictions observes longer sequences of user activity.
Predictions: How long does it take for predictions to be made about a new user?
For an app that is already instrumented with Google Analytics and trained with baseline data, predictions can be made for new users as early as the next day after they start using the app.
Realtime Database
Realtime Database: Why was my Realtime Database reported bandwidth lower than average between September 2016 and March 2017?
For our bandwidth calculations, we normally include SSL encryption overhead (based on layer 5 of the OSI model). However, in September 2016, we introduced a bug that caused our bandwidth reporting to ignore encryption overhead. This might have resulted in artificially low reported bandwidth and bills on your account for a few months.
We released a fix for the bug in late March 2017, returning bandwidth reporting and billing to their normal levels.
Realtime Database: What are the scaling limitations of the Realtime Database?
Each Realtime Database instance has limits on the number of write operations per second. For small writes, this limit is approximately 1000 write operations per second. If you are approaching this limit, batching operations using multi-path updates can help you achieve higher throughput.
In addition, each database instance has a cap on the number of simultaneous database connections . Our default limits are large enough for most applications. If you are building an app that requires additional scale, you may need to shard your application across multiple database instances for added scale. You may also consider Cloud Firestore as an alternative database.
Realtime Database: What can I do if I'm over my Realtime Database usage limits?
If you've received an email alert or notification in the Firebase console that you've exceeded your Realtime Database usage limits, you can address it based on the usage limit you've exceeded. To see your Realtime Database usage, go to the Realtime Database Usage dashboard in the Firebase console.
If you're over your download limit, you can upgrade your Firebase billing 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 billing plan to avoid service disruptions. To reduce the amount of data in your database, try the following steps:
- Run periodic cleanup jobs.
- Reduce any duplicate data in your database.
Note that it may take some time to see any data deletions reflected in your storage allotment.
If you're over your simultaneous database connections limit, upgrade your plan to avoid any service disruptions. To manage simultaneous connections to your database, try connecting via users via the REST API if they don't require a realtime connection.
Remote Config
Remote Config: Why don't fetched values change the behavior and appearance of my app?
Unless you fetch values with fetchAndActivate()
, values are stored locally but not activated. To activate fetched values so that they can take effect, call activate
. This design lets you control when the behavior and appearance of your app changes, because you can choose when to call activate
. After you call activate
, your app source code determines when updated parameter values are used.
For example, you could fetch values and then activate them the next time a user starts your app, which removes the need to delay app startup while your app waits for fetched values from the service. Changes to your app's behavior and appearance then occur when your app uses the updated parameter values.
To learn more about the Remote Config API and usage model, see Remote Config API Overview .
Remote Config: I am making a lot of fetch requests while developing my app. Why doesn't my app always get the latest values from the service when it sends fetch requests?
During app development, you might want to fetch and activate configs very frequently (many times per hour) to let you rapidly iterate as you develop and test your app. To accommodate rapid iteration on a project with up to 10 developers, you can temporarily set a FirebaseRemoteConfigSettings
object with a low minimum fetch interval ( setMinimumFetchIntervalInSeconds
) in your app.
Remote Config: How quickly does the Remote Config service return fetched values after my app sends a fetch request?
Devices usually receive fetched values in less than a second, and often receive fetched values in milliseconds. The Remote Config service handles fetch requests within milliseconds, but the time required to complete a fetch request will depend on the network speed of the device and the latency of the network connection used by the device.
If your goal is to make fetched values take effect in your app as soon as possible, but without creating a jarring user experience, consider adding calls to fetchAndActivate
each time that your app does a full screen refresh.
Test Lab
Visit the Test Lab troubleshooting page for helpful tips and answers to FAQs.