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?

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.