合并不同项目中的Firebase iOS和Android应用到一个Firebase项目中。

huangapple go评论52阅读模式
英文:

Merging firebase iOS & Android apps from different projects into one Firebase project

问题

我正在寻找帮助合并Firebase项目。

当前设置: 有两个不同的项目(iOS和Android),分别在两个不同的帐户上。

Firebase项目1: iOS应用,使用帐户abc@gmail.com

Firebase项目2: Android应用,使用帐户xyz@gmail.com

目标: 将这两个应用合并到一个Firebase项目中。 Firebase项目: iOS和Android应用,使用帐户abc@gmail.com

请帮助我完成这个任务。谢谢

注意: 我能够将一个项目从一个帐户移动到另一个帐户。

英文:

I am looking for help merging Firebase projects.

Current Setup: There are two different projects (iOS & Android) on two different accounts.

Firebase Project 1: iOS App using account abc@gmail.com

Firebase Project 2: Android App using account xyz@gmail.com

Goal: Combine both apps into a single Firebase project. Firebase Project: iOS and Android App using Account abc@gmail.com

Please help me with this. Thanks

Note:- I am able to move one project from one account to another account.

答案1

得分: 0

无法合并项目。在这种情况下,如果您想在一个项目中拥有两个应用,比如“Firebase项目1”,您需要在“Firebase项目1”中创建一个具有相同包名称的Android应用。然后使用新的google-services.json文件更新该应用。通过这样做,您将在同一个项目下拥有两个应用,但请注意,历史数据将不可用。

如果您正在使用身份验证,您可能需要导出身份验证信息,请参考此参考链接

同样,您也可以对Firestore执行类似操作。

并非所有Firebase产品都支持数据的导出和导入选项,所请注意这一点。

英文:

There isn't a way to merge projects. In this case, if you want to have both apps in one project, lets say "Firebase project 1", you will need to create an Android app in "Firebase project 1" with the same package name. Then update the app with the new google-services.json file. With this you will have both apps under the same project but note that historical data won't be available.

If you are using Authentication, you may need to export the Auth info, see this reference.

Similarly, you can do this also for Firestore.

Not all the Firebase products have an option for exporting/importing data, so keep that in mind.

huangapple
  • 本文由 发表于 2023年2月7日 02:18:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/75365143.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定