มีความท้าทายอื่น ๆ หรือไม่เห็นปัญหาของคุณด้านล่างหรือไม่ โปรด รายงานจุดบกพร่องหรือขอคุณสมบัติ และเข้าร่วมการสนทนา Stack Overflow
โปรเจ็กต์ Firebase และแอป Firebase
โครงการ Firebase คืออะไร
โปรเจ็กต์คือคอนเทนเนอร์สำหรับแอปใน Apple, Android และแพลตฟอร์มเว็บ รองรับการแชร์คุณสมบัติต่างๆ เช่น ฐานข้อมูล การกำหนดค่า และการแจ้งเตือนระหว่างแอปข้ามแพลตฟอร์ม
คุณควรเพิ่มตัวแปร Apple, Android และเว็บแอปในโครงการเดียว คุณสามารถใช้หลายโปรเจ็กต์เพื่อรองรับหลายสภาพแวดล้อม เช่น การพัฒนา การจัดเตรียม และการผลิต
องค์กร Google Cloud คืออะไร
องค์กร Google Cloud เป็นคอนเทนเนอร์สำหรับโปรเจ็กต์ Google Cloud (รวมถึงโปรเจ็กต์ Firebase) ลำดับชั้นนี้ช่วยให้องค์กร การจัดการการเข้าถึง และการตรวจสอบโครงการ Google Cloud และ Firebase ของคุณดีขึ้น สำหรับข้อมูลเพิ่มเติม โปรดดูที่ การสร้างและการจัดการองค์กร
ฉันจะเพิ่ม Firebase ให้กับโปรเจ็กต์ Google Cloud ที่มีอยู่ได้อย่างไร
คุณอาจมีโปรเจ็กต์ที่มีอยู่ที่ได้รับการจัดการผ่าน Google Cloud Console หรือคอนโซล Google APIs โดยค่าเริ่มต้น โปรเจ็กต์เหล่านี้จะมองเห็นได้ใน คอนโซล Firebase แต่ไม่ถือว่าเป็นโปรเจ็กต์ Firebase
หากต้องการเพิ่ม Firebase ให้กับโปรเจ็กต์ Google Cloud ที่มีอยู่ ให้คลิก เพิ่มโปรเจ็ กต์บนหน้า Landing Page ของ คอนโซล Firebase จากนั้นเลือกโปรเจ็กต์ของคุณในเมนู ชื่อโปรเจ็ กต์
ฉันสามารถมีโครงการได้กี่โครงการต่อบัญชี?
- แผนการกำหนดราคา Spark — โควตาโครงการของคุณถูกจำกัดสำหรับโครงการจำนวนน้อย (โดยปกติประมาณ 5-10)
- แผนการกำหนดราคา Blaze — โควตาโครงการของคุณต่อบัญชีสำหรับการเรียกเก็บเงินบนคลาวด์จะเพิ่มขึ้นอย่างมากตราบใดที่บัญชีสำหรับการเรียกเก็บเงินบนคลาวด์ของคุณอยู่ในสถานะดี
ข้อจำกัดของโควตาโครงการไม่ค่อยเป็นปัญหาสำหรับนักพัฒนาส่วนใหญ่ แต่ถ้าจำเป็น คุณสามารถ ขอเพิ่มโควตาโครงการของคุณ ได้
โปรดทราบว่าการลบโปรเจ็กต์โดยสมบูรณ์จะใช้เวลา 30 วันและนับรวมในโควต้าของคุณจนกว่าจะถูกลบทั้งหมด
ฉันสามารถมีแอพ Firebase ได้กี่แอพในโครงการ Firebase
โปรเจ็กต์ Firebase เป็นคอนเทนเนอร์สำหรับแอป Firebase ใน Apple, Android และเว็บ Firebase จำกัดจำนวนแอป Firebase ทั้งหมดภายในโปรเจ็กต์ Firebase ไว้ที่ 30 รายการ
หลังจากตัวเลขนี้ ประสิทธิภาพเริ่มลดลง (โดยเฉพาะสำหรับ Google Analytics) และในที่สุด ฟังก์ชันบางอย่างของผลิตภัณฑ์บางอย่างจะหยุดทำงานเมื่อมีแอปจำนวนมากขึ้น นอกจากนี้ การเพิ่มแอป Firebase ลงในโปรเจ็กต์จะสร้างรหัสไคลเอ็นต์ OAuth 2.0 ที่สำคัญอย่างน้อย 1 รายการ มีการจำกัดรหัสลูกค้าประมาณ 30 รหัสที่สามารถสร้างได้ภายในโครงการเดียว
คุณควรตรวจสอบว่าแอป Firebase ทั้งหมดภายในโปรเจ็กต์ Firebase เดียวเป็นเวอร์ชันแพลตฟอร์มของแอปพลิเคชันเดียวกันจากมุมมองของผู้ใช้ปลายทาง ตัวอย่างเช่น หากคุณพัฒนาแอปพลิเคชันไวท์เลเบล แอปที่ติดป้ายกำกับแยกกันควรมีโปรเจ็กต์ Firebase ของตัวเอง แต่ป้ายกำกับนั้นในเวอร์ชัน Apple และ Android สามารถอยู่ในโปรเจ็กต์เดียวกันได้ อ่านคำแนะนำโดยละเอียดเพิ่มเติมใน แนวทางปฏิบัติที่ดีที่สุดทั่วไปสำหรับการตั้งค่าโปรเจ็กต์ Firebase
ในบางกรณีซึ่งเกิดขึ้นไม่บ่อยนักที่โปรเจ็กต์ของคุณต้องการมากกว่า 30 แอป คุณสามารถขอเพิ่มขีดจำกัดของแอปได้ โปรเจ็กต์ของคุณต้องอยู่ในแผนการกำหนดราคา Blaze เพื่อส่งคำขอนี้ ไปที่ Google Cloud Console เพื่อ ส่งคำขอ และรับการประเมิน เรียนรู้เพิ่มเติมเกี่ยวกับ การจัดการโควต้า ในเอกสาร Google Cloud
จะเกิดอะไรขึ้นหากฉันแท็กโครงการของฉันเป็นสภาพแวดล้อม "การผลิต"
ในคอนโซล Firebase คุณสามารถแท็กโปรเจ็กต์ Firebase ด้วยประเภทสภาพแวดล้อม ไม่ว่าจะเป็นสภาพแวดล้อมที่ใช้งานจริงหรือไม่ได้ ระบุ (ไม่ใช่แบบ ผลิต )
การติดแท็กโปรเจ็กต์เป็นประเภทสภาพแวดล้อมจะไม่ส่งผลต่อวิธีการทำงานของโปรเจ็กต์ Firebase หรือฟีเจอร์ของโปรเจ็กต์ อย่างไรก็ตาม การติดแท็กสามารถช่วยคุณและทีมของคุณจัดการโปรเจ็กต์ Firebase ต่างๆ สำหรับวงจรชีวิตของแอปได้
หากคุณแท็กโปรเจ็กต์เป็นสภาพแวดล้อมการใช้งานจริง เราจะเพิ่มแท็ก Prod ที่มีสีสันสดใสให้กับโปรเจ็กต์ในคอนโซล Firebase เพื่อเตือนคุณว่าการเปลี่ยนแปลงใดๆ อาจส่งผลต่อแอปที่ใช้งานจริงที่เกี่ยวข้อง ในอนาคต เราอาจเพิ่มฟีเจอร์และการป้องกันเพิ่มเติมสำหรับโปรเจ็กต์ Firebase ที่แท็กเป็นสภาพแวดล้อมการใช้งานจริง
หากต้องการเปลี่ยนประเภทสภาพแวดล้อมของโปรเจ็กต์ Firebase ให้ไปที่ settings โปรเจ็ กต์ > ทั่วไป จากนั้นในการ์ด โปรเจ็ กต์ของคุณภายใต้ สภาพแวดล้อม ให้คลิก edit เพื่อเปลี่ยนประเภทสภาพแวดล้อม
ฉันจะหา App ID สำหรับแอพ Firebase ได้ที่ไหน
ในคอนโซล Firebase ให้ไปที่การตั้งค่าของคุณ settings โปรเจ็ กต์ เลื่อนลงไปที่การ์ด แอปของคุณ จากนั้นคลิกแอป Firebase ที่ต้องการเพื่อดูข้อมูลของแอป รวมถึง App ID
ต่อไปนี้คือตัวอย่างค่า App ID:
- แอพ Firebase iOS:
1:1234567890:ios:321abc456def7890
- แอพ Firebase สำหรับ Android:
1:1234567890:android:321abc456def7890
- เว็บแอป Firebase:
1:1234567890:web:321abc456def7890
ข้อกำหนดเบื้องต้นสำหรับการลิงก์ Play/AdMob/AdWords/BigQuery กับโปรเจ็กต์หรือแอป Firebase ของฉันมีอะไรบ้าง
- ใน การเชื่อมโยง บัญชี Google Play ของ คุณ คุณต้องมีสิ่งต่อไปนี้:
- บทบาท Firebase อย่างใดอย่างหนึ่งต่อไปนี้: เจ้าของหรือผู้ดูแลระบบ Firebase
และ - ระดับการเข้าถึง Google Play อย่างใดอย่างหนึ่งต่อไปนี้: เจ้าของบัญชีหรือผู้ดูแลระบบ
- บทบาท Firebase อย่างใดอย่างหนึ่งต่อไปนี้: เจ้าของหรือผู้ดูแลระบบ Firebase
- ในการลิงก์ แอป AdMob คุณต้องเป็นทั้งเจ้าของโครงการ Firebase และผู้ดูแลระบบ AdMob
- ในการเชื่อมโยง บัญชี AdWords คุณต้องเป็นทั้งเจ้าของโครงการ Firebase และผู้ดูแลระบบ AdWords
- ในการลิงก์ โปรเจ็กต์ BigQuery คุณต้องเป็นเจ้าของโปรเจ็กต์ Firebase
ฉันควรรวมประกาศโอเพนซอร์สใดบ้างในแอปของฉัน
บนแพลตฟอร์ม Apple พ็อด Firebase มีไฟล์ประกาศซึ่งรวมถึงรายการที่เกี่ยวข้อง Firebase Android SDK มี Activity
ตัวช่วย สำหรับแสดงข้อมูลใบอนุญาต
สิทธิ์และการเข้าถึงโปรเจ็กต์ Firebase
ฉันจะกำหนดบทบาทให้กับสมาชิกโปรเจ็กต์ เช่น บทบาทเจ้าของได้อย่างไร
ใน resourcemanager.projects.setIamPolicy
จัดการบทบาทที่กำหนดให้กับสมาชิกโปรเจ็กต์แต่ละคน คุณต้องเป็นเจ้าของโปรเจ็กต์ Firebase (หรือได้รับมอบหมายบทบาทที่มีสิทธิ์
ต่อไปนี้คือสถานที่ที่คุณสามารถกำหนดและจัดการบทบาทได้:
- คอนโซล Firebase มีวิธีง่ายๆ ในการกำหนดบทบาทให้กับสมาชิกโปรเจ็กต์ใน แท็บ ผู้ใช้และสิทธิ์ ของ settings > การตั้งค่าโปรเจ็ กต์ ในคอนโซล Firebase คุณสามารถกำหนด บทบาทพื้นฐาน ใดๆ (เจ้าของ ผู้แก้ไข ผู้ดู) บทบาทผู้ ดูแลระบบ/ผู้ดู Firebase หรือ บทบาทประเภทผลิตภัณฑ์ที่กำหนดไว้ล่วงหน้าของ Firebase
- Google Cloud Console มีชุดเครื่องมือมากมายเพื่อกำหนดบทบาทให้กับสมาชิกโปรเจ็กต์ใน หน้า IAM ใน Cloud Console คุณยังสามารถสร้างและจัดการ บทบาทที่กำหนดเอง ตลอดจนให้สิทธิ์บัญชีบริการเข้าถึงโปรเจ็กต์ของคุณได้
โปรดทราบว่าใน Google Cloud Console สมาชิกโปรเจ็กต์จะเรียกว่า Principal
หากเจ้าของโครงการของคุณไม่สามารถทำงานของเจ้าของได้อีกต่อไป (เช่น บุคคลที่ออกจากบริษัทของคุณ) และโครงการของคุณไม่ได้รับการจัดการผ่านองค์กร Google Cloud (ดูย่อหน้าถัดไป) คุณสามารถ ติดต่อฝ่ายสนับสนุนของ Firebase เพื่อให้ เจ้าของชั่วคราวที่ได้รับมอบหมาย
โปรดทราบว่าหากโปรเจ็กต์ Firebase เป็นส่วนหนึ่งขององค์กร Google Cloud โปรเจ็กต์นั้นอาจไม่มีเจ้าของ หากคุณไม่พบเจ้าของสำหรับโปรเจ็กต์ Firebase โปรดติดต่อบุคคลที่จัดการองค์กร Google Cloud ของคุณเพื่อมอบหมายเจ้าของสำหรับโปรเจ็กต์
ฉันจะค้นหาเจ้าของโปรเจ็กต์ Firebase ได้อย่างไร
คุณสามารถดูสมาชิกโปรเจ็กต์และบทบาทของพวกเขาได้ในที่ต่อไปนี้:
- หากคุณมีสิทธิ์เข้าถึงโปรเจ็กต์ในคอนโซล Firebase คุณจะดูรายชื่อสมาชิกโปรเจ็กต์ รวมถึงเจ้าของได้ในหน้า ผู้ใช้และสิทธิ์ ของคอนโซล Firebase
- หากคุณ ไม่มี สิทธิ์เข้าถึงโปรเจ็กต์ในคอนโซล Firebase ให้ตรวจสอบว่าคุณมีสิทธิ์เข้าถึงโปรเจ็กต์ใน Google Cloud Console หรือไม่ คุณดูรายชื่อสมาชิกโปรเจ็กต์ รวมถึงเจ้าของได้ใน หน้า IAM ของ Google Cloud Console
หากเจ้าของโครงการของคุณไม่สามารถทำงานของเจ้าของได้อีกต่อไป (เช่น บุคคลที่ออกจากบริษัทของคุณ) และโครงการของคุณไม่ได้รับการจัดการผ่านองค์กร Google Cloud (ดูย่อหน้าถัดไป) คุณสามารถ ติดต่อฝ่ายสนับสนุนของ Firebase เพื่อให้ เจ้าของชั่วคราวที่ได้รับมอบหมาย
โปรดทราบว่าหากโปรเจ็กต์ Firebase เป็นส่วนหนึ่งขององค์กร Google Cloud โปรเจ็กต์นั้นอาจไม่มีเจ้าของ แต่ผู้ที่จัดการองค์กร Google Cloud ของคุณสามารถทำงานหลายอย่างที่เจ้าของสามารถทำได้ อย่างไรก็ตาม ในการดำเนินงานเฉพาะเจ้าของหลายๆ อย่าง (เช่น การกำหนดบทบาทหรือการจัดการคุณสมบัติของ Google Analytics) ผู้ดูแลระบบอาจจำเป็นต้องกำหนด บทบาทเจ้าของที่แท้จริง ด้วยตนเองเพื่อทำงานเหล่านั้น หากคุณไม่พบเจ้าของสำหรับโปรเจ็กต์ Firebase โปรดติดต่อบุคคลที่จัดการองค์กร Google Cloud ของคุณเพื่อมอบหมายเจ้าของสำหรับโปรเจ็กต์
เหตุใดฉันจึงควรมอบหมายบทบาทเจ้าของให้กับสมาชิกโครงการหรือเมื่อใด
เพื่อให้แน่ใจว่ามีการจัดการโปรเจ็กต์ Firebase อย่างเหมาะสม โปรเจ็กต์นั้นต้องมี Owner เจ้าของโปรเจ็กต์คือบุคคลที่ดำเนินการด้านการดูแลระบบที่สำคัญหลายอย่างได้ (เช่น การกำหนดบทบาทและการจัดการพร็อพเพอร์ตี้ Google Analytics) และฝ่ายสนับสนุนของ Firebase สามารถตอบสนองคำขอการดูแลระบบจากเจ้าของโปรเจ็กต์ที่แสดงตัวอย่างเท่านั้น
หลังจากที่คุณตั้งค่าเจ้าของสำหรับโปรเจ็กต์ Firebase แล้ว สิ่งสำคัญคือต้องอัปเดตงานเหล่านั้นให้เป็นปัจจุบัน
โปรดทราบว่าหากโครงการ Firebase เป็นส่วนหนึ่งขององค์กร Google Cloud บุคคลที่จัดการองค์กร Google Cloud ของคุณสามารถทำงานหลายอย่างที่เจ้าของสามารถทำได้ อย่างไรก็ตาม สำหรับงานเฉพาะเจ้าของหลายงาน (เช่น การกำหนดบทบาทหรือการจัดการคุณสมบัติของ Google Analytics) ผู้ดูแลระบบอาจจำเป็นต้องกำหนด บทบาทเจ้าของจริง ด้วยตนเองเพื่อทำงานเหล่านั้น
ฉันไม่คิดว่าฉันมีโครงการ Firebase แต่ได้รับอีเมลเกี่ยวกับโครงการหนึ่ง ฉันจะเข้าถึงโครงการนี้ได้อย่างไร
อีเมลที่คุณได้รับควรมีลิงก์สำหรับเปิดโปรเจ็กต์ Firebase การคลิกลิงก์ในอีเมลควรเปิดโครงการในคอนโซล Firebase
หากคุณไม่สามารถเปิดโปรเจ็กต์ในลิงก์ได้ ให้ตรวจสอบว่าคุณลงชื่อเข้าใช้ Firebase โดยใช้บัญชี Google เดียวกันกับที่ได้รับอีเมลเกี่ยวกับโปรเจ็กต์ คุณสามารถลงชื่อเข้าใช้และออกจากคอนโซล Firebase ผ่านรูปประจำตัวบัญชีของคุณที่มุมบนขวาของคอนโซล
โปรดทราบว่าหากคุณเป็นผู้ดูแลระบบขององค์กร Google Cloud คุณอาจได้รับแจ้งเกี่ยวกับการเปลี่ยนแปลงโปรเจ็กต์ Firebase ภายในองค์กรของคุณ อย่างไรก็ตาม คุณอาจมีสิทธิ์ไม่เพียงพอที่จะเปิดโปรเจ็กต์ Firebase ในกรณีเหล่านี้ วิธีแก้ปัญหาที่ง่ายที่สุดคือกำหนด บทบาทเจ้าของที่แท้จริง ให้ตัวเองเพื่อเปิดโครงการและดำเนินการตามที่จำเป็น เรียนรู้เพิ่มเติมเกี่ยวกับ สาเหตุและเวลาที่มอบหมายบทบาทเจ้าของ
แพลตฟอร์มและเฟรมเวิร์ก
ไปที่หน้าการแก้ไขปัญหาและคำถามที่พบบ่อยเฉพาะแพลตฟอร์มเพื่อดูเคล็ดลับและคำตอบที่เป็นประโยชน์สำหรับคำถามที่พบบ่อยเพิ่มเติม
คอนโซล Firebase
เบราว์เซอร์ใดบ้างที่รองรับการเข้าถึงคอนโซล Firebase
คอนโซล Firebase สามารถเข้าถึงได้จากเบราว์เซอร์เดสก์ท็อปยอดนิยมเวอร์ชันล่าสุด เช่น Chrome, Firefox, Safari และ Edge ขณะนี้เบราว์เซอร์มือถือยังไม่รองรับอย่างสมบูรณ์
เหตุใดฉันจึงเข้าถึงโปรเจ็กต์ Firebase ในคอนโซล Firebase ไม่ได้
หากคุณเข้าถึงโปรเจ็กต์ Firebase ในคอนโซล Firebase ไม่ได้ ให้ตรวจสอบว่าคุณเข้าถึงโปรเจ็กต์ได้โดยไปที่ URL ของโปรเจ็กต์ ใช้รูปแบบต่อไปนี้:
https://console.firebase.google.com/project/ PROJECT-ID /overview
หากคุณยังไม่สามารถเข้าถึงโครงการได้ ให้ตรวจสอบสิ่งต่อไปนี้:
- ตรวจสอบให้แน่ใจว่าคุณลงชื่อเข้าใช้ Firebase โดยใช้บัญชี Google เดียวกันกับที่มีสิทธิ์เข้าถึงโปรเจ็กต์ คุณสามารถลงชื่อเข้าใช้และออกจากคอนโซล Firebase ผ่านรูปประจำตัวบัญชีของคุณที่มุมบนขวาของคอนโซล
- ตรวจสอบให้แน่ใจว่า ได้เปิดใช้ Firebase Management API สำหรับโปรเจ็กต์
- ตรวจสอบให้แน่ใจว่าคุณได้รับมอบหมาย บทบาท IAM พื้นฐาน (เจ้าของ ผู้แก้ไข ผู้ดู) หรือบทบาทที่มีสิทธิ์ที่เกี่ยวข้องกับ Firebase เช่น บทบาทที่กำหนดไว้ล่วงหน้า ของ Firebase คุณสามารถดูบทบาทของคุณได้ใน หน้า IAM ของ Google Cloud Console
- หากโปรเจ็กต์ของคุณอยู่ในองค์กร Google Cloud คุณอาจต้องได้รับสิทธิ์เพิ่มเติมเพื่อดูโปรเจ็กต์ที่แสดงอยู่ในคอนโซล Firebase ติดต่อบุคคลที่จัดการองค์กร Google Cloud ของคุณเพื่อมอบบทบาทที่เหมาะสมแก่คุณในการดูโครงการ เช่น บทบาทของเบราว์เซอร์
หากคอนโซล Firebase ไม่โหลดให้คุณ โปรดดู คำถามที่พบบ่อย นี้
เหตุใดคอนโซล Firebase จึงไม่โหลดให้ฉัน
ต่อไปนี้คือขั้นตอนการแก้ปัญหาที่คุณควรลองใช้หากคุณประสบปัญหาในการโหลดคอนโซล Firebase:
- ตรวจสอบแถว คอนโซล ของ แดชบอร์ดสถานะ Firebase เพื่อดูว่าบริการหยุดชะงักหรือไม่
- ตรวจสอบให้แน่ใจว่าคุณใช้ เบราว์เซอร์ที่รองรับ
- ลองโหลดคอนโซล Firebase ในโหมดไม่ระบุตัวตนหรือหน้าต่างส่วนตัว
- ปิดใช้งานส่วนขยายเบราว์เซอร์ทั้งหมด
- ตรวจสอบว่าอาจมีสิ่งใดขัดขวางการเชื่อมต่อของคุณ เช่น ซอฟต์แวร์ป้องกันไวรัส พร็อกซีเครือข่าย หรือไฟร์วอลล์ หากเป็นเช่นนั้น ให้ลองปิดการใช้งาน
- ลองโหลดคอนโซล Firebase โดยใช้เครือข่ายหรืออุปกรณ์อื่น
หากขั้นตอนการแก้ไขปัญหาข้างต้นไม่สามารถแก้ไขปัญหาได้ โปรด ติดต่อฝ่ายสนับสนุน
ภาษาคอนโซล Firebase ของฉันถูกกำหนดอย่างไร
การตั้งค่าภาษาสำหรับคอนโซล Firebase ขึ้นอยู่กับภาษาที่เลือกใน การตั้งค่าบัญชี Google ของ คุณ
หากต้องการเปลี่ยนการตั้งค่าภาษาของคุณ โปรดดูที่ เปลี่ยนภาษา
คอนโซล Firebase รองรับภาษาต่อไปนี้:
- ภาษาอังกฤษ
- โปรตุเกส บราซิล
- ภาษาฝรั่งเศส
- เยอรมัน
- ชาวอินโดนีเซีย
- ญี่ปุ่น
- เกาหลี
- รัสเซีย
- ภาษาจีนตัวย่อ
- สเปน
- จีนดั้งเดิม
คอนโซล Firebase รองรับบทบาทและสิทธิ์ใดบ้าง
คอนโซล Firebase และ Google Cloud Console ใช้บทบาทและสิทธิ์พื้นฐานเดียวกัน เรียนรู้เพิ่มเติมเกี่ยวกับบทบาทและการอนุญาตใน เอกสาร Firebase IAM
Firebase รองรับบทบาท พื้นฐาน (พื้นฐาน) ของเจ้าของ ผู้แก้ไข และผู้ดู:
- เจ้าของ โปรเจ็กต์สามารถเพิ่มสมาชิกคนอื่นๆ ลงในโปรเจ็กต์ ตั้งค่า การผสานรวม (โปรเจ็กต์ที่ลิงก์ไปยังบริการต่างๆ เช่น BigQuery หรือ Slack) และมีสิทธิ์แก้ไขแบบเต็มสำหรับโปรเจ็กต์
- ผู้ แก้ไข โปรเจ็กต์มีสิทธิ์แก้ไขแบบเต็มสำหรับโปรเจ็กต์
- ผู้ ดู โปรเจ็กต์มีสิทธิ์อ่านสำหรับโปรเจ็กต์เท่านั้น โปรดทราบว่าขณะนี้คอนโซล Firebase ไม่ได้ซ่อน/ปิดใช้งานการควบคุมการแก้ไข UI จากผู้ดูโปรเจ็กต์ แต่การดำเนินการเหล่านี้จะล้มเหลวสำหรับสมาชิกโปรเจ็กต์ที่ได้รับมอบหมายบทบาทผู้ดู
Firebase ยังรองรับ:
- บทบาทที่กำหนดไว้ล่วงหน้าของ Firebase — บทบาทเฉพาะของ Firebase ที่ดูแลจัดการซึ่งเปิดใช้การควบคุมการเข้าถึงที่ละเอียดกว่าบทบาทพื้นฐานของเจ้าของ ผู้แก้ไข และผู้ดู
- บทบาทที่ กำหนดเอง — บทบาท IAM ที่ปรับแต่งเองทั้งหมดที่คุณสร้างขึ้นเพื่อปรับแต่งชุดของสิทธิ์ที่ตรงตามข้อกำหนดเฉพาะขององค์กรของคุณ
ราคา
ผลิตภัณฑ์ใดบ้างที่ได้รับการชำระเงิน? ซึ่งไม่มีค่าใช้จ่าย?
ผลิตภัณฑ์โครงสร้างพื้นฐานแบบชำระเงินของ Firebase ได้แก่ Realtime Database, Cloud Storage for Firebase, Cloud Functions, Hosting, Test Lab และการตรวจสอบสิทธิ์ทางโทรศัพท์ เราเสนอระดับที่ไม่มีค่าใช้จ่ายสำหรับคุณลักษณะทั้งหมดเหล่านี้
Firebase ยังมีผลิตภัณฑ์ที่ไม่เสียค่าใช้จ่ายมากมาย เช่น Analytics, Cloud Messaging, ผู้สร้างการแจ้งเตือน, การกำหนดค่าระยะไกล, การจัดทำดัชนีแอป, ลิงก์แบบไดนามิก และการรายงานข้อขัดข้อง คุณสามารถใช้ผลิตภัณฑ์เหล่านี้ได้ไม่จำกัดจำนวนในทุกแผน รวมถึงแผน Spark ที่ไม่มีค่าใช้จ่ายของเรา นอกจากนี้ คุณสมบัติการตรวจสอบสิทธิ์ทั้งหมดนอกเหนือจากการตรวจสอบสิทธิ์โทรศัพท์จะไม่มีค่าใช้จ่าย
Firebase เสนอเครดิตทดลองฟรีสำหรับผลิตภัณฑ์แบบชำระเงินหรือไม่
บริการแบบชำระเงินของ Firebase สามารถใช้งานได้ภายใต้ Google Cloud Free Trial ผู้ใช้ Google Cloud และ Firebase รายใหม่สามารถใช้ประโยชน์จากช่วงทดลองใช้งาน 90 วัน ซึ่งรวมถึงเครดิตการเรียกเก็บเงินระบบคลาวด์ฟรี $300 เพื่อสำรวจและประเมินผลิตภัณฑ์และบริการของ Google Cloud และ Firebase
ในช่วงทดลองใช้งานฟรีของ Google Cloud คุณจะได้รับบัญชีการเรียกเก็บเงินแบบทดลองใช้ฟรีในระบบคลาวด์ โปรเจ็กต์ Firebase ใดๆ ที่ใช้บัญชีสำหรับการเรียกเก็บเงินนั้นจะอยู่ในแผนราคา Blaze ระหว่างช่วงทดลองใช้งานฟรี
ไม่ต้องกังวล การตั้งค่าบัญชีการเรียกเก็บเงินแบบทดลองใช้ฟรีในระบบคลาวด์ไม่ได้ทำให้เราเรียกเก็บเงินจากคุณได้ คุณจะไม่ถูกเรียกเก็บเงินเว้นแต่คุณจะเปิดใช้งานการเรียกเก็บเงินอย่างชัดเจนโดยอัปเกรดบัญชีการเรียกเก็บเงินแบบทดลองใช้ฟรีในระบบคลาวด์เป็นบัญชีแบบชำระเงิน คุณสามารถอัปเกรดเป็นบัญชีแบบชำระเงินเมื่อใดก็ได้ระหว่างช่วงทดลองใช้ หลังจากที่คุณได้อัปเกรดแล้ว คุณยังคงสามารถใช้เครดิตที่เหลืออยู่ได้ (ภายในระยะเวลา 90 วัน)
เมื่อช่วงทดลองใช้ฟรีหมดอายุ คุณจะต้องดาวน์เกรดโปรเจ็กต์ของคุณเป็นแผนราคา Spark หรือ ตั้งค่าแผนการกำหนดราคา Blaze ในคอนโซล Firebase เพื่อใช้งานโปรเจ็กต์ Firebase ต่อไป
เรียนรู้เพิ่มเติมเกี่ยวกับการ ทดลองใช้ Google Cloud ฟรี
ฉันจะทราบได้อย่างไรว่าแผนราคาใดที่เหมาะกับฉัน
แผนราคา Spark
แผน Spark ของเราเป็นสถานที่ที่ยอดเยี่ยมในการพัฒนาแอปของคุณโดยไม่มีค่าใช้จ่าย คุณได้รับฟีเจอร์ Firebase แบบไม่มีค่าใช้จ่ายทั้งหมด (Analytics, ตัวเขียนการแจ้งเตือน, Crashlytics และอื่นๆ) และฟีเจอร์โครงสร้างพื้นฐานแบบชำระเงินจำนวนมากของเรา อย่างไรก็ตาม หากคุณมีทรัพยากรในแผน Spark เกินในเดือนปฏิทิน แอปของคุณจะถูกปิดในช่วงเวลาที่เหลือของเดือนนั้น นอกจากนี้ คุณลักษณะของ Google Cloud จะไม่สามารถใช้ได้เมื่อใช้แผน Spark
แผนการกำหนดราคา Blaze
แผน Blaze ของเราออกแบบมาสำหรับแอปที่ใช้งานจริง แผน Blaze ยังช่วยให้คุณขยายแอปของคุณด้วยฟีเจอร์ Google Cloud ที่ต้องชำระเงิน คุณจ่ายเฉพาะทรัพยากรที่คุณใช้เท่านั้น ทำให้คุณสามารถปรับขนาดได้ตามความต้องการ เรามุ่งมั่นที่จะทำให้ราคาแผน Blaze ของเราสามารถแข่งขันกับผู้ให้บริการระบบคลาวด์ชั้นนำของอุตสาหกรรม
ฉันจะตรวจสอบการใช้งานและการเรียกเก็บเงินของฉันได้อย่างไร
คุณติดตามการใช้ทรัพยากรของโปรเจ็กต์ได้ในคอนโซล Firebase บนแดชบอร์ดใดๆ ต่อไปนี้
- แดชบอร์ด การใช้งานและการเรียกเก็บเงิน โดยรวมระดับโปรเจ็กต์
- แดชบอร์ด การใช้งานการ ตรวจสอบสิทธิ์ (โดยเฉพาะสำหรับอินสแตนซ์การตรวจสอบสิทธิ์โทรศัพท์)
- แดชบอร์ด การใช้งาน Cloud Firestore
- แดชบอร์ด การใช้งาน Cloud Functions
- แดชบอร์ด การใช้งานที่ เก็บข้อมูลบนคลาวด์
- แดชบอร์ด การใช้งาน โฮสติ้ง
- แดชบอร์ด การใช้งาน ฐานข้อมูลแบบเรียลไทม์
เกิดอะไรขึ้นกับแผนการกำหนดราคา Flame
ในเดือนมกราคม 2020 แผนการกำหนดราคา Flame ($25/เดือน ของโควต้าเพิ่มเติม) ถูกลบออกจากตัวเลือกสำหรับการลงชื่อสมัครใช้ใหม่ ผู้ใช้แผนเดิมจะได้รับช่วงเวลาผ่อนผันในการย้ายโครงการของตนออกจากแผน Flame ในเดือนกุมภาพันธ์ พ.ศ. 2565 โปรเจ็กต์ที่เหลือในแผนการกำหนดราคา Flame ถูกปรับลดรุ่นเป็นแผนการกำหนดราคา Spark
ดังนั้น
- โปรเจ็กต์แผน Spark และ Blaze ที่มีอยู่และโปรเจ็กต์ใหม่ใด ๆ จะไม่สามารถเปลี่ยนไปใช้หรือลงชื่อสมัครใช้แผน Flame ได้อีกต่อไป
- หากคุณย้ายโปรเจ็กต์แผน Flame ที่มีอยู่ไปยังแผนราคาอื่น โปรเจ็กต์จะไม่สามารถกลับไปใช้แผน Flame ได้
- โครงการที่ดาวน์เกรดเป็นแผน Spark สามารถอัปเกรดเป็นแผน Blaze เพื่อกลับมาใช้บริการแบบชำระเงินเพิ่มเติมได้
- การอ้างอิงถึงแผน Flame ถูกลบออกจากเอกสาร
คุณมีคำถามเพิ่มเติมเกี่ยวกับการเกษียณอายุแผน Flame หรือไม่? อ่านคำถามที่ พบบ่อยเพิ่มเติม ด้านล่าง
ต้องการเรียนรู้เกี่ยวกับแผนการกำหนดราคาอื่นๆ ที่ Firebase เสนอให้หรือไม่ เยี่ยมชม หน้าการกำหนดราคา Firebase ของเรา ! หากคุณต้องการเริ่มย้ายโปรเจ็กต์ที่มีอยู่ไปยังแผนการกำหนดราคาอื่น คุณสามารถทำได้ใน คอนโซล Firebase สำหรับโปรเจ็กต์ของคุณ
คำถามที่พบบ่อยเพิ่มเติมเกี่ยวกับการเกษียณอายุแผน Flame
ฉันมีโปรเจ็กต์หรือกระบวนการหรือโมเดลธุรกิจที่ต้องใช้ต้นทุน Firebase คงที่ ฉันควรทำอย่างไรดี?
ลงชื่อสมัครใช้แผนราคา Blaze และอย่าลืม ตั้งค่าการแจ้งเตือนเรื่องงบประมาณ
ฉันขอสิทธิ์พิเศษเพื่อสร้างโครงการแผน Flame ใหม่ได้ไหม
ไม่ Firebase ไม่ได้เสนอการเข้าถึงพิเศษสำหรับโปรเจ็กต์เพื่อเปลี่ยนไปใช้หรือลงชื่อสมัครใช้แผน Flame
ฉันเปลี่ยนโปรเจ็กต์แผน Flame เป็นแผนราคาอื่น ฉันจะเปลี่ยนกลับได้อย่างไร
เปลี่ยนไปใช้แผน Flame ไม่ได้อีกต่อไป สำหรับการเข้าถึงบริการที่จัดทำโดยแผน Flame ตรวจสอบให้แน่ใจว่าคุณใช้แผนการกำหนดราคา Blaze และพิจารณา ตั้งค่าการแจ้งเตือนงบประมาณ สำหรับโครงการของคุณ
โปรเจ็กต์ของฉันเปลี่ยนไปใช้แผนกำหนดราคาอื่นโดยอัตโนมัติ ซึ่งเป็นส่วนหนึ่งของการยกเลิกแผน Flame ฉันควรทำอย่างไรดี?
หากโปรเจ็กต์ของคุณต้องการโควต้าเพิ่มเติมที่นอกเหนือจากแผน Spark คุณจะต้องอัปเกรดโปรเจ็กต์ของคุณเป็นแผนราคา Blaze
เหตุใดแผนเฟลมจึงถูกยกเลิก
หลายปีที่ผ่านมา เราพบว่าการใช้แผน Flame ลดลง และโครงการส่วนใหญ่ที่ใช้แผนนี้ไม่ได้ใช้มูลค่าทั้งหมด การรักษาแผนการกำหนดราคานี้โดยทั่วไปจะไม่คุ้มค่า และเรารู้สึกว่าเราสามารถให้บริการทุกคนได้ดีขึ้นหากทรัพยากรไปที่ความคิดริเริ่ม Firebase อื่นๆ
การใช้งานแบบไม่มีค่าใช้จ่ายในแผน Blaze ต่างจากการใช้งานแบบไม่เสียค่าใช้จ่ายในแผน Spark อย่างไร
การใช้งานฟรีในแผน Blaze คำนวณทุกวัน ขีดจำกัดการใช้งานยังแตกต่างจากแผน Spark สำหรับ Cloud Functions, การตรวจสอบสิทธิ์โทรศัพท์ และ Test Lab
สำหรับ Cloud Functions การใช้งานที่ไม่มีค่าใช้จ่ายในแผน Blaze จะคำนวณที่ระดับบัญชี Cloud Billing ไม่ใช่ระดับโปรเจ็กต์และมีขีดจำกัดดังต่อไปนี้:
- คำขอ 2 ล้านครั้ง/เดือน
- 400K GB-วินาที/เดือน
- 200K CPU วินาที/เดือน
- เครือข่ายขาออก 5 GB/เดือน
สำหรับการตรวจสอบสิทธิ์ทางโทรศัพท์ การใช้งานฟรีในแผน Blaze จะคำนวณเป็นรายเดือน
สำหรับ Test Lab การใช้งานฟรีในแผน Blaze มีข้อจำกัดดังต่อไปนี้:
- อุปกรณ์จริง 30 นาที/วัน
- อุปกรณ์เสมือน 60 นาที/วัน
โควต้าการใช้งานที่ไม่มีค่าใช้จ่ายจะรีเซ็ตเมื่อฉันเปลี่ยนจากแผน Spark เป็นแผน Blaze หรือไม่
การใช้งานแบบไม่มีค่าใช้จ่ายจากแผน Spark จะรวมอยู่ในแผน Blaze การใช้งานที่ไม่มีค่าใช้จ่ายจะไม่ถูกรีเซ็ตเมื่อเปลี่ยนไปใช้แผน Blaze
"การเชื่อมต่อฐานข้อมูลพร้อมกัน" คืออะไร?
การเชื่อมต่อพร้อมกันจะเทียบเท่ากับอุปกรณ์เคลื่อนที่ แท็บเบราว์เซอร์ หรือแอปเซิร์ฟเวอร์ที่เชื่อมต่อกับฐานข้อมูล Firebase กำหนดขีดจำกัดอย่างหนักสำหรับจำนวนการเชื่อมต่อพร้อมกันกับฐานข้อมูลของแอป ข้อจำกัดเหล่านี้มีไว้เพื่อปกป้องทั้ง Firebase และผู้ใช้ของเราจากการละเมิด
ขีดจำกัดแผน Spark คือ 100 และไม่สามารถเพิ่มได้ แผน Flame and Blaze มีขีดจำกัดการเชื่อมต่อพร้อมกัน 200,000 รายการต่อฐานข้อมูล
ขีดจำกัดนี้ไม่เหมือนกับจำนวนผู้ใช้แอปทั้งหมด เนื่องจากผู้ใช้ไม่ได้เชื่อมต่อพร้อมกันทั้งหมด หากคุณต้องการการเชื่อมต่อพร้อมกันมากกว่า 200,000 รายการ โปรดอ่าน Scale with Multiple Databases
จะเกิดอะไรขึ้นหากฉันใช้พื้นที่จัดเก็บแผน Spark เกินขีดจำกัดหรือดาวน์โหลดสำหรับฐานข้อมูลเรียลไทม์
เพื่อให้ราคาที่คาดการณ์ได้ ทรัพยากรที่มีให้คุณในแผน Spark จะถูกจำกัดไว้ ซึ่งหมายความว่าเมื่อคุณใช้แผนเกินขีดจำกัดในเดือนใดก็ตาม แอปของคุณจะถูกปิดเพื่อป้องกันการใช้ทรัพยากรเพิ่มเติมและค่าใช้จ่ายเพิ่มเติม
จะเกิดอะไรขึ้นหากฉันใช้แผน Spark เกินขีดจำกัดการเชื่อมต่อพร้อมกันสำหรับฐานข้อมูลเรียลไทม์
เมื่อแอปของคุณถึงขีดจำกัดพร้อมกันในแผน Spark การเชื่อมต่อที่ตามมาจะถูกปฏิเสธจนกว่าการเชื่อมต่อที่มีอยู่บางส่วนจะถูกปิด แอปจะยังคงทำงานสำหรับผู้ใช้ที่เชื่อมต่ออยู่
จะเกิดอะไรขึ้นหากฉันอัปโหลด ดาวน์โหลด หรือพื้นที่เก็บข้อมูลเกินขีดจำกัดของแผน Spark สำหรับ Cloud Storage
เมื่อคุณเกินขีดจำกัดสำหรับ Cloud Storage ในโปรเจ็กต์บนแผน Spark ผลลัพธ์จะขึ้นอยู่กับประเภทของขีดจำกัดที่คุณเกิน:
- หากคุณเกินขีดจำกัด GB ที่จัดเก็บไว้ คุณจะไม่สามารถจัดเก็บข้อมูลในโปรเจ็กต์นั้นได้อีก เว้นแต่คุณจะลบข้อมูลบางส่วนที่จัดเก็บไว้หรืออัปเกรดเป็นแผนที่ให้พื้นที่จัดเก็บมากขึ้น หรือพื้นที่เก็บข้อมูลไม่จำกัด
- หากคุณ ดาวน์โหลดเกินขีดจำกัด GB แอปของคุณจะไม่สามารถดาวน์โหลดข้อมูลเพิ่มเติมได้จนกว่าจะถึงวันถัดไป (เริ่มตอนเที่ยงคืนตามเวลาแปซิฟิกของสหรัฐฯ) เว้นแต่คุณจะอัปเกรดเป็นแผนที่มีขีดจำกัดน้อยกว่า หรือไม่มีขีดจำกัด
- หากคุณดำเนินการ อัปโหลดหรือดาวน์โหลด เกินขีดจำกัด แอปของคุณจะไม่สามารถอัปโหลดหรือดาวน์โหลดข้อมูลเพิ่มเติมได้จนกว่าจะถึงวันถัดไป (เริ่มตอนเที่ยงคืนตามเวลาแปซิฟิกของสหรัฐฯ) เว้นแต่คุณจะอัปเกรดเป็นแผนที่มีขีดจำกัดน้อยกว่า หรือไม่มี ขีดจำกัด
การรวม Firebase กับ Google Cloud ทำงานอย่างไร
Firebase ผสานรวมกับ Google Cloud อย่างล้ำลึก มีการแชร์โปรเจ็กต์ระหว่าง Firebase และ Google Cloud ดังนั้นโปรเจ็กต์จึงสามารถเปิดบริการ Firebase และเปิดใช้งานบริการ Google Cloud ได้ คุณเข้าถึงโปรเจ็กต์เดียวกันได้จากคอนโซล Firebase หรือ Google Cloud Console โดยเฉพาะ:
- ผลิตภัณฑ์ Firebase บางอย่างได้รับการสนับสนุนโดยตรงจาก Google Cloud เช่น Cloud Storage สำหรับ Firebase รายการผลิตภัณฑ์ที่สนับสนุนโดย Google Cloud จะเพิ่มขึ้นเรื่อยๆ เมื่อเวลาผ่านไป
- Firebase และ Google Cloud จะแชร์การตั้งค่าหลายอย่างของคุณ รวมถึงผู้ทำงานร่วมกันและข้อมูลสำหรับการเรียกเก็บเงิน การใช้ทั้ง Firebase และ Google Cloud ของคุณปรากฏในใบเรียกเก็บเงินเดียวกัน
นอกจากนี้ เมื่อคุณอัปเกรดเป็นแผน Blaze คุณสามารถใช้ Infrastructure-as-a-Service และ API ระดับโลกของ 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 Database วันละครั้ง และอัปโหลดไปยัง Google Cloud Storage
เราไม่มีการสำรองข้อมูลรายชั่วโมง
คุณเสนอส่วนลดโอเพนซอร์ส ไม่แสวงหากำไร หรือเพื่อการศึกษาหรือไม่
แผน Spark ของเราใช้ได้กับบุคคลหรือองค์กรทุกประเภท รวมถึงองค์กรไม่แสวงหากำไร โรงเรียน และโครงการโอเพนซอร์ส เนื่องจากแผนเหล่านี้มีโควตาที่เอื้อเฟื้ออยู่แล้ว เราจึงไม่เสนอส่วนลดพิเศษหรือแผนสำหรับโครงการโอเพนซอร์ส องค์กรไม่แสวงหากำไร หรือโครงการเพื่อการศึกษา
คุณเสนอสัญญาระดับองค์กร ราคา การสนับสนุน หรือการโฮสต์โครงสร้างพื้นฐานเฉพาะหรือไม่
แผน Blaze ของเราเหมาะสำหรับองค์กรทุกขนาด และ SLA ของเราตรงตามหรือเกินกว่ามาตรฐานอุตสาหกรรมสำหรับโครงสร้างพื้นฐานระบบคลาวด์ อย่างไรก็ตาม เราไม่ได้เสนอสัญญา ราคา หรือการสนับสนุนระดับองค์กร และเรายังไม่มีการโฮสต์โครงสร้างพื้นฐานเฉพาะ (นั่นคือ การติดตั้งในองค์กร) สำหรับบริการต่างๆ เช่น Realtime Database ของเรา เรากำลังทำงานอย่างหนักเพื่อเพิ่มคุณสมบัติเหล่านี้
คุณเสนอราคาเฉพาะกิจหรือไม่? ฉันต้องการจ่ายตามการใช้งานสำหรับคุณสมบัติหนึ่งหรือสองอย่างเท่านั้น
เราเสนอราคาแบบเฉพาะกิจในแผน Blaze ซึ่งคุณจะจ่ายเฉพาะคุณสมบัติที่คุณใช้เท่านั้น
แผน Firebase แบบชำระเงินทำงานร่วมกับโฆษณาอย่างไร มีเครดิตโฆษณาฟรีสำหรับแผนชำระเงินหรือไม่
แผนการกำหนดราคา Firebase แยกจากโฆษณา ดังนั้นจึงไม่มีเครดิตโฆษณาโดยไม่มีค่าใช้จ่าย ในฐานะนักพัฒนา Firebase คุณสามารถ "เชื่อมโยง" บัญชีโฆษณาของคุณกับ Firebase เพื่อรองรับเครื่องมือวัด Conversion
แคมเปญโฆษณาทั้งหมดได้รับการจัดการโดยตรงในโฆษณา และการเรียกเก็บเงินโฆษณาจะได้รับการจัดการจากคอนโซลโฆษณา
การกำหนดราคาฟังก์ชั่นคลาวด์
เหตุใดฉันจึงต้องมีบัญชีสำหรับการเรียกเก็บเงินเพื่อใช้ Cloud Functions for Firebase
ฟังก์ชันระบบคลาวด์สำหรับ Firebase ใช้บริการ Google แบบชำระเงิน: Cloud Build , Container Registry และ Cloud Storage การใช้บริการเหล่านี้จะถูกเรียกเก็บเงินเพิ่มเติมจากราคาที่มีอยู่
คุณจะถูกเรียกเก็บเงินตามระยะเวลาในการคำนวณที่จำเป็นในการสร้างคอนเทนเนอร์รันไทม์ของฟังก์ชันเท่านั้น
Cloud Storage ที่ทำงานร่วมกับ Container Registry จะจัดเตรียมพื้นที่จัดเก็บสำหรับคอนเทนเนอร์ที่ฟังก์ชันทำงาน คุณจะถูกเรียกเก็บเงินสำหรับแต่ละคอนเทนเนอร์ที่จำเป็นในการปรับใช้ฟังก์ชัน คุณอาจสังเกตเห็นค่าใช้จ่ายเล็กน้อยสำหรับแต่ละคอนเทนเนอร์ที่จัดเก็บ ตัวอย่างเช่น พื้นที่เก็บข้อมูล 1GB ถูก เรียกเก็บเงิน 0.026 ดอลลาร์ต่อเดือน
เพื่อทำความเข้าใจเพิ่มเติมเกี่ยวกับการเปลี่ยนแปลงการเรียกเก็บเงินของคุณ โปรดอ่านข้อมูลต่อไปนี้
- ราคาของ Cloud Functions : ระดับไม่มีค่าใช้จ่ายที่มีอยู่จะไม่เปลี่ยนแปลง
- ราคา Cloud Build: Cloud Build ให้ระดับที่ไม่มีค่าใช้จ่าย
- การ กำหนดราคารีจิสทรีคอนเทนเนอร์
Cloud Functions for Firebase ยังคงมีการใช้งานที่ไม่มีค่าใช้จ่ายหรือไม่
ใช่. ในแผน Blaze นั้น Cloud Functions มอบระดับที่ไม่มีค่าใช้จ่ายสำหรับการเรียกใช้ เวลาประมวลผล และการรับส่งข้อมูลทางอินเทอร์เน็ต 2,000,000 คำขอแรก, 400,000 GB-วินาที, 200,000 CPU-sec และการรับส่งข้อมูลทางอินเทอร์เน็ต 5 GB ในแต่ละเดือนโดยไม่มีค่าใช้จ่าย คุณจะถูกเรียกเก็บเงินสำหรับการใช้งานที่เกินเกณฑ์เหล่านั้นเท่านั้น
การดำเนินการปรับใช้แต่ละครั้งจะมีค่าบริการขนาดเล็กสำหรับพื้นที่จัดเก็บที่ใช้สำหรับคอนเทนเนอร์ของฟังก์ชัน ตัวอย่างเช่น หากฟังก์ชันของคุณใช้พื้นที่เก็บข้อมูล 1GB ผ่าน Container Registry คุณจะถูก เรียกเก็บเงิน $0.026 ต่อเดือน หากกระบวนการพัฒนาของคุณขึ้นอยู่กับฟังก์ชันการทำให้ใช้งานได้สำหรับการทดสอบ คุณสามารถลดค่าใช้จ่ายเพิ่มเติมได้โดยใช้ Firebase Local Emulator Suite ในระหว่างการพัฒนา
ดู แผนราคา Firebase และสถานการณ์ตัวอย่าง ราคา Cloud Functions
Firebase วางแผนที่จะเพิ่มโควต้าและขีดจำกัดสำหรับ Cloud Functions สำหรับ Firebase หรือไม่
ไม่ ไม่มีแผนที่จะเปลี่ยนแปลงโควต้า ยกเว้นการลบขีดจำกัดเวลาสร้างสูงสุด แทนที่จะได้รับข้อผิดพลาดหรือคำเตือนเมื่อถึงโควตาบิลด์รายวันที่ 120 นาที คุณจะถูกเรียกเก็บเงินภายใต้เงื่อนไขของแผนราคา Blaze ดู โควต้าและขีดจำกัด
ฉันขอเครดิต Google Cloud $300 ได้ไหม
ได้ คุณสามารถสร้างบัญชี Cloud Billing ใน Google Cloud Console เพื่อรับเครดิต $300 จากนั้นเชื่อมโยงบัญชี Cloud Billing นั้นกับโปรเจ็กต์ Firebase
More about the Google Cloud credit here .
Note that if you do this, you have to then set up the Blaze pricing plan in the Firebase console in order for your project to continue working after the $300 credit is exhausted.
I want to follow a codelab to learn about Firebase. Can you give me a temporary billing account?
No, sorry. You can use the Firebase emulator for development without having a Cloud Billing account. Alternatively, try applying for a Google Cloud free trial . If you're still having trouble paying your bill because of this change, contact Firebase Support.
I'm worried I'm going to rack up a huge bill.
You can set up budget alerts in the Google Cloud Console to help control costs. Also, you can set limits on the number of billed instances created for each of your functions. To get an idea of costing for typical scenarios, see the Cloud Functions Pricing examples.
How can I check my current billing charges?
View the Usage and billing dashboard in the Firebase console.
I use Firebase Extensions. Will I be affected by this change?
Yes. Since extensions use Cloud Functions , extensions that use Node.js 10 or later will be subject to the same charges as other functions.
To use extensions based on Node.js 10 or later, you will need to upgrade to the Blaze pricing plan. You will be charged a small amount (typically around $0.01 per month ) for the Firebase resources required by each extension you install (even if they are not used), in addition to any charges associated with your use of Firebase services.
Privacy
Where can I find information about privacy and security in Firebase?
Check out the page Privacy and Security in Firebase .
Do the Firebase SDKs log any usage/diagnostic information outside of Analytics?
Yes. This is currently iOS-only, but may change in the future. The Firebase Apple platforms SDK includes the FirebaseCoreDiagnostics
framework by default. This framework is used by Firebase to collect SDK usage and diagnostics information to help prioritize future product enhancements. FirebaseCoreDiagnostics
is optional, so if you would like to opt out of sending Firebase diagnostic logs, you can do so by unlinking the library from your application. You can browse the full source, including logged values, on GitHub
A/B Testing
A/B Testing: How many experiments can I create and run?
You are allowed up to 300 experiments per project, which could consist of up to 24 running experiments, with the rest as draft or completed.
AdMob
AdMob: Can I link my Windows apps to Firebase?
No, Windows apps are not currently supported.
AdMob: Why can't I link my app to AdMob from the Firebase console?
You can link an AdMob app to a Firebase app via the AdMob console. Learn how.
AdMob: What permissions or access do I need to link a Firebase app to an AdMob app?
In order to do this linking, you need the following access:
- AdMob : You need to be an AdMob admin.
- Firebase : You must have the
firebase.links.create
permission, which is included in the Owner role and the Firebase Admin role . - Google Analytics : You must have the Edit role or Manage Users role for the property associated with the Firebase project. Learn more.
AdMob: Can multiple users in the same AdMob account link AdMob apps and Firebase apps?
For multi-user AdMob accounts , the user who created the first Firebase link and accepted the Firebase Terms of Service is the only user who can create new links between AdMob apps and Firebase apps.
AdMob: To use AdMob, should I use the Firebase SDK for AdMob or the Google Mobile Ads SDK?
- For iOS projects , use the Google Mobile Ads SDK:
pod 'Google-Mobile-Ads-SDK'
- For Android projects , use the Google Mobile Ads SDK:
implementation 'com.google.android.gms:play-services-ads:20.6.0'
Note that the Firebase Android SDKs for AdMob transitively include the Firebase SDK for Google Analytics. So, if your app calls any Google Analytics APIs and you switch to using the Google Mobile Ads SDK, make sure that you explicitly add the dependency for the Firebase SDK for Google Analytics (
) to your app'scom.google.firebase:firebase-analytics build.gradle
file. - For C++ projects and Unity projects , follow the instructions in the respective documentation.
Analytics
Analytics: When must I upgrade my Google Analytics for Firebase property to retain service?
Any Firebase project created before July 31, 2019 must be upgraded to the full Google Analytics 4 experience if it hasn't already. (Banners display in the Analytics dashboard if an upgrade is required.) The associated Terms of Service must be accepted by February 15, 2022 to ensure data collection continues and by March 15, 2022 to prevent the deletion of the Analytics property and its data. If you no longer want to use Google Analytics and the associated data, no action is required and the property will be deleted on March 15, 2022.
Failure to accept the new Google Analytics Terms of Service will disrupt Firebase features, including: Crash-Free Users (Crashlytics), targeted Configurations and Remote Config personalization, A/B Testing features, Targeting and Campaign Metrics (Cloud Messaging). It will also disrupt Google Analytics for Firebase Integrations , including: Exporting project data to BigQuery , Google Ads Integrations , and AdMob Integrations .
If you have questions about accessing your Firebase project, including finding or assigning an Owner, review the Permissions and access to Firebase projects FAQs .
Analytics: What changed in the Google Analytics section with the October 2021 update?"
You can find a summary of these changes in the Firebase Help Center article New Google Analytics 4 functionality in Google Analytics for Firebase .
Analytics: Why is Google Analytics a recommended part of using Firebase products?
Google Analytics is a free and unlimited analytics solution that works with Firebase features to deliver powerful insights. It enables you to view event logs in Crashlytics, notification effectiveness in FCM, deep link performance for Dynamic Links, and in-app purchase data from Google Play. It powers advanced audience targeting in Remote Config, Remote Config personalization, and more.
Google Analytics acts as a layer of intelligence in the Firebase console to provide you with more actionable insights about how to develop a high quality app, grow your user base, and earn more money.
To get started, read the documentation .
Analytics: How do I segment users who have 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: How do I control how my Analytics data is shared with 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: What is the new fully upgraded Google Analytics account?
You can read more about the new Google Analytics upgrade in our blog post .
Analytics: How do I know if I'm using Google Analytics for Firebase or a fully upgraded Google Analytics account?
If you see a link to "View your data in Google Analytics" from the analytics dashboard in the Firebase console, then your project is using a fully upgraded Google Analytics account.
You can also check by viewing the Google Analytics card in the Firebase console (you can access this from settings > Project Settings > Integrations , then click Manage ). If you see a Linked Google Analytics account listed in the Your Google Analytics property section, your project is using the full Google Analytics experience in Firebase. If you do not see a Linked Google Analytics account , your project is using Google Analytics for Firebase.
Analytics: 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, Remote Config personalization, 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.
Analytics in my iOS app: Can I install Analytics without ad attribution and IDFA collection features?
Yes. See the Configure Data Collection and Usage page for more details.
App Indexing
App Indexing: Can Google Search index multiple languages for a single app?
Google Search supports the following multi-language cases:
- The associated website has unique URLs for each language, and there is one corresponding app HTTP URL for each web URL.
- The associated website has unique URLs for each language, but there is only one app HTTP URL. The app uses system language settings to display the correct language content.
- The associated website has one URL for all languages (or it supports only one language), and there is one corresponding app URL. The website and the application must display the content in the same language when the user has set no preference.
App Indexing: Can App Indexing support multiple websites for an app?
Yes. Make sure that each associated website is verified for the Android app via the Google Play Console . Learn how to verify your app .
App Indexing: Do sitemaps need to be added via the Search Console?
iOS does not require sitemaps, and Android does not require them as long as your app supports HTTP URLs. For custom URLs, you do not need to add sitemaps via Search Console. You can reference sitemaps in your robots.txt
file and Google Search will use them. Learn more about managing sitemaps . However, submitting a sitemap through Search Console lets you see statistics on submitted and indexed HTTP URLs in Search Console.
Authentication
Firebase Authentication: Which countries are supported for phone authentication?
Firebase Authentication supports phone number verification across the the world, but not all networks reliably deliver our verification messages. The following countries have good rates of delivery, and should be expected to work well for phone number sign in.
Country | Code |
---|---|
AD | Andorra |
AE | United Arab Emirates |
AF | Afghanistan |
AG | Antigua and Barbuda |
AL | Albania |
AM | Armenia |
AO | Angola |
AR | Argentina |
AS | American Samoa |
AT | Austria |
AU | Australia |
AW | Aruba |
AZ | Azerbaijan |
BA | Bosnia and Herzegovina |
BB | Barbados |
BD | Bangladesh |
BE | Belgium |
BF | Burkina Faso |
BG | Bulgaria |
BJ | Benin |
BM | Bermuda |
BN | Brunei Darussalam |
BO | Bolivia |
BR | Brazil |
BS | Bahamas |
BT | Bhutan |
BW | Botswana |
BY | Belarus |
BZ | Belize |
CA | Canada |
CD | Congo, (Kinshasa) |
CF | Central African Republic |
CG | Congo (Brazzaville) |
CH | Switzerland |
CI | Côte d'Ivoire |
CK | Cook Islands |
CL | Chile |
CM | Cameroon |
CO | Colombia |
CR | Costa Rica |
CV | Cape Verde |
CW | Curaçao |
CY | Cyprus |
CZ | Czech Republic |
DE | Germany |
DJ | Djibouti |
DK | Denmark |
DM | Dominica |
DO | Dominican Republic |
DZ | Algeria |
EC | Ecuador |
EG | Egypt |
ES | Spain |
ET | Ethiopia |
FI | Finland |
FJ | Fiji |
FK | Falkland Islands (Malvinas) |
FM | Micronesia, Federated States of |
FO | Faroe Islands |
FR | France |
GA | Gabon |
GB | United Kingdom |
GD | Grenada |
GE | Georgia |
GF | French Guiana |
GG | Guernsey |
GH | Ghana |
GI | Gibraltar |
GL | Greenland |
GM | Gambia |
GP | Guadeloupe |
GQ | Equatorial Guinea |
GR | Greece |
GT | Guatemala |
GY | Guyana |
HK | Hong Kong, SAR China |
HN | Honduras |
HR | Croatia |
HT | Haiti |
HU | Hungary |
ID | Indonesia |
IE | Ireland |
IL | Israel |
IM | Isle of Man |
IN | India |
IQ | Iraq |
IT | Italy |
JE | Jersey |
JM | Jamaica |
JO | Jordan |
JP | Japan |
KE | Kenya |
KG | Kyrgyzstan |
KH | Cambodia |
KM | Comoros |
KN | Saint Kitts and Nevis |
KR | Korea (South) |
KW | Kuwait |
KY | Cayman Islands |
KZ | Kazakhstan |
LA | Lao PDR |
LB | Lebanon |
LC | Saint Lucia |
LI | Liechtenstein |
LK | Sri Lanka |
LS | Lesotho |
LT | Lithuania |
LU | Luxembourg |
LV | Latvia |
LY | Libya |
MA | Morocco |
MD | Moldova |
ME | Montenegro |
MF | Saint-Martin (French part) |
MG | Madagascar |
MK | Macedonia, Republic of |
MM | Myanmar |
MN | Mongolia |
MO | Macao, SAR China |
MS | Montserrat |
MT | Malta |
MU | Mauritius |
MW | Malawi |
MX | Mexico |
MY | Malaysia |
MZ | Mozambique |
NA | Namibia |
NC | New Caledonia |
NE | Niger |
NF | Norfolk Island |
NG | Nigeria |
NI | Nicaragua |
NL | Netherlands |
NO | Norway |
NP | Nepal |
NZ | New Zealand |
OM | Oman |
PA | Panama |
PE | Peru |
PG | Papua New Guinea |
PH | Philippines |
PK | Pakistan |
PL | Poland |
PM | Saint Pierre and Miquelon |
PR | Puerto Rico |
PS | Palestinian Territory |
PT | Portugal |
PY | Paraguay |
QA | Qatar |
RE | Réunion |
RO | Romania |
RS | Serbia |
RU | Russian Federation |
RW | Rwanda |
SA | Saudi Arabia |
SC | Seychelles |
SE | Sweden |
SG | Singapore |
SH | Saint Helena |
SI | Slovenia |
SK | Slovakia |
SL | Sierra Leone |
SN | Senegal |
SR | Suriname |
ST | Sao Tome and Principe |
SV | El Salvador |
SZ | Swaziland |
TC | Turks and Caicos Islands |
TG | Togo |
TH | Thailand |
TL | Timor-Leste |
TM | Turkmenistan |
TO | Tonga |
TR | Turkey |
TT | Trinidad and Tobago |
TW | Taiwan, Republic of China |
TZ | Tanzania, United Republic of |
UA | Ukraine |
UG | Uganda |
US | United States of America |
UY | Uruguay |
UZ | Uzbekistan |
VC | Saint Vincent and Grenadines |
VE | Venezuela (Bolivarian Republic) |
VG | British Virgin Islands |
VI | Virgin Islands, US |
VN | Viet Nam |
WS | Samoa |
YE | Yemen |
YT | Mayotte |
ZA | South Africa |
ZM | Zambia |
ZW | Zimbabwe |
Cloud Functions
Cloud Functions runtime support
Why is the Node.js 8 runtime deprecated?
On Dec 31, 2019, Node.js 8 was marked end-of-life by the Node.js Foundation . At that time, the Node.js Foundation stopped issuing security releases for Node.js 8. Because of this, we recommend that you update to Node.js 10 or later as soon as you can.
What happens if a Node.js 8 function is left running after the removal of Node.js 8 support? Will it work indefinitely?
No it will not. Deployment of functions to the Node.js 8 runtime was disabled in the Firebase CLI on December 15, 2020. Execution of already-deployed functions will stop at some point in the future; if you have deployed functions to the Node.js 8 runtime, we recommend that you upgrade to the Node.js 12 runtime .
How do I upgrade to Node.js 12?
- Make sure you're on the Blaze pricing plan .
- Make sure you are using Firebase CLI v8.1.0 or later.
- Change the
engines
field in your functions'package.json
. - Optionally, test your changes using the Firebase Local Emulator Suite .
- Redeploy functions using the Firebase CLI v8.1.0 or later.
How can I make sure I deployed my functions to the Node.js 12 runtime?
In the Firebase console, go to the functions dashboard and check the runtime column.
I use Firebase Extensions. Will I be affected by this change?
Yes. Since extensions use Cloud Functions , the runtime of your extensions will need to be updated on the same timeline as Cloud Functions.
We recommend that you upgrade your Firebase project to the Blaze pricing plan and update to the latest version of each extension installed in your project. You can upgrade your projects' extensions via the Firebase console or Firebase CLI .
Cloud Messaging
Cloud Messaging: What's the difference between the Notifications composer and Cloud Messaging?
Firebase Cloud Messaging provides a complete set of messaging capabilities through its client SDKs and HTTP and XMPP server protocols. For deployments with more complex messaging requirements, FCM is the right choice.
The Notifications composer is a lightweight, serverless messaging solution built on Firebase Cloud Messaging. With a user-friendly graphical console and reduced coding requirements, the Notifications composer lets users easily send messages to reengage and retain users, foster app growth, and support marketing campaigns.
Capabilities | Notifications composer | Cloud Messaging | |
---|---|---|---|
Target | Single device | ||
Clients subscribed to topics (ie weather) | |||
Clients in predefined user segment (app, version, language) | |||
Clients in specified analytics audiences | |||
Clients in device groups | |||
Upstream from client to server | |||
Message Type | Notifications up to 2kb | ||
Data messages up to 4kb | |||
Delivery | Immediate | ||
Future client device local time | |||
Analytics | Built-in Notifications analytics collection and funnel analytics |
Cloud Messaging: Apple announced they're decprecating the legacy binary protocol for APNs. Do I need to do anything?
No. Firebase Cloud Messaging switched to the HTTP/2-based APNs protocol in 2017. If you are using FCM to send notifications to iOS devices, there should be no action required on your part.
Cloud Messaging: Do I need to use other Firebase services in order to use FCM?
You can use Firebase Cloud Messaging as a standalone component, in the same manner as you did with GCM, without using other Firebase services.
Cloud Messaging: I am an existing Google Cloud Messaging (GCM) developer. Should I move to Firebase Cloud Messaging?
FCM is the new version of GCM under the Firebase brand. It inherits GCM's core infrastructure, with new SDKs to make Cloud Messaging development easier.
Benefits of upgrading to FCM SDK include:
- Simpler client development. You no longer have to write your own registration or subscription retry logic.
- An out-of-the-box notification solution. You can use the Notifications composer, a serverless notifications solution with a web console that lets anyone send notifications to target specific audiences based on insights from Google Analytics for Firebase.
To upgrade from GCM SDKs to FCM SDKs, see the guides for migrating Android and iOS apps.
Cloud Messaging: Why do my targeted devices apparently fail to receive messages?
When it looks like devices haven't successfully received messages, check first for these two potential causes:
Foreground message handling for notification messages . Client apps need to add message handling logic to handle notification messages when the app is in the foreground on the device. See the details for iOS and Android .
Network firewall restrictions . If your organization has a firewall that restricts the traffic to or from the Internet, you need to configure it to allow connectivity with FCM in order for your Firebase Cloud Messaging client apps to receive messages. The ports to open are:
- 5228
- 5229
- 5230
FCM usually uses 5228, but it sometimes uses 5229 and 5230. FCM does not provide specific IPs, so you should allow your firewall to accept outgoing connections to all IP addresses contained in the IP blocks listed in Google's ASN of 15169 .
Cloud Messaging: I have implemented onMessageReceived
in my Android app, but it is not being called.
When your app is in the background, notification messages are displayed in the system tray, and onMessageReceived
is not called. For notification messages with a data payload, the notification message is displayed in the system tray, and the data that was included with the notification message can be retrieved from the intent launched when the user taps on the notification.
For more information, see Receive and handle messages .
Notifications composer: What's the difference between the Notifications composer and Cloud Messaging?
The Notifications composer is a lightweight, serverless messaging solution built on Firebase Cloud Messaging. With a user-friendly graphical console and reduced coding requirements, the Notifications composer lets users easily send messages to reengage and retain users, foster app growth, and support marketing campaigns.
Firebase Cloud Messaging provides a complete set of messaging capabilities through its client SDKs and HTTP and XMPP server protocols. For deployments with more complex messaging requirements, FCM is the right choice.
Here's a comparison of the messaging capabilities provided by Firebase Cloud Messaging and the Notifications composer:
Capabilities | Notifications composer | Cloud Messaging | |
---|---|---|---|
Target | Single device | ||
Clients subscribed to topics (ie weather) | |||
Clients in predefined user segment (app, version, language) | |||
Clients in specified analytics audiences | |||
Clients in device groups | |||
Upstream from client to server | |||
Message Type | Notifications up to 2kb | ||
Data messages up to 4kb | |||
Delivery | Immediate | ||
Future client device local time | |||
Analytics | Built-in Notifications analytics collection and funnel analytics |
Notifications composer: I am an existing Google Cloud Messaging (GCM) developer, and I want to use the Notifications composer. What should I do?
The Notifications composer is an out-of-the-box solution that lets anyone send notifications to target specific audiences based on insights from Google Analytics for Firebase. Also, the Notifications composer provides funnel analysis for every message, allowing easy evaluation of notification effectiveness.
If you are an existing GCM developer, to use the Notifications composer you have to upgrade from GCM SDKs to FCM SDKs. See the guides for migrating Android and iOS apps.
Cloud Storage
Cloud Storage: Why can't I use Cloud Storage?
Cloud Storage for Firebase creates a default bucket in the App Engine no-cost tier. This allows you to quickly get up and running with Firebase and Cloud Storage for Firebase, without having to put in a credit card or enable a Cloud Billing account. It also allows you to easily share data between Firebase and a Google Cloud project.
There are, however, two known cases where this bucket cannot be created and you will be unable to use Cloud Storage for Firebase:
- A project imported from Google Cloud which had a App Engine Master/Slave Datastore application.
- A project imported from Google Cloud which has domain prefixed projects. For example:
domain.com:project-1234
.
There are currently no workarounds to these issues, and we recommend that you create a new project in the Firebase console and enable Cloud Storage for Firebase in that project.
Cloud Storage: Why do I see new service account IDs associated with my Firebase projects that use Cloud Storage?
Firebase uses service accounts to operate and manage services without sharing user credentials. When you create a Firebase project, you might notice that a number of service accounts are already available in your project.
If you used Cloud Storage before September 15, 2020, you may see the following legacy service account that is used to manage your bucket: firebase-storage@system.gserviceaccount.com
.
After September 15, 2020, Cloud Storage for Firebase buckets may include an additional new service account: service-<project number>@gcp-sa-firebasestorage.iam.gserviceaccount.com
.
You can view all service accounts associated with your project in the Firebase console, on the Service accounts tab .
Removing the new service account
We strongly discourage you from removing the new service account because if you do so, you will not be able to take advantage of upcoming security improvements.
However, if you prefer, you can disable the API or remove access from the new service account. Removing this account may block access to your Cloud Storage bucket from your apps.
Adding the new service account
If you removed the new service account or disabled the API and want to add them back, follow the instructions provided in Creating and managing service accounts for using the Google Cloud Console to add service-<project number>@gcp-sa-firebasestorage.iam.gserviceaccount.com
to the set of service accounts for your project.
Crashlytics
Visit the Crashlytics troubleshooting & FAQ page for helpful tips and answers to more FAQs.
Crash Reporting: Why are there fewer crash reports in Analytics than Crash Reporting?
Crash Reporting creates a separate background process to upload crash info. If your app extends the Android Application class, you must ensure it is multi-process safe. Otherwise, it may cause concurrency issues. When an app extends an Application object, this object gets instantiated for each process in a multi-process app. Consider the following when adding Crash Reporting to your app:
- If the implementation of this object accesses any out-of-process state (a database, the file system, shared preferences, etc), or performs other actions not safe for a multi-process environment, concurrency issues might arise. This is because multiple instances of the Application object may run simultaneously.
- Many third-party libraries keep out-of-process state (eg in a local database) and are subject to the same concurrency issues if they are initialized from the Application object. If your app fits this description and you plan to use Crash Reporting in your app, we strongly encourage you to consider moving the Application logic to Content Providers, or to Android Activities. Any Application logic that is not safe for a multi-process environment can have unintended effects on your app.
Crash Reporting automatically exports captured errors to Google Analytics as app_exception events. Currently on Android, you may see a significant discrepancy between the number of Crash Reporting errors and Analytics app_exception events.
Dynamic Links
Dynamic Links: Why does my Android app access each Dynamic Link twice?
The getInvitation
API clears the saved Dynamic Link to prevent it from being accessed twice. Be sure to call this API with the autoLaunchDeepLink
parameter set to false
in each of the deep link activities to clear it for the case when the activity is triggered outside the main activity.
Hosting
Hosting: Why does my Hosting release history table in the Firebase console show file counts that are more than what my local project actually has?
Firebase automatically adds extra files containing metadata about the Hosting site, and these files are included in the total file count for the release.
Hosting: What's the largest file size that I can deploy to Firebase Hosting?
Hosting has a maximum size limit of 2 GB for individual files.
We recommend storing larger files using Cloud Storage , which offers a maximum size limit in the terabyte range for individual objects.
Hosting: How many Hosting sites can I have per Firebase project?
The Firebase Hosting multisite feature supports a maximum of 36 sites per project.
Performance Monitoring
Visit the Performance Monitoring troubleshooting & FAQ page for helpful tips and answers to more FAQs.
Performance Monitoring: How many custom URL patterns can I create?
You can create up to 400 total custom URL patterns per app and up to 100 custom URL patterns per domain for that app.
Performance Monitoring: Why am I not seeing real time display of performance data?
To view real time performance data, make sure that your app uses a Performance Monitoring SDK version that's compatible with real time data processing.
- iOS — v7.3.0 or later
- tvOS — v8.9.0 or later
- Android — v19.0.10 or later (or Firebase Android BoM v26.1.0 or later)
- Web — v7.14.0 or later
Note that we always recommend using the latest version of SDK, but any version listed above will enable Performance Monitoring to process your data in near real time.
Realtime Database
Realtime Database: Why was my Realtime Database reported bandwidth lower than average between September 2016 and March 2017?
For our bandwidth calculations, we normally include SSL encryption overhead (based on layer 5 of the OSI model). However, in September 2016, we introduced a bug that caused our bandwidth reporting to ignore encryption overhead. This might have resulted in artificially low reported bandwidth and bills on your account for a few months.
We released a fix for the bug in late March 2017, returning bandwidth reporting and billing to their normal levels.
Realtime Database: What are the scaling limitations of the Realtime Database?
Each Realtime Database instance has limits on the number of write operations per second. For small writes, this limit is approximately 1000 write operations per second. If you are approaching this limit, batching operations using multi-path updates can help you achieve higher throughput.
In addition, each database instance has a cap on the number of simultaneous database connections . Our default limits are large enough for most applications. If you are building an app that requires additional scale, you may need to shard your application across multiple database instances for added scale. You may also consider Cloud Firestore as an alternative database.
Realtime Database: What can I do if I'm over my Realtime Database usage limits?
If you've received an email alert or notification in the Firebase console that you've exceeded your Realtime Database usage limits, you can address it based on the usage limit you've exceeded. To see your Realtime Database usage, go to the Realtime Database Usage dashboard in the Firebase console.
If you're over your download limit, you can upgrade your Firebase pricing plan or wait until your download limit resets at the start of your next billing cycle. To decrease your downloads, try the following steps:
- Add queries to limit the data that your listen operations return.
- Check for unindexed queries.
- Use listeners that only download updates to data — for example,
on()
instead ofonce()
. - Use security rules to block unauthorized downloads.
If you're over your storage limit, upgrade your pricing plan to avoid service disruptions. To reduce the amount of data in your database, try the following steps:
- Run periodic cleanup jobs.
- Reduce any duplicate data in your database.
Note that it may take some time to see any data deletions reflected in your storage allotment.
If you're over your simultaneous database connections limit, upgrade your plan to avoid any service disruptions. To manage simultaneous connections to your database, try connecting via users via the REST API if they don't require a realtime connection.
Remote Config
Remote Config: Why don't fetched values change the behavior and appearance of my app?
Unless you fetch values with fetchAndActivate()
, values are stored locally but not activated. To activate fetched values so that they can take effect, call activate
. This design lets you control when the behavior and appearance of your app changes, because you can choose when to call activate
. After you call activate
, your app source code determines when updated parameter values are used.
For example, you could fetch values and then activate them the next time a user starts your app, which removes the need to delay app startup while your app waits for fetched values from the service. Changes to your app's behavior and appearance then occur when your app uses the updated parameter values.
To learn more about the Remote Config API and usage model, see Remote Config API Overview .
Remote Config: I am making a lot of fetch requests while developing my app. Why doesn't my app always get the latest values from the service when it sends fetch requests?
During app development, you might want to fetch and activate configs very frequently (many times per hour) to let you rapidly iterate as you develop and test your app. To accommodate rapid iteration on a project with up to 10 developers, you can temporarily set a FirebaseRemoteConfigSettings
object with a low minimum fetch interval ( setMinimumFetchIntervalInSeconds
) in your app.
Remote Config: How quickly does the Remote Config service return fetched values after my app sends a fetch request?
Devices usually receive fetched values in less than a second, and often receive fetched values in milliseconds. The Remote Config service handles fetch requests within milliseconds, but the time required to complete a fetch request will depend on the network speed of the device and the latency of the network connection used by the device.
If your goal is to make fetched values take effect in your app as soon as possible, but without creating a jarring user experience, consider adding calls to fetchAndActivate
each time that your app does a full screen refresh.
Test Lab
Visit the Test Lab troubleshooting page for helpful tips and answers to FAQs.