For these purposes, let's say I have an application that contains one UIWebview view.
I upload a request to any of these sites: facebook, gmail, twitter, etc. and get the login screen.
The fact is that if I log in and restart the application, I will have to go through the login screen again.
In the Mobile Safari / Google application, for example, I would save my data in a cookie / session / whatnot and would not need to re-enter the user credentials. This is the behavior I want to have.
The material I tried:
- sending cookies from NSHTTPCookieStorage via NSURLRequest.
- Saving cookies directly to NSUserDefaults, but not luck.
How can I achieve Mobile Safari and Google app behavior?
source
share