IonicStorageModule != Native Storage ?!


#1

Hii guys, what is difference between IonicStorageModule & Native Storage ??!!!
thnks in advance


#2

Please provide some context, links to documentation about what you are talking about.


#3

this is link for IonicStorageModule — https://ionicframework.com/docs/storage/
this is link for Native Storage — https://ionicframework.com/docs/native/native-storage/


#4

Ionic Storage (the first one) works in browsers and native environments.
Ionic Native Storage only works in native environments.


#5

the data persisted by this two approch can be deleted automaticaly by android or ios system ?
or is impossible to deleted by system in this case data life cycle is seem to sqlite data


#6

Both are permanent storages that are not deleted.
You are thinking of “local storage”.


#7

in my ionic 3 application i must get a lot of data from a backend using REST.
i want to save data in json on mobile devise cache for first time.
and then just read data from cache and if it(data on backend) change i read new data from backend and update my json data.
what do you see


#8

This will work with both.

But as Ionic Native also works in the browser, it is to be preferred in my opinion.