How to make user login from only one device at a time

后端 未结 7 2913
予麋鹿
予麋鹿 2021-02-04 16:47

I have a RestAPI which when hit authenticate the user. This api is exposed to android and ios developers they hit this api to allow user to login to our app

My requireme

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-04 17:17

    You can use SharedPreference for storing user login detail after logging and second time you run the app, check that login detail is available or not. And after logout you have to delete shared preference.

    For more detail please visit below links:

    http://www.tutorialspoint.com/android/android_shared_preferences.htm http://developer.android.com/reference/android/content/SharedPreferences.html

提交回复
热议问题