Can you use cookies in a Cordova application?

后端 未结 2 1262
清歌不尽
清歌不尽 2020-12-06 10:43

I have been building an android app using Ionic. At this point, I am under the impression that Cordova applications do not save or send the cookies that are served from a RE

相关标签:
2条回答
  • 2020-12-06 11:11

    You can't use cookies, you should use localStorage

    Browsers provide a convenient module for storing data in a simple key <-> value fashion called localStorage. This is an object on window that we can get and set String values easily

    See this for details

    0 讨论(0)
  • 2020-12-06 11:14

    No, you can't. I have also tried to use cookies in one of my applications, but it didn't work because the cookies are disabled in the new version of Android. I solved this problem by using the HTML5 localStorage API.

    0 讨论(0)
提交回复
热议问题