简体   繁体   English

我应该创建多个 Firebase 项目还是将多个应用程序添加到单个 Firebase 项目?

[英]Should I create multiple Firebase projects or add multiple apps to a single Firebase project?

I'm working on a SaaS in which customers can brand their own app.我正在开发一种 SaaS,客户可以在其中为自己的应用程序打上烙印。 I'm using Firebase for Push Notifications and Dynamic Links.我将 Firebase 用于推送通知和动态链接。 Now, I'm not sure if I should create a new Firebase project for each customer or if I should just add multiple apps to one single Firebase project.现在,我不确定我是否应该为每个客户创建一个新的 Firebase 项目,或者我是否应该只将多个应用程序添加到一个 Firebase 项目中。 Are there any limitations on how many apps can be added to one single project?一个项目中可以添加多少个应用程序有限制吗? I've also read that there are limitations on how many projects can be added to Firebase (for free).我还读到有多少项目可以添加到 Firebase(免费)的限制。 Any idea how much it cost if I reach that limit?知道如果我达到那个限制要花多少钱吗?

Any recommendations?有什么建议吗?

Thanks!谢谢!

By default, you can have a maximum of 30 apps in a project , but you can request to increase your number.默认情况下,您最多可以在一个项目中拥有 30 个应用程序,但您可以请求增加您的数量。

In your case, I recommend that you use only one application and prepare it to handle multiple clients.对于您的情况,我建议您只使用一个应用程序并准备好处理多个客户端。 Cloud messaging has a great integration with Google Analytics, in GA you can define a target audience.云消息与 Google Analytics 有很好的集成,在 GA 中您可以定义目标受众。

Let's say you have a customer who is company A and 50 users use your SaaS at that company.假设您有一位客户是 A 公司,并且有 50 位用户在该公司使用您的 SaaS。 You can define in Google Analytics the target audience "members of company A" and trigger notification only for these users.您可以在 Google Analytics 中定义目标受众“公司 A 的成员”,并仅为这些用户触发通知。 Remembering that this has to be done carefully to prevent users from receiving unexpected notifications.请记住,必须谨慎执行此操作,以防止用户收到意外通知。

Also, you can use Messaing Topics, where you can subscribe a user to a topic and then trigger a notification to all users subscribed to that topic.此外,您还可以使用 Messaing Topics,您可以在其中为用户订阅一个主题,然后向订阅该主题的所有用户触发通知。

Firebase has a very extensive documentation, recently they posted on the blog an example that can help you. Firebase 有一个非常广泛的文档,最近他们在博客上发布了一个可以帮助你的例子。

Targeting Audiences with Cloud Messaging - Firebase Blog 使用云消息传递定位受众 - Firebase 博客

In the case of Dynamic Link, I don't think it will be a problem.对于动态链接,我认为这不会成为问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在新的 Android Studio 项目中,我应该在哪里为 firebase 添加项目级依赖项 - Where should I add project level dependencies for firebase in new Android Studio projects 多个项目/环境的 Firebase 配置 - Firebase configuration for multiple projects/environments 在 iOS 应用程序和 Firebase/Google Analytics 中配置多个 Firebase 项目运行时 - Configure Multiple Firebase Projects Runtime in iOS application and Firebase/Google Analytics 将 Firebase Analytics 和 Crashlytics 添加到具有多个方案的 iOS 项目 - Add Firebase Analytics and Crashlytics to iOS project with multiple schemes 将两个不同的 Firebase 项目添加到我的 Flutter 项目中 - Add two different Firebase projects to my Flutter project 如何使用 javascript 在 firebase 9 中添加多个文档? - How do I add multiple documents in firebase 9 with javascript? 创建多个 firebase-admin 实例 - Create multiple instances of firebase-admin 如何管理连接到同一项目的 2 个 Firebase 应用程序 - How do I manage 2 Firebase apps connecting to the same project 如何将 firebase crashlytics 添加到 android 项目中 - How to add firebase crashlytics into android projects 具有多个提供商的 Firebase 身份验证 - Firebase Auth with Multiple Providers
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM