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

Neri picture Neri · Jan 31, 2018 · Viewed 10.3k times · Source

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.

Answer

dev.for.fun picture dev.for.fun · Jul 9, 2018

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.