I want the users of my app to sign in through a single device only at the same time. How do I achieve this?
Asked
Modified
7 years, 8 months ago
Viewed
547 times
Part
of Mobile Development and Google Cloud Collectives
1 Answer
You may add device id in Firebase on register and check it on login. You can get the device id as follows:
private String android_id = Secure.getString(
getContext().getContentResolver(), Secure.ANDROID_ID
);
Or you can browse here.