Localstorage sometimes cannot load the values in Ionic App


#1

Hi I’m using localStorage in my hybrid app developed using Ionic framework. Everything works fine, but recently we’ve noticed that if I keep my app in background for a longer period,like 5-6 hours, and while I re-open the app, it looses its values in the localStorage. But if I force quit my app and re-open it, it works fine, and then it gets all the values in the localStorage… Quite strange for me, as this only happens in IOS, and Android works absolutely fine…