Reputation: 23535
Let's say i have a phonegap application connecting to a web service to validate login credentials. Once authenticated, i want to have persistent authentication just like a standard web app that stores a cookies in a browser.
What are the guidelines for these? With security, reliability and standards are considered.
Please don't make this as a "native app vs html5 wrapped app " debate.
I appreciate all logical answers. Thank you.
Upvotes: 5
Views: 460
Reputation: 817
is this an issue of generating authentication or storing it?
To generate, since you can't use UDID anymore, keep FB or twitter id is fine. To store, you can write to UserDefaults or to an actual file (there was localStorage but it's currently unreliable).
Upvotes: 0