有人可以确认混合应用程序(离子/角度)手机上存储实际本地存储的位置吗?
我检查了其他帖子,其中大多数建议使用Cordova-sqlite-storage,因为本地存储不是存储数据的最佳方式。我还看到iPhone在各种情况下删除应用程序存储时存在一些问题。
我尝试使用Cordova-sqlite-storage,iOS系统日志告诉我以下内容:
open full db path: /Users/[name]/Library/Developer/CoreSimulator/Devices/A2A955FF-49FC-4760-94FB-B0254BB87C7D/data/Containers/Data/Application/4365F57A-6330-49CC-145F-8D7C7EC1D7EF/Library/LocalDatabase/appDatabase.db
localstorage是否存放在同一个地方?即/Application/appID/Library/LocalDatabase/somefile.format
?
完整的Sqlite日志:
OPEN database: app.db
[SQLitePlugin pluginInitialize] [Line 33] Initializing SQLitePlugin
[SQLitePlugin pluginInitialize] [Line 44] Detected docs path: /Users/[name]/Library/Developer/CoreSimulator/Devices/someID/data/Containers/Data/Application/someAppId/Documents
[SQLitePlugin pluginInitialize] [Line 48] Detected Library path: /Users/[name]/Library/Developer/CoreSimulator/Devices/someID/data/Containers/Data/Application/someAppId/Library
[SQLitePlugin pluginInitialize] [Line 67] no cloud sync at path: /Users/[name]/Library/Developer/CoreSimulator/Devices/someID/data/Containers/Data/Application/someAppId/Library/LocalDatabase
[SQLitePlugin openNow:] [Line 137] open full db path: /Users/[name]/Library/Developer/CoreSimulator/Devices/someID/data/Containers/Data/Application/someAppId/Library/LocalDatabase/app.db
[SQLitePlugin openNow:] [Line 164] Good news: SQLite is thread safe!
OPEN database: app.db - OK
我知道localstorage与其他应用程序隔离,无法在外部访问。我想知道这些数据是否以任何方式加密到该应用程序?
我唯一担心的是,如果用户在root手机上有恶意软件,他们会访问此文件夹。他们可以阅读内容吗?或者他们会得到加密的blob?