How to find the users which are part of a firebase app?

江枫思渺然 提交于 2019-12-24 17:15:56

问题


I have a project in Firebase.This project has 2 apps: 1.Android 2.iOS

I want to know which users are registered from android platform & likewise from iOS.

Is there a way to know ?


回答1:


May be there is no way to find android users and iOS users directly, you have to store a boolean value like for an example isAndroid in user table in Firebase Realtime Database while registration and after login fetch the value of isAndroid from user table and accordingly do the rest.




回答2:


There is no built-in API in Firebase Authentication to know what platform a user signed in from. So if you want to see that information, you will have to find it elsewhere.

As Nirav commented, one way would be to track it in an online database (e.g. the Firebase Realtime Database, or Cloud Firestore), and have your code set it.

If you only want to know how many users sign in from each platform, and don't care about each individual user, you can also consider using Google Analytics for Firebase to track the information.



来源:https://stackoverflow.com/questions/51646512/how-to-find-the-users-which-are-part-of-a-firebase-app

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