0

I have a simple database that saves words and I'm trying to do as little database requests as possible in my app. I thought I would simply call a get request at the app startup and store all the words into the Ionic local storage and then call them when needed.

I'm wondering how long the information stored in the local storage is being kept - does it clear when the user closes the app? Or does it clear when the phone is being restarted? Or is it kept till I clear it in my code?

4

2 回答 2

0

当您清除离子本地存储this.storage.clear();并重新启动您的应用程序时,您的数据将丢失

于 2018-02-22T14:15:42.880 回答
0

当用户清除 android 上的应用程序数据时,所有数据也会随之消失。否则它会一直保留到您调用存储的“清除”功能。

于 2018-02-22T16:58:31.833 回答