Search code examples
iosauthenticationhig

iOS: Best practice for Number of Users to support


I am building an app that connects to a server at the back end that supports multiple users.Similar in this respect to Facebook etc. On the web version, users log in and then their userid allows them to access all their content. As with any website, you can log out as one user and log on as another.

For the app, is it customary or best practice to allow only one user for an installed app? In other words if someone has signed up once for an app, is it best practice to only allow that one userid and password to sign on and not let someone else come along and log in as a different user? Or is it customary to allow multiple people to log in and out as with website.

If just one user is allowed, I only have to support one profile on the app and one set of data locally so this would obviously be easier but just want to conform to normal practice.

Thank you


Solution

  • In general, if you are able to log in you should be able to log out as well. This is true for apps and web. It is a little more complex but not too much.

    Log out can be put in a settings section and when that is clicked you destroy all of the local caches, take them back to the log in screen, and it essentially becomes a freshly installed app.