Kiến thức

Firebase FAQ

Check out what’s new from Firebase@ Google I/O 2021, and join our

alpha program

for early access to the new Remote Config personalization feature.

Learn more

Firebase FAQ

Have other challenges or don’t see your issue outlined below? Please

report a bug or request a feature

and join the

Stack Overflow

discussions.

Firebase projects and Firebase apps

Platforms and frameworks

Visit the platform-specific troubleshooting & FAQ pages for helpful tips and answers for more FAQ.

  • iOS

  • Android

  • Unity

Firebase console

Pricing

Firebase paid services can be used under the

Google Cloud Free Trial

. New Google Cloud and Firebase users can take advantage of a 90-day trial period that includes $300 in free Cloud Billing credits to explore and evaluate Google Cloud and Firebase products and services.

During the Google Cloud Free Trial period, you’ll be provided a Free Trial Cloud Billing account. Any Firebase project that uses that billing account will be on the Blaze pricing plan during the free trial period.

Don’t worry, setting up this Free Trial Cloud Billing account does not enable us to charge you. You are not charged unless you explicitly enable billing by upgrading your Free Trial Cloud Billing account to a paid account. You can upgrade to a paid account at any time during the trial. After you’ve upgraded, you can still use any remaining credits (within the 90-day period).

Once the free trial expires, you’ll need to either downgrade your project to the Spark pricing plan or

set up the Blaze pricing plan

in the Firebase console to continue using your Firebase project.

Learn more about the

Google Cloud Free Trial

.

Cloud Functions pricing

Cloud Functions for Firebase relies on some paid Google services:

Cloud Build

,

Container Registry

, and

Cloud Storage

. Usage of these services will be billed in addition to existing pricing.

You’ll be billed only for the computing time required to build a function’s runtime container.

Cloud Storage, interoperating with

Container Registry

, will provide storage space for the containers in which functions run. You’ll be billed for each container required to deploy a function. You may notice small charges for each container stored— for example, 1GB of storage is

billed at $0.026 per month

.

To understand more about how your bill might change, please review the following

  • Cloud Functions pricing

    : existing free tier is unchanged.

  • Cloud Build pricing:

    Cloud Build provides for a free tier.

  • Container Registry pricing

    .

Yes. On the Blaze plan, Cloud Functions provides a perpetual free tier for invocations, compute time, and internet traffic. The first 2,000,000 invocations, 400,000 GB-sec, 200,000 CPU-sec, and 5 GB of Internet egress traffic is provided for free each month. You’ll be charged only for usage above those thresholds.

Each deployment operation will incur small-scale charges for the storage space used for the function’s container. For example, if your functions consume 1GB of storage via Container Registry, you’ll be

billed $0.026 per month

. If your development process depends on deploying functions for testing, you can further minimize costs by using the

Firebase Local Emulator Suite

during development.

See

Firebase Pricing plans

and the

Cloud Functions Pricing

example scenarios.

No. There are no plans to change the quotas except for the removal of a maximum build time limit; instead of receiving errors or warnings when the daily build quota of 120 minutes is reached, you’ll be billed under the terms of the Blaze pricing plan. See

Quotas and limits

.

Yes, you can create a Cloud Billing account in the Google Cloud Console to get the $300 credit, then link that Cloud Billing account to a Firebase project.

More about the Google Cloud credit

here

.

Note that if you do this, you have to then

set up

the Blaze pricing plan in the Firebase console in order for your project to continue working after the $300 credit is exhausted.

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.

You can

set up budget alerts

in the Google Cloud Console to help control costs. To get an idea of costing for typical scenarios, see the

Cloud Functions Pricing

examples.

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

A/B Testing

AdMob

Analytics

App Indexing

Authentication

Cloud Functions

Cloud Functions runtime support

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.

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

.

  1. Make sure you’re on the Blaze

    pricing plan

    .

  2. Make sure you are using Firebase CLI v8.1.0 or later.
  3. Change the engines field

    in your functions’ package.json.

  4. Optionally, test your changes using the

    Firebase Local Emulator Suite

    .

  5. Redeploy functions using the Firebase CLI v8.1.0 or later.

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 Storage

Crashlytics

Visit the

Crashlytics troubleshooting & FAQ page

for helpful tips and answers to more FAQs.

Hosting

Performance Monitoring

Visit the

Performance Monitoring troubleshooting & FAQ page

for helpful tips and answers to more FAQs.

Predictions

Realtime Database

Remote Config

Test Lab

Visit the

Test Lab troubleshooting page

for helpful tips and answers to FAQs.

[{ “type”: “thumb-down”, “id”: “missingTheInformationINeed”, “label”:”Missing the information I need” },{ “type”: “thumb-down”, “id”: “tooComplicatedTooManySteps”, “label”:”Too complicated / too many steps” },{ “type”: “thumb-down”, “id”: “outOfDate”, “label”:”Out of date” },{ “type”: “thumb-down”, “id”: “samplesCodeIssue”, “label”:”Samples / code issue” },{ “type”: “thumb-down”, “id”: “otherDown”, “label”:”Other” }] [{ “type”: “thumb-up”, “id”: “easyToUnderstand”, “label”:”Easy to understand” },{ “type”: “thumb-up”, “id”: “solvedMyProblem”, “label”:”Solved my problem” },{ “type”: “thumb-up”, “id”: “otherUp”, “label”:”Other” }]

Chuyên mục: Kiến thức

Related Articles

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

Back to top button