Search code examples
ionic-frameworkcookiesionic3

Cookies are deleted once app ionic 3 closed in android


I have an application that works logging in with the api and save the cookies(authentication). Everything works fine, but once you close the application and lunche the application again you find the 'NotLoggedIn' message and you find that the cookies have been deleted. Any Help ? thank you...


Solution

  • thank you I found a solution this is my method of saving cookies value in local storage and I test if the value not null and i set cookies to my website and all it works . for get and set cookies i use this plugin : cordova-plugin-cookie-polyfill