No Free tier for Cloud Functions - Firebase [duplicate] - firebase

This question already has answers here:
Do Firebase Cloud Functions require Billing to be enabled by April 20, 2020 because of the Cloud Build API?
(2 answers)
Is Cloud Functions in Firebase Free or Not (Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan)
(8 answers)
Firebase how to deploy cloud functions for free
(1 answer)
Closed 2 years ago.
I was just making an app for Flutter learning cloud functions. When I check on a tutorial, cloud functions in firebase was free. But now I checked.
It's not, it's said to upgrade. Then I checked the pricing page,
So my question is if I upgrade, I lose spark plan, I need to pay for it? Is there any way to get spark plan just for testing?

if I upgrade, I lose spark plan, I need to pay for it?
You can create multiple projects, some on the free plan, and others paid. You can also remove the payment plan and go back to spark. As such, you will not "lose spark plan" if you choose to upgrade in order to use Functions in a project.
Is there any way to get spark plan just for testing?
After March 15, there will be no more option to use Functions for free on the Spark plan. Existing projects will be forced to upgrade, of functions will stop working
You should know that, even if you upgrade to a payment plan, there is a very generous free allowance that gives you use of functions without actually having to pay money. See the details on the pricing page. You get 2 million invocations per month. I think you'll find that very difficult to exhaust if you are just testing.
Also, you can always use the Firebase local emulators for free.

https://firebase.google.com/pricing
Yes you can downgrade from plans.

Related

How to know that if firebase spark plan limitations are for per project or for total project? [duplicate]

This question already has an answer here:
Does the Firebase Spark (free) plan work on a per project basis?
(1 answer)
Closed 3 years ago.
I have a firebase project. I'm intending to add another project for my new app. I know the cloud firestore and storage limitations but I'm not sure if this limitations ar set for per project individually or been set for my firebase account.
The spark plan limitations are per project. You can check all limitations and pricing on the official documentation regarding pricing where it is also mentioned. Please also note, that multiple databases are also allowed per project.

Firebase Pricing: Do quotas include all projects? [duplicate]

This question already has an answer here:
Does the Firebase Spark (free) plan work on a per project basis?
(1 answer)
Closed 1 year ago.
Do quotas include all projects or are they separate for each firebase/google cloud project?
I am asking this question because I am wondering if I should include multiple apps in one project to keep the price down. Regarding organization, splitting up the apps into multiple projects would be better.
Currently I have an project for an App and another project on Google Cloud to host a website. (All apps will use the same website)
Thanks for your help! (I know this is not a programming question, but it is important to know as a programmer using firebase)
Each project is treated separately. I have multiple projects each on the paid Blaze plans and they each have their own quotas... all on the same Google Payments account. Each month you get an invoice for your Google Payments account that has a total charge, and it breaks that charge down not only into each project, but also the portions of each project (hosting, storage, cloud functions, etc...)

How can I programmatically create a Firebase project? [duplicate]

This question already has answers here:
Is it possible to create a new Firebase project by API?
(2 answers)
Closed 4 years ago.
Is it possible to create a Firebase project in my account without having to do it through the console? Can I do it with an API? I didn't see anything about it in the docs.
I want to use Firebase for my SaaS project, but I use Firebase for authentication. I don't want to keep all the users in one project.
This is not currently possible. I'd encourage you to file a feature request with a detailed use case.
For what it's worth, it most likely will never be possible to spin up a project for each customer of a SaaS product (unless customers are in the 10s).
The Firebase Management API launched at the Firebase Developer Summit in October 2018, and can be used to (among other things) create Firease projects by adding Firebase to existing Google Cloud Platform projects.

Run Firebase cloud functions locally? [duplicate]

This question already has answers here:
how to test Cloud Functions for Firebase locally on pc
(9 answers)
Closed 5 years ago.
Is it possible to run Firebase cloud functions locally during development? It takes a long time to deploy to firebase every time a change have been made.
Thanks
firebaser here
Firebase now provides an emulator suite that allows you to run Cloud Functions and many other Firebase products locally, for local development. I highly recommend using this for all local development, before deploying to production (or even staging).
Previous answer
Update (September 2017): since version 3.11 of the Firebase tools/CLI there is a Cloud Functions shell, which you can use to test your functions locally without deploying them. I recommend reading the blog post Testing Functions Locally with the Cloud Functions Shell and the documentation on how to Run Functions Locally.
Update: since version 3.8 of the Firebase tools/CLI, it has the ability to emulate HTTP functions when you run firebase serve. Other trigger types are still not supported though.
Previous answer
We're working on it. In the meantime, I'll quote fellow Firebaser Doug from the firebase-talk mailing list:
Unfortunately, this does not exist today. A local environment for building and testing Cloud Functions is a high priority for the engineering team.
In the meantime, you could abstract away the core functionality of your function and invoke it directly with the node command line, passing in all necessary data that it needs to operate. For example, with an HTTPS function, figure out what you need from the request object, make that the input to another function, then invoke that with dummy data that you create. The response could be handled similarly.
I think you can use their cloud function emulator
More details here

Firebase maximum projects and apps

How many applications can I create in one project from a single account and how many projects I can create in Firebase for Cloud Messaging?
As of now (8 Dec 2017) I got a maximum of 5 projects
I got this message when I was creating new project and only had my 2 existing projects.
You're 3 projects away from the project limit.
I occasionally create a new Firebase project to test and learn its new features such as Firestore and Cloud Functions and then delete the project. Last month I tried creating a new project to learn Firestore and only had 2 existing projects, I've never got any project-limit message like this before. I think Firebase team just changed the project limit to 5 recently
Update 8 March 2018
My account reached the limit. I tried request another 10 projects to Firebase team and it took 1 business day to approve (sometimes it might take longer). I have to say that Firebase team is not mean. They are willing to help if they can.
I request a project limit increase and say I want another 10 projects because I'm starting my new startup(MVP) and want to keep the cost low at first. After the business generate money I will pay for Paid Services. Besides I told them how easy I can reach the limit as I have to create new projects to test Firebase features, like Firestore and Cloud Messaging before using the features in production. And finally they gave me another 10 projects :)
If you want to start a business with Firebase and have already reached the limit then Firebase team is going to help and give you project limit increase as long as you're not a spammer.
Update from here:
There is indeed a quota on how many apps can be created in a project. The exact number depends on multiple factors, but it typically is in the lower 30s.
The quota cannot be changed, nor is it increased for paid projects.
How many applications can I create in one project from a single account?
I don't think there isn't any limit on how many apps you can link to a single project. AFAIK, I think it is actually encouraged for apps that are related when it comes to the Firebase services to be linked to a single project.
How many projects I can create in Firebase for Cloud Messaging?
I'm not sure what you mean for the for Cloud Messaging part, but I'm pretty sure that every project you create can be used for FCM. Anyways, I think it'd be safe to refer to the comment by #FrankvanPuffelen on this post:
There's no limit on the number of projects in general, but there is a limit on the number of projects on an unpaid plan. The exact limit for that varies, from what I understand.
PS: As per looking around the docs, I'm fairly sure that there is nothing explicitly mentioned/stated in the official documentation that can clearly answer your questions.
I just searched this because I was watching a video which hinted that you can only have 6 free projects:
https://youtu.be/VUNkjQ_k2Uc?t=1m21s
It has three created and says you can create 3 more. The video was recorded/uploaded 13 Jul 2017.
I guess it wouldn't take much to confirm this if you just created six test accounts.
When I created 8th project on firebase it showed me a warning stating "You are 3 projects away from the project limit". This means I can have maximum 10 projects. I couldn't find any official documentation regarding this. So, I guess we can have maximum of 10 projects only. If you want to have more project after your limit has exhausted, instead of creating new projects you can add any number of apps (ios, android & web) to an similar existing project.
When we were unable to add new apps to our project, we contacted their support and this was their answer:
After consulting this to our engineers, I've found out that there is a
hard limit of 1000 apps which can be added per project. This can no
longer be raised, unfortunately.
Cloud Platform Console Help has a page here: https://support.google.com/cloud/answer/6330231 which answers some of your queries.
Here's an extract:
"If you attempt to exceed your project limit, the console will prompt you to fill out a request form. This happens when you try to create a project but you have already reached your quota. The form will require you to specify the number of additional projects you need, along with their corresponding email accounts, billing accounts, and intended uses."
Best practices when requesting more projects are also listed.
10 oct 2020
Today i tried to create another project, I only had two projects and I decided to remove one, then I tried to create another project and I got the message of the limit. I just send a request for 10 projects honestly. After a minutes I decided create another project and again I have two projects.. The limit to this date is 2 projects.
[2021] Firebase's a part of google cloud, so the limit is 12 Project as a Free plan (non-billed account, that's means I didn't active the free 300$ that come from Google Cloud) and I think it's (30 Project) at all time as shown HERE but I never used the paid plan or active the trail ...
So check your google cloud account, you will see all the projects that you have! but there are some notes you can take into consideration:
- Note 1: I opened a new Gmail account and try to make 13 projects he stopped on project 12, But the problem is after deleting your project you need to wait 30 days then you can replace it with another one, there is a modal show the date of delete completely after request that.
- Note 2: When you create a new project from firebase will create a project in Google Cloud, also you can add the google cloud project to your firebase account.
When you create a new Firebase project in the Firebase console, you're
creating a Google Cloud project.
Go to the google cloud to make my 13th project... this message appeared to me:
Also I have it in Firebase... this message appeared to me:
- Note 3: Don't forget! Sometimes that happened! when you using also Google API and create a project it also creates a project on google cloud so you will consume the quotas limit.
- Note 4: You can add the exacting project in Google cloud however from where the project was created to your firebase account.
In Summary: the Firebase/Google API's projects are Google Cloud
Projects behind the scene that limited to 12 projects for the
non-billed account and you can request more, so you have 12 projects maybe all of them firebase or google API or google cloud or a mix of them but you can't exceed 12 projects in total without requesting an increase.
As 2017-12-15, the limit (for my account at least) seems to be 12. (before creating my 10th project, it said I had 3 left)
Odd that the limit seems to be different per account. (either that, or they updated it since #Pakpoom's answer)
12/23/2021
I also got the same message and I have requested another 10 projects from the Firebase team to experiment with Firebase services for my future Flutter/Firebase projects. They have allowed/given 10 projects within a few mins. Thank you, Awesome Firebase Team.
About your second question
how many projects I can create in Firebase for Cloud Messaging?
For the Free plan, you can read this FAQ
https://support.google.com/cloud/answer/6330231?hl=en
It doesn't actually say how many, but explains how you can request more if necessary.

Resources