Cookies in a mobile app


#1

I am creating an Hybrid mobile app with Ionic Framework.

I need to persist some data in the DOM, it is only username and email in one single view so I don’t need too much storage. I am using cookies-ngCookies with Angular trough a service named $cookieStore, anyways this service is attached to the regular cookies, so far, I know that the cookies is a storage that browser provides, but, what about when the app is downloaded from AppStore or Google Play ? what would happen with the cookies ?

is still supported or should I use any other method ?


#2

How about using the sessionStorage? The sessionStorage gets deleted every time you close the application!


#3

I don’t want that. Because the user opens the app again, the info will not be there


#4

What about localStorage?