I've searched for a while all over to see if there is a way to register an app with Firebase via an API but cannot seem to find anything on the topic.
is it possible to register a bundle id with Firebase and then download the corresponding google-services.json and google-services.plist files?
I'm working on automating a repetitive process that I have to do.
There is a brand new management API in beta that lets you programmatically create projects and add apps to them. The documentation for that API is here. Specifically, you will want to look at androidApps and iosApps for creating and modifying apps on your project.
Related
I am building an automation process for my app, which includes creating several new Firebase projects. (After a lot of investigation, I am sure that several projects are needed, and that it cannot be done with just one project).
I am looking for a way to create a new Firebase project from scratch, and enable Phone Auth, Cloud Firestore, and Cloud Storage, along with security rules, programmatically.
I have taken a look at the Firebase Management REST API, which indeed shows a way to create a new Firebase project and link it to an existing GCP project, but couldn't find a way to configure the project itself through the API (Authentication, Firestore, Storage, etc.).
Is there any way to create and configure a Firebase project from scratch, using an API/SDK or CI/CD of some kind?
Thank you!
Have you looked into the firebase-admin SDK? It is a backend-only API because it needs your private key to authenticate against and can therefore not be used in the app directly (shipping your private key with the app would be pretty big security issue!), but as I understand it, creating new firebase-projects is something of a backend activity for you anyway?!
Look at https://firebase.google.com/docs/auth/admin/ for the API's documentation and what you can do with it.
So after a long research, it seems that we can combine the Firebase CLI and the Firebase Admin SDK in order to achieve it.
We can create a new project using the command
firebase projects:create NEW_PROJECT_ID
And then to configure all of the necessary configurations through the admin SDK
I published my first app using firebase and now I want to continue developing on this app. For that I dont want to test changes in the production firebase project so I thought about creating a new Firebase project for development. Is this a good practise?
If so, what do I need to change in my code from the published app? Only the google-services.json file from firebase?
And can this project use the same package name?
You may occasionally need to use the same APIs to access numerous projects, such as multiple database instances. In most circumstances, a central Firebase application object maintains all of the Firebase APIs' setup.
As part of your standard setup, this object is created. When you need to access many projects from a single application, you'll need to create a separate Firebase application object for each one. It's up to you to get these additional instances started.
As a recommendation from the last comment, here is the link on how to configure Multiple Projects using Firebase, furthermore here is a link of how to Understand Firebase Projects, that could also help with your main goal.
I found tutorials using Firebase and Flutter that could also guide you:
Multiple Firebase Projects
Multiple Build Environment
I'm trying to find a way to allow users to create and setup firebase project on their own google account from a client app, and get all their project information, urls and so on.
I took a look at the new project management api but can not figure out how to achieve this.
The management API currently does not support the creation of a new Google Cloud project. You are free to file a feature request for that, but it's worth pointing out that project creation is a complex issue and needs to be gated by abuse prevention measures.
You might also want to look into Google Cloud APIs for dealing with projects.
Today I discovered that it is not possible to change region in firebase project once it has been created.
When I initially created my project it was set up to use us multiregion option and I now need to move it to a single region instance in europe.
It seems that only option here is to create new firebase project in that region and migrate the data.
Migrating database data is straight forward via admin sdk, but how about things like custom domains set up for hosting and dynamic links, also email? Certificates for push notifications etc... Does all of this require manual migration as well, or can it be automated?
There is currently no way to move any part from one Firebase project to another automatically. You might be able to automate part of it through the project management API, but definitely not all of it.
I would like to know or have sample of integrating the api key generated from firebase to buildfire mobile app. (Not using buildfire.js) Is there any other way to integrate the api key without having to code?
Thanks.
You can integrate using BuildFireStore which integrate with Firebase’s Firestore. https://github.com/BuildFire/sdk/wiki/Buildfire-Firebase-Integration
You can get this don’t through the BuildFire dev portal https://dev.buildfire.com this will integrate with BuildFire with authentication and user tagging.
That being said, each plugin still needs to be coded to integrate with your own database and structure.
On a final note, generally people will on code the plugins they need to host on their firebase database. The rest can stay within the BuildFire CMS since no integrations are need for this like a Folder Plugin.
I hope this helps.