更改Firebase数据库
我有一个连接到Firebase数据库的android项目,有什么方法可以取消我的项目与当前数据库的链接并将我的应用程序连接到新的firebase数据库?
I have an android project which is connected to a firebase database, is there any way that I can unlink my project from current database and connect my app to a new firebase database?
如果您打算将android项目链接到 不同 的firebase项目,那么您当然可以.
在android端,连接"只是一个json文件,存储在 yourProject/app/google-services.json
.
您可以简单地将其替换为可以从新的Firebase项目的设置页面下载的另一个文件.
If you meant to link your android project to a different firebase project, then of course you can.
At the android side the "connection" is merely a json file stored at
yourProject/app/google-services.json
.
You can simply replace it with another file that you may download from the settings page of your new firebase project.