Kenny Dabiri
Kenny Dabiri

Reputation: 353

Firebase Transfer or Copy database from one Android app to another

I created an Android app with package name 'com.theapp.app1' initially when setting up my Firebase for the first time. But later I decided to change my app name from 'com.theapp.app1 to 'com.theapp.app2'. I refactored my package name in Android Studio but got an error 'Gradle does not recognize 'com.theapp.app2' in google-services.json file.

In app1 I have created a json database which I want to copy to app2 in firebase without re-creating a new database in app2. Plus, I want to delete app1 after copying its db content.

I tried renaming the app1 name to app2 in firebase but I figured out that it is impossible.

Is there a way to achieve this without the need to create a new json database in Firebase?

Upvotes: 3

Views: 1056

Answers (1)

Kenny Dabiri
Kenny Dabiri

Reputation: 353

I think i can answer my question. @has9 suggestions helped me figure out that the Json database is not directly tied to an app on firebase. that is, when you create another app (app2) and delete app1, your database will not be deleted with app1. i hope i explained my answer clearly. anyways this solved my problem.

Upvotes: 3

Related Questions