How do you persist data between application launches using Ionic?

Technology CommunityCategory: IonicHow do you persist data between application launches using Ionic?
VietMX Staff asked 3 years ago

As Ionic behind the scene builds HTML5 based applications, you can use localStorage and sessionStorage API to persist data on the mobile phone. However, since localStorage can only store strings, objects need to be stringified before saving. Also, it is important to mention localStorage has size limit around 5MB.