Firebase: Reporting Analytics and Crash Data to Separate Projects

送分小仙女□ 提交于 2021-02-04 15:28:19

问题


Recently I came across this article from firebase, which details how to access multiple projects from a single application. This is great, and potentially very useful, however I have been unable to find a way to separate out using Analytics and Crash reporting into separate projects.

The reason we would like to do this is so that our clients have full access to their analytics, whilst keeping the crash logs in a different project that only we can access.

I did see that on the article it states:

Note: On Android and iOS, Analytics are only logged for the default app.

which would be fine, provided we can change where the crashes are logged, but I haven't seen any mention of Crashlytics in this.

I guess the question comes down to is it possible to do this, or is it something that is not (yet) supported?


回答1:


Mike @ Google here.

Firebase now supports more granular permissions, so you should be able to grant only Google Analytics access to a client without exposing the rest of Firebase data/functionality to them. To do so, you can use the "Assign Firebase Roles" feature when you are adding them to the project - likely you would select the Analytics View role for your client users. Please see IAM overview for more details.

Supporting more than one client with a common Crashlytics project is not feasible. The article you referenced on multi-project setup works at a high level for other Firebase features, but Crashlytics benefits from Analytics data to provide user-level metrics for impacted users. As you note, Analytics data will only be logged for the first app configuration, so Crashlytics would not deliver the best reporting without Analytics info.

In this scenario, I'd recommend you split each client's app into individual projects, and grant each client user only Analytics View access to their corresponding app's project via the IAM overview method described above.



来源:https://stackoverflow.com/questions/53831792/firebase-reporting-analytics-and-crash-data-to-separate-projects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!