- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I' would like to save files into the app sandbox using Cordova Api.
I tried to use:
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fileSystem){ gotFS(fileSystem}, fail);
function gotFS(fileSystem)
{
var entry=fileSystem.root;
}
But I discovered the "entry" variable points to public External Storage in Android, possible? where does the error came up?
And in iOS environment how i can save files persistently in app sandbox?
Thanks in advance!
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I recommend that you consider the plugin-based storage options recommended by Apache Cordova at https://cordova.apache.org/docs/en/latest/cordova/storage/storage.html#plugin-based-options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Elroy,
thanks for your reply,
i looked at the link you suggested me, but it seems to be useful for saving data into DB, not files.
My goal is to persistently save files into the app sandbox.
Is there any possibility?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Elroy,
hjust use the Sqlite Plugin, if you want to store data into a database.
Well documented and works well with the XDK.
Best
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I agree SQLite is a good database storage option for locally storing data in your app for persistence.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page