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,361
  • 13
  • 26
Muhammad Faizan
  • 1,759
  • 2
  • 14
  • 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
  • 112,184
  • 14
  • 139
  • 167
DimDim
  • 341
  • 1
  • 18