Can I move app from current project to another project with current data in Firebase Console of the same account

12,611

Solution 1

I had the same question and I reached out to the support channel, here's their response:

Transferring apps from Project A to Project B, wouldn't be possible. We don't have a way in the UI to transfer an app across projects, but it can be done manually by deleting the app in Project A and creating it again in Project B. Deleting an app does not delete the API keys or the OAuth clients associated with it. But it does mark the underlying Analytics data for deletion. If you're using Firebase Auth, you could whitelist Project B's OAuth client in Project A via the Auth UI.

However you can do the following:

  1. Realtime Database

    You'll have to manually export and import your data through Firebase Console or using REST API. Both options need to chunk uploads so that it will fit within the 256 MB limit.

  2. Firestore

    Exporting or importing through Firebase Console is not currently available. However, you may develop your own import/export process for your Firestore instance as an alternative by using our SDKs or REST API. You can view this StackOveflow post and this thread for more information.

  3. Cloud Storage for Firebase

    Since Firebase Storage is backed by Google Cloud Storage, you can use the gsutil tool. You can use the copy ( cp ) or move (mv) command. You may also look at this (stackoverflow answer) for the GCloud Node option.

  4. Cloud Functions for Firebase

    You’ll have to manually deploy your Functions code to the other projects.

  5. Authentication

    You could use Firebase CLI to import and export user accounts.

Solution 2

The Firebase console provides no way to migrate an app and all its data from one project to another. You may want to contact Firebase support to see if there is something special that can be done.

Solution 3

  1. remove your .firebaserc file and firebase.json from your project.
  2. run firebase init
  3. select your project
  4. deploy.

After deploying the new project you can remove the old one. This worked for me.

Share:
12,611
Neri
Author by

Neri

Am a student at Makerere University Kampala. Pursuing bachelors degree in Software Engineering after which I hope to become a strong programmer by profession.

Updated on June 06, 2022

Comments

  • Neri
    Neri about 2 years

    I have a project in firebase console, this project has two apps both android. I had only integrated Analytics, Notifications and Crashlytics. I had thought of just deleting the app and add it afresh to the new project in firebase I have created for it but I don't know what will happen to the current users with app installed. Is there anyway I can just migrate this app to the new project apart from deleting it and re-adding it to the new project. I have tried to google and look for a solution but all solutions direct me to migrating the app to another account not to another project in the same account. If you have any idea or advise, help me please. Thanks.