Reputation: 327
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 ?
Upvotes: 2
Views: 2514
Reputation: 2233
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.
Upvotes: 1
Reputation: 599001
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.
Upvotes: 1