2

I want the users of my app to sign in through a single device only at the same time. How do I achieve this?

Niamatullah Bakhshi
  • 1,445
  • 16
  • 27
Muhammad Faizan
  • 1,891
  • 2
  • 18
  • 37

1 Answers1

2

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.

Alex Mamo
  • 130,605
  • 17
  • 163
  • 193
DimDim
  • 371
  • 1
  • 18