I'm creating an app both for android and IOS, the first time the user starts the app he'll be presented with a login screen, the server with all the credentials is already up so I just need to send through POST method username and password and check the server response (success or failure), then If the username and password are correct I was thinking about saving them in the NSUserDefaults and everytime the user opens the app I won't show them the login screen again but as a background task the app will retrieve the credentials from the NSUserDefaults and send them again to the server (It may return failure if the user has been eliminated or has changed his password), I just wanted to know: is this the right approach to this problem?
Asked
Active
Viewed 10 times
0
-
possible duplicate of [iOS: How to store username/password within an app?](http://stackoverflow.com/questions/6972092/ios-how-to-store-username-password-within-an-app) – user4098326 Feb 23 '15 at 13:30
-
it's helpful because now I know that I need to use Keychan but I still have doubts for the Server part – LS_ Feb 23 '15 at 13:49