Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 570
Neri Avatar asked Jan 31 '18 16:01

Neri


People also ask

Can two apps use the same Firebase database?

Yes, You can use the same firebase database in more than one android application as below: In the Project Overview section of Firebase Console add an android application. For adding this application first you need to give that package name. Download config file in JSON format.


2 Answers

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.

like image 62
dev.for.fun Avatar answered Oct 06 '22 02:10

dev.for.fun


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.

like image 26
Doug Stevenson Avatar answered Oct 06 '22 01:10

Doug Stevenson