Can I create a Firebase account from code in my app - android

From a Windows, Android or IOS application, I would like to create a new Firebase account\project when the user installs the app.
Is that possible?

No, it's not possible
In order to create and add a project on firebase you need to upload your package name and
SHA-1(optional but still required for authenticating your client)
After that a JSON file will be generated and you have to put that file in your projects App folder and configure your Gradle files
so you can see now.
You cannot do this process on installing of app

Related

google-services.json Google Cloud oauth login and Firebase dynamic link same project android

I have an Android project where I am using Google Cloud authentication service, where I downloaded the google-services.json file and everything is working.
Now that using Firebase's Dynamic Link service, where it asks to download another google-services.json file and put it in the same location.
I don't know how to proceed in this case, any tips?
If you are using the same project then feel free to use the last one google-services.json that it suggests downloading because it will already include your previous configuration.
You can easily check this if you compare the first and second one jsons.
Make sure that you only have this most recent downloaded config file in your app.
You can get the most recent config file for your Android app in Firebase Console at any moment.
Go to your Project settings in the Firebase console.
In the Your apps card, select the package name of the app for which you need a config file.
Click google-services.json.

How to change Firebase id by creating another project

I want to rename my Firebase id.
I found out that the only way to do that is to create new project
How can I rename the Firebase Project ID?
I've created a new project and pasted the same android applicationId.
I've added the correct json file into my project.
Then Firebase suggests me to run my app in order to test the connection.
I've reinstalled my app, but I have no connection.
Does it mean that I should delete the prerious app in order to make this app work?
Maybe change the default project will sove this problem.
Run this command:
firebase use --add <YOUR_NEW_PROJECT_NAME>
Or if you want to test a project in emulators which is not exist on your firebase, just delete the default project by running:
firebase use --clear

Is there a way to handle Firebase projet and android application creation automation?

I'm working on a continuous project creation from an administrator tool. This tool is able to create a create a gitlab and jenkins project from template.
The android template use Firebase crashlytics and we all know that google-services.json file will be mandatory to use Firebase service.
After creating the project from our template using our administrator tool, jenkins build failed because of lack of google-services.json file.
So to retrieve google-services.json file, we need to create project firebase and android application. All of these actions are manual. My question is there a way to get this file using kind of Firebase APIs to create project and android application ?
Thanks
In android studio you get the option to link your Firebase Account. Double tap Shift and type Firebase You should get the assistant and then follow the instructions.

How to add app in current project using Firebase Cli

Hi i am writing a script which created apk dynamically from scripts as i have package name manually on firebase Console for the apk which are created from my system.Can any body suggest how to add app dynamically in my project using CLI
There are currently no CLIs or tools for adding an app programmatically to a Firebase project. However, there is new REST API for creating and modifying projects and apps within it. You will need to learn the Firebase Management API, which is in beta. To create a new Android app in the project, you will need to call the androidApps endpoint.

how to implement one google-service.json file in to multiple android project

I working on a project that develops android .apk files using phone gap.
I use different them to manage my mobile app or when it builds the app I've changed its package id in my repo. I want to use push notification in all my generated apps. I can't manually add every time google-service.json in my repo or not wan go again and again on google console to add a new project with Package Id.
You should download each play-services.json files from each project and when you build your project you should add a script or a task to swap between the files.

Categories

Resources