how to change firebase account in a flutter project? - flutter

I created a flutter project with my personal firebase, but now the client has already created his firebase, how do I change the account in a project, I've searched the documentation but without success?

Unfortunately there is no easy way to switch.
The information you configured when you first created flutter project on firebase, it has be configured again with clients Firebase.
For example -> replace old GoogleService-info.plist, android package name and iOS bundleID with the new one.

Related

Flutter swap current Firebase Project with another

I have a current Flutter project which is linked to a Firebase project and is reading and writing from a Realtime Database. My issue is that I have used the wrong project and now want to switch my Flutter app to use a different Project's Realtime Database. Is it possible to switch the Firebase project my app is currently linked to and if so how do I go about doing that?
Thanks
The FlutterFire CLI is a great tool for quickly configuring Firebase resources for Flutter projects and it could be used to switch the Firebase project to which the configuration files in your Flutter project are pointed.
First you could want to set up the FlutterFire CLI by following the instructions on the Firebase site:
Install the Firebase CLI.
Log into Firebase using the Google account under which you have the new Firebase project you want to switch to set up by running the following command: firebase login
Install the FlutterFire CLI by running the following command from any directory: dart pub global activate flutterfire_cli
Then, after getting the FlutterFire CLI set up, it would probably be a good idea to make sure your current Firebase configuration is backed up some how, either using version control or manually.
Finally, to switch your Flutter configuration to a different Firebase project, run flutterfire configure and follow the steps in the workflow, making sure to select the new Firebase project.

How to push update to a flutter app which is not uploaded on play store

I have a scenario where in i am building an flutter app which i don't want to upload to google play store. I will provide the .apk to download via website .
Now i have a new version of the app which i replaced the old .apk file with in the website.
Now how to push the notification to the user and ask them to update the latest version of the app.
Should i have to maintain some github repository where i maintain the releases ?
Any suggestion to this complete scenario would be greatly helpful.
1- create an api that return latest app version
2- always make a request to this API when ever the user open the app check the API latest version and user app version (I recommend using package_info_plus)
3- inform user with the new app if app version != latest version(API)
You can user firebase or any notification service to send notification from server to the users you can schedule notification that trigger when update is added in the server
you can create the dialog that check the version of your apk and check through the server api where latest version in updated in api and you can show the dialog every time

Need to change firebase project in flutter application

I have published a app to play store and it contains Google authentication with firebase. Now I need to replace the firebase project with other firebase project . Does this effect after publishing the app ?
As you have uploaded the app, now in the existing application, you can not change the firebase project because the google-service.json file you included can not be changed now. All you can do is you can change that in the next build only. Just change the google-services.json with the new project JSON file and build another bundle and give the update.

Changes not reflecting on flutter web deploy after firebase project owner changed

Using flutter web I created a web app that can connect to firestore and deployed using firebase hosting. Everything works fine until I change the owner from myself to another. I can still use firebase deploy using the other(2nd) account, but the changes are not reflecting when opening the app url. Is there any need for additional configuration or its a bug? Thanks for any answer
You should be able to fix by doing a hard cache reset on Chrome, by using the following key
combination: ctrl + shift + r.
Or, you can delete the build/web folder and build your project for web again.

Flutter old app upgrading to use it today

I've found this code for flutter home automation application.
but it was wrote in an older version of flutter, which i tried many times to start it but i couldn't make it,
last best thing that i have ever came to was that i could could mergrated the application to Android X and the application was starting but when i try to sign up a new mail inside it it says,
Error fetching data.
It dosen't use Firebase to store email it just uses a SQL package.
if any one can help to git the code and upgrade it for me to use it i will be very thankful :D.
Here is the link,
https://github.com/mlinarevicMateo/home-automation-flutter
The app is dependant on a webservice to run. Check lib/utils/network_util.dart. So you won't be able to get it run unless you write a new backend.
As the project was created in an older version of flutter you might be missing some latest flutter modules you can add those to your existing project by running this command within your project directory.
flutter create .