Issue
I am currently using @ionic-native/secure-storage, but the problem is that it is not working on android, so I am thinking of using Plugins.Storage from @capacitor/core.
My question is what are exactly differences between those two. As I know use is not able to see data in both cases, so what makes @ionic-native/secure-storage more secure and when is it needed to use it?
Solution
@ionic-native/secure-storage is just an interface to cordova-plugin-secure-storage.
The big difference is that cordova-plugin-secure-storage uses encryption for storage on all the platforms it supports.
The Storage plugin from Capacitor is meant for simple key-value data, stored in a less secure area on the device.
On iOS Storage plugin will use UserDefaults and on Android SharedPreferences. Stored data is cleared if the app is uninstalled.
Answered By - johnborges
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.