Is there any way i can query in my app for data from the analytics tab of dashboard?
For example:
ref.on("value", function(dashboard) {
console.log(dashboard.concurrentUsers)
});
From the "dashboard.concurrentUsers" in your question, it looks like you're trying to get the data from the Analytics tab of your dashboard.
There is no public API to get the analytics data, although you can export the data to a CSV file manually from the Firebase console.
What you can do is enable the BigQuery integration. Doing this means that all Google Analytics for Firebase events from that moment on will be written to BigQuery, where you can query them. This is the raw data, the events written by your apps, and not the aggregated data that you find in the dashboard.
来源:https://stackoverflow.com/questions/35095707/is-there-any-api-for-dashboard-analytics-data