Firebase: multiple Apps connected to single firestore

后端 未结 1 1989
庸人自扰
庸人自扰 2020-12-17 23:55

This is intentionally a very broad question. Sorry about that.

I\'m experimenting with firebase for the first time. I would like to build a little e-commerce webapp

相关标签:
1条回答
  • 2020-12-18 00:53

    You don't need to do anything special. Each app (mobile, web,whatever) connects to a firebase instance/project. You can just set them all up to use the same firebase project (.plist file etc) and it will all work. The advantage of this design is that both admin and client access the same data, which presumably you need. (If you haven't found it, on the Firebase Console -> Settings -> Project Settings; add applications which will generate the appropriate credential files for each device type.)

    Since you will have a shared/common authentication space, you may find that you want to add a flag/limitation to login so that only specified users can access the admin side. There's a few ways this can be accomplished.

    0 讨论(0)
提交回复
热议问题